“linengliang”
2023-09-06 2be3886789a49856d5745f552051edd4ebfe1630
导入字段校验调整
已修改3个文件
35 ■■■■ 文件已修改
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamEquipmentController.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/Equipment.java 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EquipmentImportVo.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamEquipmentController.java
@@ -573,6 +573,14 @@
                         exceptionInfo = exceptionInfo+"第"+(i+2)+"行导入失败,原因:设备状态缺失,请填写必填项后再导入;";
                         exceptionNum++;
                     }
                     else if(StringUtils.isBlank(equipmentImportVo.getTechnologyStatus())){
                         exceptionInfo = exceptionInfo+"第"+(i+2)+"行导入失败,原因:设备技术缺失,请填写必填项后再导入;";
                         exceptionNum++;
                     }
                     else if(StringUtils.isBlank(equipmentImportVo.getKeyEquipmentIdentification())){
                         exceptionInfo = exceptionInfo+"第"+(i+2)+"行导入失败,原因:关键设备标识缺失,请填写必填项后再导入;";
                         exceptionNum++;
                     }
                     //非必填项
//                     else if(StringUtils.isBlank(equipmentImportVo.getEquipmentUda5())){
//                         exceptionInfo = exceptionInfo+"第"+(i+2)+"行导入失败,原因:功能位置缺失,请填写必填项后再导入;";
@@ -637,6 +645,7 @@
                                     .setEquipmentUda1(equipmentImportVo.getEquipmentUda1())
                                     .setManageId(equipmentImportVo.getManageId())
                                     .setTeamId(equipmentImportVo.getTeamId())
                                     .setTechnologyStatus(equipmentImportVo.getTechnologyStatus())
                                     .setEquipmentImportanceId(equipmentImportVo.getEquipmentImportanceId())
                                     .setEquipmentCategoryId(equipmentCategory.getId())
                                     .setSpecificEquipment(equipmentImportVo.getKeyEquipmentIdentification())
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/Equipment.java
@@ -52,12 +52,13 @@
    @ApiModelProperty(value = "设备规格")
    private String specification;
    /**设备状态*/
    @Excel(name = "设备状态", width = 15,orderNum = "17")
    @Excel(name = "设备状态", width = 15,orderNum = "17",dicCode = "equipment_status")
    @ApiModelProperty(value = "设备状态")
    @Dict(dicCode = "equipment_status")
    private String equipmentStatus;
    /**技术状态*/
    @ApiModelProperty(value = "技术状态")
    @Excel(name = "技术状态", width = 15,orderNum = "18",dicCode = "technology_status")
    @Dict(dicCode = "technology_status")
    private String technologyStatus;
    /**资产编号*/
@@ -90,11 +91,11 @@
    @ApiModelProperty(value = "出厂编号")
    private String factoryNumber;
    /**出厂日期*/
    @Excel(name = "出厂日期", width = 15,orderNum = "22")
    @Excel(name = "出厂日期", width = 15,orderNum = "23")
    @ApiModelProperty(value = "出厂日期")
    private String leaveFactoryDate;
    /**验收日期*/
    @Excel(name = "验收日期", width = 15,orderNum = "25")
    @Excel(name = "验收日期", width = 15,orderNum = "26")
    @ApiModelProperty(value = "验收日期")
    private String acceptanceCheckDate;
    /**所有组织*/
@@ -120,7 +121,7 @@
    @Dict(dicCode = "id",dictTable="sys_user",dicText="realname")
    private String functionary;
    /**位置*/
    @Excel(name = "安装位置", width = 15,orderNum = "21")
    @Excel(name = "安装位置", width = 15,orderNum = "22")
    @ApiModelProperty(value = "位置")
    private String location;
    /**重要度*/
@@ -160,15 +161,15 @@
    @ApiModelProperty(value = "备用字段2")
    private String equipmentUda2;
    /**备用字段3*/
    @Excel(name = "重量", width = 15,orderNum = "18")
    @Excel(name = "重量", width = 15,orderNum = "19")
    @ApiModelProperty(value = "备用字段3")
    private String equipmentUda3;
    /**备用字段4*/
    @Excel(name = "重量计量单位", width = 15,orderNum = "19")
    @Excel(name = "重量计量单位", width = 15,orderNum = "20")
    @ApiModelProperty(value = "备用字段4")
    private String equipmentUda4;
    /**备用字段5*/
    @Excel(name = "功能位置", width = 15,orderNum = "20")
    @Excel(name = "功能位置", width = 15,orderNum = "21")
    @ApiModelProperty(value = "备用字段5")
    private String equipmentUda5;
    /**租户id*/
@@ -225,7 +226,7 @@
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sealDate;
    @ApiModelProperty(value = "资金来源")
    @Excel(name = "资金来源", width = 15,orderNum = "24")
    @Excel(name = "资金来源", width = 15,orderNum = "25")
    private String  fundSource;
    @ApiModelProperty(value = "出厂编号")
    private String  factoryNo;
@@ -264,7 +265,7 @@
    @Excel(name = "坐标数量", width = 15,orderNum = "16")
    private BigDecimal coordinateNum;
    @ApiModelProperty(value = "立项卡号")
    @Excel(name = "立项卡号", width = 15,orderNum = "23")
    @Excel(name = "立项卡号", width = 15,orderNum = "24")
    private String  projectApprovalNo;
    private String standardA;
    private String standardB;
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EquipmentImportVo.java
@@ -63,7 +63,7 @@
    @Excel(name = "坐标数量")
    private BigDecimal coordinateNum;
    @Excel(name = "设备状态")
    @Excel(name = "设备状态",dicCode = "equipment_status")
    private String equipmentStatus;
    @Excel(name = "重量")
@@ -108,6 +108,11 @@
    @Excel(name = "总功率")
    private String gpo;
    @Excel(name = "技术状态",dicCode = "technology_status")
    private String technologyStatus;