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/EamTechnicalStatusEvaluationApplication.java |   55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 54 insertions(+), 1 deletions(-)

diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamTechnicalStatusEvaluationApplication.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamTechnicalStatusEvaluationApplication.java
index e3e69ae..cd0a0a3 100644
--- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamTechnicalStatusEvaluationApplication.java
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamTechnicalStatusEvaluationApplication.java
@@ -1,5 +1,6 @@
 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;
@@ -27,7 +28,7 @@
 @Accessors(chain = true)
 @ApiModel(value="eam_technical_status_evaluation_application瀵硅薄", description="鍔犲伐璁惧鎶�鏈壌瀹氱敵璇�")
 public class EamTechnicalStatusEvaluationApplication {
-    
+
 	/**涓婚敭*/
 	@TableId(type = IdType.ASSIGN_ID)
     @ApiModelProperty(value = "涓婚敭")
@@ -136,4 +137,56 @@
 	private String equipmentName;
 	@TableField(exist = false)
 	private String equipmentModel;
+
+	/**
+	 * 鍏徃
+	 */
+	@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