소스 검색

fix bug:上传时MENUM类型解析报错

lijie 3 년 전
부모
커밋
574ed9bbc3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      adm-business/adm-middleware/src/main/java/com/persagy/proxy/object/controller/AdmEquipmentController.java

+ 1 - 1
adm-business/adm-middleware/src/main/java/com/persagy/proxy/object/controller/AdmEquipmentController.java

@@ -569,7 +569,7 @@ public class AdmEquipmentController {
 							changeFlag=false;
 							continue;
 						}
-					} else if ("ENUM".equalsIgnoreCase(define.getDataType())) {
+					} else if ("ENUM".equalsIgnoreCase(define.getDataType()) || "MENUM".equalsIgnoreCase(define.getDataType())) {
 						if (CellType.NUMERIC.equals(tempCell.getCellTypeEnum())
 								&& StrUtil.isNotBlank(StrUtil.toString(CellUtil.getCellValue(tempCell,true)))) {
 							tempCell.setCellType(CellType.STRING);