From 00311f718b9ed42d48305b8ffe98ef79fdb3e716 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期四, 04 九月 2025 15:15:29 +0800
Subject: [PATCH] 设备管理技术状态鉴定、设备保养、设备维修下所有列表添加使用部门展示

---
 lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamTechnicalStatusEvaluationOrderChange.java |   93 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 92 insertions(+), 1 deletions(-)

diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamTechnicalStatusEvaluationOrderChange.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamTechnicalStatusEvaluationOrderChange.java
index bc81f5d..80f27a2 100644
--- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamTechnicalStatusEvaluationOrderChange.java
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamTechnicalStatusEvaluationOrderChange.java
@@ -1,14 +1,18 @@
 package org.jeecg.modules.eam.entity;
 
+import cn.hutool.core.util.StrUtil;
 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 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.springframework.format.annotation.DateTimeFormat;
 
 import java.util.Date;
 
@@ -24,7 +28,7 @@
 @Accessors(chain = true)
 @ApiModel(value="eam_technical_status_evaluation_order_change瀵硅薄", description="鎶�鏈姸鎬侀壌瀹氬伐鍗曞彉鏇�")
 public class EamTechnicalStatusEvaluationOrderChange {
-    
+
 	/**涓婚敭*/
 	@TableId(type = IdType.ASSIGN_ID)
     @ApiModelProperty(value = "涓婚敭")
@@ -55,49 +59,84 @@
 	private String changeOrderNum;
 	/**鐢宠浜�*/
     @ApiModelProperty(value = "鐢宠浜�")
+	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
 	private String applicant;
 	/**鐢宠閮ㄩ棬*/
     @ApiModelProperty(value = "鐢宠閮ㄩ棬")
+	@Dict(dictTable = "eam_base_factory", dicText = "factory_name", dicCode = "org_code")
 	private String factoryOrgCode;
 	/**鐢宠鏃ユ湡*/
     @ApiModelProperty(value = "鐢宠鏃ユ湡")
+	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
+	@DateTimeFormat(pattern = "yyyy-MM-dd")
 	private Date applyDate;
 	/**鍙樻洿鐘舵��;寰呮彁浜ゃ�佸緟涓荤瀹℃牳銆佸緟閮ㄩ棬纭銆佸緟淇濋殰閮ㄧ‘璁ゃ�佸凡浣滃簾銆佸凡瀹屾垚*/
     @ApiModelProperty(value = "鍙樻洿鐘舵��;寰呮彁浜ゃ�佸緟涓荤瀹℃牳銆佸緟閮ㄩ棬纭銆佸緟淇濋殰閮ㄧ‘璁ゃ�佸凡浣滃簾銆佸凡瀹屾垚")
+	@Dict(dicCode = "technical_status_evaluation_order_change_status")
 	private String changeStatus;
 	/**鍙樻洿鍘熷洜;鐢熶骇浠诲姟鎬ユ棤娉曞仠鏈恒�佽澶囨晠闅滄澶勪簬缁翠慨鐘舵�併�佽澶囧凡鎶ュ簾銆佽澶囧ぇ淇�佹惉杩併�佹敼閫�*/
     @ApiModelProperty(value = "鍙樻洿鍘熷洜;鐢熶骇浠诲姟鎬ユ棤娉曞仠鏈恒�佽澶囨晠闅滄澶勪簬缁翠慨鐘舵�併�佽澶囧凡鎶ュ簾銆佽澶囧ぇ淇�佹惉杩併�佹敼閫�")
+	@Dict(dicCode = "technical_status_evaluation_order_change_reason")
 	private String applyReason;
 	/**鍙樻洿閴村畾鏃ユ湡*/
     @ApiModelProperty(value = "鍙樻洿閴村畾鏃ユ湡")
+	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
+	@DateTimeFormat(pattern = "yyyy-MM-dd")
 	private Date deferredEvaluationDate;
 	/**涓荤棰嗗绛惧瓧*/
     @ApiModelProperty(value = "涓荤棰嗗绛惧瓧")
+	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
 	private String equipmentManagerSignature;
 	/**涓荤棰嗗绛惧瓧鏃堕棿*/
     @ApiModelProperty(value = "涓荤棰嗗绛惧瓧鏃堕棿")
+	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 	private Date equipmentManagerSignatureTime;
+	/**涓荤棰嗗绛惧瓧缁撴灉*/
+	@ApiModelProperty(value = "涓荤棰嗗绛惧瓧缁撴灉")
+	@Dict(dicCode = "approve_reject")
+	private String equipmentManagerSignatureResult;
+	/**涓荤棰嗗鎰忚*/
+	@ApiModelProperty(value = "涓荤棰嗗鎰忚")
+	private String equipmentManagerComment;
 	/**閮ㄩ棬棰嗗绛惧瓧;鏍规嵁鍙樻洿鍘熷洜绫诲瀷鍖哄垎涓嶅悓鐨勪汉瀹℃壒*/
     @ApiModelProperty(value = "閮ㄩ棬棰嗗绛惧瓧;鏍规嵁鍙樻洿鍘熷洜绫诲瀷鍖哄垎涓嶅悓鐨勪汉瀹℃壒")
+	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
 	private String departManagerSignature;
 	/**閮ㄩ棬棰嗗绛惧瓧鏃堕棿*/
     @ApiModelProperty(value = "閮ㄩ棬棰嗗绛惧瓧鏃堕棿")
+	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 	private Date departManagerSignatureTime;
+	/**閮ㄩ棬棰嗗绛惧瓧缁撴灉*/
+	@ApiModelProperty(value = "閮ㄩ棬棰嗗绛惧瓧缁撴灉")
+	@Dict(dicCode = "approve_reject")
+	private String departManagerSignatureResult;
 	/**閮ㄩ棬棰嗗鎰忚*/
     @ApiModelProperty(value = "閮ㄩ棬棰嗗鎰忚")
 	private String departManagerComment;
 	/**鐢熶骇淇濋殰閮ㄩ瀵肩瀛�*/
     @ApiModelProperty(value = "鐢熶骇淇濋殰閮ㄩ瀵肩瀛�")
+	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
 	private String productionSupportSignature;
 	/**鐢熶骇淇濋殰閮ㄩ瀵肩瀛楁椂闂�*/
     @ApiModelProperty(value = "鐢熶骇淇濋殰閮ㄩ瀵肩瀛楁椂闂�")
+	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 	private Date productionSupportSignatureTime;
+	/**鐢熶骇淇濋殰閮ㄩ瀵肩瀛楃粨鏋�*/
+	@ApiModelProperty(value = "鐢熶骇淇濋殰閮ㄩ瀵肩瀛楃粨鏋�")
+	@Dict(dicCode = "approve_reject")
+	private String productionSupportSignatureResult;
 	/**鐢熶骇淇濋殰閮ㄩ瀵兼剰瑙�*/
     @ApiModelProperty(value = "鐢熶骇淇濋殰閮ㄩ瀵兼剰瑙�")
 	private String productionSupportComment;
 	/**HF缂栫爜*/
     @ApiModelProperty(value = "HF缂栫爜")
 	private String hfCode;
+	/**澶囨敞*/
+	@ApiModelProperty(value = "澶囨敞")
+	private String remark;
 
 	@TableField(exist = false)
 	private String equipmentCode;
@@ -107,4 +146,56 @@
 	private String equipmentModel;
 	@TableField(exist = false)
 	private Date originalEvaluationDate;
+
+	/**
+	 * 鍏徃
+	 */
+	@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 factoryCode;
+
+	public void setFactoryCode(String factoryCode){
+		this.factoryCode = factoryCode;
+		if(StrUtil.isNotEmpty(factoryCode)){
+			if(factoryCode.length()==12){
+				this.factoryCode = factoryCode.substring(0,9);
+				this.zxfactoryOrgCode = factoryCode.substring(0,6);
+				this.gsfactoryOrgCode = factoryCode.substring(0,3);
+			}
+
+			if(factoryCode.length()==9){
+				this.zxfactoryOrgCode = factoryCode.substring(0,6);
+				this.gsfactoryOrgCode = factoryCode.substring(0,3);
+			}
+
+			if(factoryCode.length()==6){
+				this.gsfactoryOrgCode = factoryCode.substring(0,3);
+			}
+		}
+	}
 }

--
Gitblit v1.9.3