From 99d6db0aab044b740ce02f57872c1e38ae647b58 Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期二, 29 七月 2025 19:00:50 +0800 Subject: [PATCH] 三不原则分析 中心修改 台账导入导出字段修改 --- lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/dto/EamEquipmentDto.java | 46 +++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 43 insertions(+), 3 deletions(-) diff --git a/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/dto/EamEquipmentDto.java b/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/dto/EamEquipmentDto.java index 4e05465..20023b9 100644 --- a/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/dto/EamEquipmentDto.java +++ b/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/dto/EamEquipmentDto.java @@ -1,5 +1,6 @@ package org.jeecg.modules.eam.dto; +import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; @@ -82,9 +83,25 @@ private String equipmentName; /** + * 涓績 + */ +// @Excel(name = "涓績", width = 15, orderNum = "5") + @ApiModelProperty(value = "涓績") + @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") + private transient String zxfactoryOrgCode; + + /** + * 宸ュ尯 + */ +// @Excel(name = "宸ュ尯", width = 15, orderNum = "6") + @ApiModelProperty(value = "宸ュ尯") + @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") + private transient String gqfactoryOrgCode; + + /** * 宸ユ */ - @Excel(name = "涓績/宸ュ尯/宸ユ", width = 15, orderNum = "4",dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") + @Excel(name = "涓績/宸ュ尯/宸ユ", width = 15, orderNum = "4") @ApiModelProperty(value = "涓績/宸ュ尯/宸ユ") @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "factory_code") private String factoryOrgCode; @@ -151,8 +168,9 @@ /** * 鐏伀鍣� */ - @Excel(name = "鐏伀鍣�", width = 15, orderNum = "16") + @Excel(name = "鐏伀鍣�", width = 15, orderNum = "16",dicCode = "yn") @ApiModelProperty(value = "鐏伀鍣�") + @Dict(dicCode = "yn") private String fireExtinguisher; /** @@ -195,6 +213,12 @@ * 閲嶉噺(鍚�) */ @Excel(name = "閲嶉噺(鍚�)", width = 15, orderNum = "22") + @ApiModelProperty(value = "閲嶉噺(鍚�)") + private String equipmentWeightStr; + + /** + * 閲嶉噺(鍚�) + */ @ApiModelProperty(value = "閲嶉噺(鍚�)") private BigDecimal equipmentWeight; @@ -245,7 +269,7 @@ /** * 楠屾敹鏃ユ湡 */ - @Excel(name = "鎶曠敤鏃ユ湡", width = 25, format = "yyyy/MM/dd", orderNum = "29") + @Excel(name = "楠屾敹鏃ユ湡", width = 25, format = "yyyy/MM/dd", orderNum = "29") @ApiModelProperty(value = "楠屾敹鏃ユ湡") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") @@ -410,4 +434,20 @@ @ApiModelProperty(value = "澶囨敞") private String remark; + + public void setFactoryOrgCode(String factoryOrgCode){ + this.factoryOrgCode = factoryOrgCode; + if(StrUtil.isNotEmpty(factoryOrgCode)){ + if(factoryOrgCode.length()==12){ + this.gqfactoryOrgCode = factoryOrgCode.substring(0,9); + this.zxfactoryOrgCode = factoryOrgCode.substring(0,6); + } + + if(factoryOrgCode.length()==9){ + this.zxfactoryOrgCode = factoryOrgCode.substring(0,6); + } + + } + } + } -- Gitblit v1.9.3