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/entity/EamRepairOrder.java |   76 +++++++++++++++++++++++++++++++++++++
 1 files changed, 75 insertions(+), 1 deletions(-)

diff --git a/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/entity/EamRepairOrder.java b/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/entity/EamRepairOrder.java
index c84f71a..a7bcf9b 100644
--- a/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/entity/EamRepairOrder.java
+++ b/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/entity/EamRepairOrder.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;
@@ -72,10 +73,14 @@
     @ApiModelProperty(value = "璁惧ID")
     @Dict(dictTable = "eam_equipment", dicCode = "id", dicText = "equipment_name")
     private String equipmentId;
-    /** 缁翠慨鐘舵��*/
+    /**缁翠慨鐘舵��*/
     @ApiModelProperty(name = "缁翠慨鐘舵��",notes = "寰呯淮淇�佺淮淇腑銆佸緟纭銆佺淮淇畬鎴�")
     @Dict(dicCode = "repair_status")
     private String repairStatus;
+    /**棰嗗彇鐘舵��*/
+    @ApiModelProperty(name = "棰嗗彇鐘舵��",notes = "鏈鍙栥�佸凡棰嗗彇")
+    @Dict(dicCode = "claim_status")
+    private String claimStatus;
     /**鏁呴殰绫诲瀷*/
     @Excel(name = "鏁呴殰绫诲瀷", width = 15)
     @ApiModelProperty(value = "鏁呴殰绫诲瀷")
@@ -88,13 +93,30 @@
     /**鎶ヤ慨浜�*/
     @Excel(name = "鎶ヤ慨浜�", width = 15)
     @ApiModelProperty(value = "鎶ヤ慨浜�")
+    @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname")
     private String reportPerson;
+    /**鏁呴殰寮�濮嬫椂闂�*/
+    @Excel(name = "鏁呴殰寮�濮嬫椂闂�", width = 15,format = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(name = "鏁呴殰寮�濮嬫椂闂�",notes = "")
+    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    private Date faultStartTime;
     /** 缁翠慨寮�濮嬫椂闂� */
     @ApiModelProperty(name = "缁翠慨寮�濮嬫椂闂�",notes = "")
+    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
     private Date actualStartTime;
     /** 缁翠慨缁撴潫鏃堕棿 */
     @ApiModelProperty(name = "缁翠慨缁撴潫鏃堕棿",notes = "")
+    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
     private Date actualEndTime;
+    /** 缁翠慨鏃堕暱*/
+    @ApiModelProperty(name = "缁翠慨鏃堕暱",notes = "")
+    private String repairDuration;
+    /**鏁呴殰鏃堕暱*/
+    @ApiModelProperty(name = "鏁呴殰鏃堕暱",notes = "")
+    private String faultDuration;
     /** 缁翠慨纭 */
     @ApiModelProperty(name = "缁翠慨纭",notes = "")
     @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname")
@@ -150,4 +172,56 @@
     private String equipmentModel;
     @TableField(exist = false)
     private String installationPosition;
+
+    /**
+     * 鍏徃
+     */
+    @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