From 2beb1e22b88ace009b95cd41fa32636d13575e43 Mon Sep 17 00:00:00 2001
From: fengyuan_yang <1976974459@qq.com>
Date: Tue, 23 Jun 2026 16:02:19 +0800
Subject: [PATCH] =?UTF-8?q?2026-06-23=20=E5=81=9C=E6=9C=BA=E5=8E=9F?=
=?UTF-8?q?=E5=9B=A0=E7=BB=B4=E6=8A=A4=E5=A2=9E=E5=8A=A0=E5=8A=A0=E5=B7=A5?=
=?UTF-8?q?=E4=B8=AD=E5=BF=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/base/entity/DowntimeReasonData.java | 12 ++++++++++++
src/main/resources/mapper/base/BaseMapper.xml | 9 +++++----
2 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/gaotao/modules/base/entity/DowntimeReasonData.java b/src/main/java/com/gaotao/modules/base/entity/DowntimeReasonData.java
index 62f9043..9d9e191 100644
--- a/src/main/java/com/gaotao/modules/base/entity/DowntimeReasonData.java
+++ b/src/main/java/com/gaotao/modules/base/entity/DowntimeReasonData.java
@@ -25,6 +25,10 @@ public class DowntimeReasonData {
*
*/
private String active;
+ /**
+ * 加工中心
+ */
+ private String workCenterNo;
private String user;
private int add;
@@ -68,6 +72,14 @@ public class DowntimeReasonData {
this.active = active;
}
+ public String getWorkCenterNo() {
+ return workCenterNo;
+ }
+
+ public void setWorkCenterNo(String workCenterNo) {
+ this.workCenterNo = workCenterNo;
+ }
+
public String getUser() {
return user;
}
diff --git a/src/main/resources/mapper/base/BaseMapper.xml b/src/main/resources/mapper/base/BaseMapper.xml
index e9d6262..fe1189e 100644
--- a/src/main/resources/mapper/base/BaseMapper.xml
+++ b/src/main/resources/mapper/base/BaseMapper.xml
@@ -594,7 +594,7 @@
@@ -606,14 +606,15 @@
and Site = #{site}
- INSERT INTO DowntimeReason (Site, ReasonCode, Area, ReasonDescription, Active)
- values (#{site}, #{reasonCode}, #{area}, #{reasonDescription}, #{active})
+ INSERT INTO DowntimeReason (Site, ReasonCode, Area, ReasonDescription, Active, WorkCenter_No)
+ values (#{site}, #{reasonCode}, #{area}, #{reasonDescription}, #{active}, #{workCenterNo})
UPDATE DowntimeReason
SET Active=#{active},
Area=#{area},
- ReasonDescription=#{reasonDescription}
+ ReasonDescription=#{reasonDescription},
+ WorkCenter_No=#{workCenterNo}
where ReasonCode = #{reasonCode}
and Site = #{site}