Ver código fonte

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

lijie 3 anos atrás
pai
commit
574ed9bbc3

+ 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);