From 0d06048c5d560e301bf17fad476975c8ffffcb56 Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期五, 05 九月 2025 16:07:31 +0800 Subject: [PATCH] 添加三级保养工作计划单生成规则 --- lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/request/EamReportProductHazardsQuery.java | 164 +++++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 125 insertions(+), 39 deletions(-) diff --git a/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/request/EamReportProductHazardsQuery.java b/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/request/EamReportProductHazardsQuery.java index f4dbee7..1892bbc 100644 --- a/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/request/EamReportProductHazardsQuery.java +++ b/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/request/EamReportProductHazardsQuery.java @@ -1,15 +1,14 @@ package org.jeecg.modules.eam.request; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; +import org.jeecg.common.aspect.annotation.Dict; import org.jeecgframework.poi.excel.annotation.Excel; import org.springframework.format.annotation.DateTimeFormat; @@ -30,80 +29,106 @@ public class EamReportProductHazardsQuery implements Serializable { private static final long serialVersionUID = 1L; - /**涓婚敭*/ - @TableId(type = IdType.ASSIGN_ID) + /**涓婚敭*/ + @TableId(type = IdType.ASSIGN_ID) @ApiModelProperty(value = "涓婚敭") private String id; - /**鍒涘缓浜�*/ + /**鍒涘缓浜�*/ @ApiModelProperty(value = "鍒涘缓浜�") private String createBy; - /**鍒涘缓鏃ユ湡*/ - @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + /**鍒涘缓鏃ユ湡*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @ApiModelProperty(value = "鍒涘缓鏃ユ湡") private Date createTime; - /**鏇存柊浜�*/ + /**鏇存柊浜�*/ @ApiModelProperty(value = "鏇存柊浜�") private String updateBy; - /**鏇存柊鏃ユ湡*/ - @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + /**鏇存柊鏃ユ湡*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @ApiModelProperty(value = "鏇存柊鏃ユ湡") private Date updateTime; - /**鎶ヤ慨ID*/ - @Excel(name = "鎶ヤ慨ID", width = 15) + /**鍒犻櫎鏍囪*/ + @Excel(name = "鍒犻櫎鏍囪", width = 15) + @ApiModelProperty(value = "鍒犻櫎鏍囪") + @TableLogic + private Integer delFlag; + /**鎶ヤ慨ID*/ + @Excel(name = "鎶ヤ慨ID", width = 15) @ApiModelProperty(value = "鎶ヤ慨ID") private String reportId; - /**璁惧ID*/ - @Excel(name = "璁惧ID", width = 15) + /**璁惧ID*/ + @Excel(name = "璁惧ID", width = 15) @ApiModelProperty(value = "璁惧ID") private String equipmentId; - /**鎿嶄綔宸�*/ - @Excel(name = "鎿嶄綔宸�", width = 15) + /**HF缂栫爜*/ + @Excel(name = "HF缂栫爜", width = 15) + @ApiModelProperty(value = "HF缂栫爜") + private String hfCode; + /**纭鐘舵��*/ + @Excel(name = "纭鐘舵��", width = 15) + @ApiModelProperty(value = "纭鐘舵��") + @Dict(dicCode = "confirm_status") + private String confirmStatus; + /**鎿嶄綔宸�*/ + @Excel(name = "鎿嶄綔宸�", width = 15) @ApiModelProperty(value = "鎿嶄綔宸�") + @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") private String confirmer; - /**鎿嶄綔宸ョ‘璁ゆ椂闂�*/ - @Excel(name = "鎿嶄綔宸ョ‘璁ゆ椂闂�", width = 15, format = "yyyy-MM-dd") - @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") + /**鎿嶄綔宸ョ‘璁ゆ椂闂�*/ + @Excel(name = "鎿嶄綔宸ョ‘璁ゆ椂闂�", width = 15, format = "yyyy-MM-dd") + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd") @ApiModelProperty(value = "鎿嶄綔宸ョ‘璁ゆ椂闂�") private Date confirmTime; - /**浜у搧鎹熷け鎯呭喌*/ - @Excel(name = "浜у搧鎹熷け鎯呭喌", width = 15) + /**浜у搧鎹熷け鎯呭喌*/ + @Excel(name = "浜у搧鎹熷け鎯呭喌", width = 15) @ApiModelProperty(value = "浜у搧鎹熷け鎯呭喌") + @Dict(dicCode = "yn") private String productLoss; - /**浜у搧鎹熷け璐ㄩ噺褰卞搷鍒嗘瀽*/ - @Excel(name = "浜у搧鎹熷け璐ㄩ噺褰卞搷鍒嗘瀽", width = 15) + /**浜у搧鎹熷け璐ㄩ噺褰卞搷鍒嗘瀽*/ + @Excel(name = "浜у搧鎹熷け璐ㄩ噺褰卞搷鍒嗘瀽", width = 15) @ApiModelProperty(value = "浜у搧鎹熷け璐ㄩ噺褰卞搷鍒嗘瀽") private String qualityAnalysis; - /**涓荤宸ヨ壓*/ - @Excel(name = "涓荤宸ヨ壓", width = 15) + /**涓荤宸ヨ壓*/ + @Excel(name = "涓荤宸ヨ壓", width = 15) @ApiModelProperty(value = "涓荤宸ヨ壓") + @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") private String technologist; - /**涓荤宸ヨ壓纭鏃堕棿*/ - @Excel(name = "涓荤宸ヨ壓纭鏃堕棿", width = 15, format = "yyyy-MM-dd") - @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") + /**涓荤宸ヨ壓纭鏃堕棿*/ + @Excel(name = "涓荤宸ヨ壓纭鏃堕棿", width = 15, format = "yyyy-MM-dd") + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd") @ApiModelProperty(value = "涓荤宸ヨ壓纭鏃堕棿") private Date technologistTime; - /**涓荤宸ヨ壓纭鎰忚*/ - @Excel(name = "涓荤宸ヨ壓纭鎰忚", width = 15) + /**涓荤宸ヨ壓纭鎰忚*/ + @Excel(name = "涓荤宸ヨ壓纭鎰忚", width = 15) @ApiModelProperty(value = "涓荤宸ヨ壓纭鎰忚") private String technologistComment; - /**閮ㄧ骇棰嗗*/ - @Excel(name = "閮ㄧ骇棰嗗", width = 15) + /**涓荤宸ヨ壓纭缁撴灉*/ + @Excel(name = "涓荤宸ヨ壓纭缁撴灉", width = 15) + @ApiModelProperty(value = "涓荤宸ヨ壓纭缁撴灉") + private String technologistResult; + /**閮ㄧ骇棰嗗*/ + @Excel(name = "閮ㄧ骇棰嗗", width = 15) @ApiModelProperty(value = "閮ㄧ骇棰嗗") + @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") private String deputyDepartment; - /**閮ㄧ骇棰嗗纭鏃堕棿*/ - @Excel(name = "閮ㄧ骇棰嗗纭鏃堕棿", width = 15, format = "yyyy-MM-dd") - @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") + /**閮ㄧ骇棰嗗纭鏃堕棿*/ + @Excel(name = "閮ㄧ骇棰嗗纭鏃堕棿", width = 15, format = "yyyy-MM-dd") + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd") @ApiModelProperty(value = "閮ㄧ骇棰嗗纭鏃堕棿") private Date deputyDepartmentTime; - /**閮ㄧ骇棰嗗纭鎰忚*/ - @Excel(name = "閮ㄧ骇棰嗗纭鎰忚", width = 15) + /**閮ㄧ骇棰嗗纭鎰忚*/ + @Excel(name = "閮ㄧ骇棰嗗纭鎰忚", width = 15) @ApiModelProperty(value = "閮ㄧ骇棰嗗纭鎰忚") private String deputyDepartmentComment; + /**閮ㄧ骇棰嗗纭缁撴灉*/ + @Excel(name = "閮ㄧ骇棰嗗纭缁撴灉", width = 15) + @ApiModelProperty(value = "閮ㄧ骇棰嗗纭缁撴灉") + private String deputyDepartmentResult; //鍒楄〃灞曠ず @TableField(exist = false) private String equipmentCode; @@ -115,4 +140,65 @@ private String installationPosition; private String column; private String order; + /**鎵规鍙�*/ + @TableField(exist = false) + private String batchNumber; + /**鍔犲伐闆朵欢鍙�*/ + @TableField(exist = false) + private String processingPart; + /**浠舵暟*/ + @TableField(exist = false) + private String quantity; + + /** + * 鍏徃 + */ + @ApiModelProperty(value = "鍏徃") + @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") + @TableField(exist = false) + private transient String gsfactoryOrgCode; + + /** + * 涓績 + */ + @ApiModelProperty(value = "涓績") + @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") + @TableField(exist = false) + private transient String zxfactoryOrgCode; + + /** + * 宸ュ尯 + */ + @ApiModelProperty(value = "宸ュ尯") + @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") + @TableField(exist = false) + private transient String gqfactoryOrgCode; + + /** + * 宸ユ + */ + @ApiModelProperty(value = "涓績/宸ュ尯/宸ユ") + @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") + @TableField(exist = false) + private String factoryOrgCode; + + 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); + this.gsfactoryOrgCode = factoryOrgCode.substring(0,3); + } + + if(factoryOrgCode.length()==9){ + this.zxfactoryOrgCode = factoryOrgCode.substring(0,6); + this.gsfactoryOrgCode = factoryOrgCode.substring(0,3); + } + + if(factoryOrgCode.length()==6){ + this.gsfactoryOrgCode = factoryOrgCode.substring(0,3); + } + } + } } -- Gitblit v1.9.3