From 7fc3a69a9592fde25971055ff0c98eea98188805 Mon Sep 17 00:00:00 2001
From: cuilei <ray_tsu1@163.com>
Date: 星期四, 07 八月 2025 10:20:11 +0800
Subject: [PATCH] 生产管控 排产功能接口

---
 src/main/java/org/jeecg/modules/mes/entity/MesProductionWorkOrder.java |   40 ++++++++++++++++++++++++++++++----------
 1 files changed, 30 insertions(+), 10 deletions(-)

diff --git a/src/main/java/org/jeecg/modules/mes/entity/MesProductionWorkOrder.java b/src/main/java/org/jeecg/modules/mes/entity/MesProductionWorkOrder.java
index 488323c..efccd0d 100644
--- a/src/main/java/org/jeecg/modules/mes/entity/MesProductionWorkOrder.java
+++ b/src/main/java/org/jeecg/modules/mes/entity/MesProductionWorkOrder.java
@@ -1,9 +1,6 @@
 package org.jeecg.modules.mes.entity;
 
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableLogic;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
@@ -11,6 +8,7 @@
 import lombok.EqualsAndHashCode;
 import lombok.experimental.Accessors;
 import org.jeecg.common.aspect.annotation.Dict;
+import org.jeecg.common.constant.CommonConstant;
 import org.jeecgframework.poi.excel.annotation.Excel;
 import org.springframework.format.annotation.DateTimeFormat;
 
@@ -55,7 +53,7 @@
 	@Excel(name = "鍒犻櫎鏍囪", width = 15)
     @ApiModelProperty(value = "鍒犻櫎鏍囪")
     @TableLogic
-    private Integer delFlag;
+    private Integer delFlag = CommonConstant.DEL_FLAG_0;
 	/**宸ュ崟鍙�(浠诲姟鍙�)*/
 	@Excel(name = "宸ュ崟鍙�(浠诲姟鍙�)", width = 15)
     @ApiModelProperty(value = "宸ュ崟鍙�(浠诲姟鍙�)")
@@ -88,14 +86,14 @@
     @ApiModelProperty(value = "鐝ID(鍐椾綑)")
     private String shiftId;
 	/**鎺掍骇鏃ユ湡*/
-	@Excel(name = "鎺掍骇鏃ユ湡", width = 20, format = "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")
+	@Excel(name = "鎺掍骇鏃ユ湡", width = 20, format = "yyyy-MM-dd")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+    @DateTimeFormat(pattern="yyyy-MM-dd")
     @ApiModelProperty(value = "鎺掍骇鏃ユ湡")
     private Date workOrderDate;
 	/**宸ュ崟鐘舵��*/
-	@Excel(name = "宸ュ崟鐘舵��", width = 15, dicCode = "work_order_status")
-	@Dict(dicCode = "work_order_status")
+	@Excel(name = "宸ュ崟鐘舵��", width = 15, dicCode = "mes_work_order_status")
+	@Dict(dicCode = "mes_work_order_status")
     @ApiModelProperty(value = "宸ュ崟鐘舵��")
     private String workOrderStatus;
 	/**瀹為檯鎶ュ伐鏁伴噺*/
@@ -105,6 +103,7 @@
 	/**鍙戝竷浜�*/
 	@Excel(name = "鍙戝竷浜�", width = 15)
     @ApiModelProperty(value = "鍙戝竷浜�")
+    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
     private String publisher;
 	/**鍙戝竷鏃堕棿*/
 	@Excel(name = "鍙戝竷鏃堕棿", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@@ -115,6 +114,7 @@
 	/**閲嶅彂甯冧汉*/
 	@Excel(name = "閲嶅彂甯冧汉", width = 15)
     @ApiModelProperty(value = "閲嶅彂甯冧汉")
+    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
     private String republisher;
 	/**閲嶅彂甯冩椂闂�*/
 	@Excel(name = "閲嶅彂甯冩椂闂�", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@@ -122,4 +122,24 @@
     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
     @ApiModelProperty(value = "閲嶅彂甯冩椂闂�")
     private Date republishTime;
+    /**閲嶅彂甯冨師鍥�*/
+    @Excel(name = "閲嶅彂甯冨師鍥�", width = 30)
+    @ApiModelProperty(value = "閲嶅彂甯冨師鍥�")
+    private String republishReason;
+
+    /**浜х嚎缂栫爜*/
+    @TableField(exist = false)
+    private String factoryCode;
+    /**浜х嚎鍚嶇О*/
+    @TableField(exist = false)
+    private String factoryName;
+    /**鐝粍鍚嶇О*/
+    @TableField(exist = false)
+    private String groupName;
+    /**鐝缂栫爜*/
+    @TableField(exist = false)
+    private String shiftCode;
+    /**鐝鍚嶇О*/
+    @TableField(exist = false)
+    private String shiftName;
 }

--
Gitblit v1.9.3