From bb240e641b7ed7a4827a387f73d7a341faf021c1 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Fri, 27 Mar 2026 15:17:58 +0800 Subject: [PATCH] =?UTF-8?q?2026-03-27=20IQC=E6=A3=80=E9=AA=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=BC=BA=E9=99=B7=E8=B7=9F=E8=B8=AA=E6=A0=87=E8=AF=86?= =?UTF-8?q?=20=E7=89=A9=E6=96=99=E6=A1=A3=E6=A1=88=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E3=80=8B=E7=BC=BA=E9=99=B7=E8=B7=9F=E8=B8=AA=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gaotao/modules/pms/data/QcFAIRecordData.java | 2 ++ .../modules/pms/entity/PartDefectTrackingEntity.java | 5 +++++ .../service/impl/PropertyChangeServiceImpl.java | 2 +- src/main/resources/mapper/pms/QcBaseInfoMapper.xml | 12 ++++++------ src/main/resources/mapper/pms/QcMapper.xml | 2 ++ 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/gaotao/modules/pms/data/QcFAIRecordData.java b/src/main/java/com/gaotao/modules/pms/data/QcFAIRecordData.java index 15da6e6..421389a 100644 --- a/src/main/java/com/gaotao/modules/pms/data/QcFAIRecordData.java +++ b/src/main/java/com/gaotao/modules/pms/data/QcFAIRecordData.java @@ -21,6 +21,8 @@ public class QcFAIRecordData extends QueryPage { private String ssrId; // 状态 private String state; + // 异常追踪标识 + private String defectTrackingFlag; // 状态 private List states; // 供应商编码 diff --git a/src/main/java/com/gaotao/modules/pms/entity/PartDefectTrackingEntity.java b/src/main/java/com/gaotao/modules/pms/entity/PartDefectTrackingEntity.java index 830f9e2..45c3dac 100644 --- a/src/main/java/com/gaotao/modules/pms/entity/PartDefectTrackingEntity.java +++ b/src/main/java/com/gaotao/modules/pms/entity/PartDefectTrackingEntity.java @@ -2,7 +2,9 @@ package com.gaotao.modules.pms.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; +import java.util.Date; @TableName("part_defect_tracking") @Data @@ -15,4 +17,7 @@ public class PartDefectTrackingEntity { private Integer recoveryBatchCount; private Integer currentDefectCount; private Integer lastDefectCount; + private Integer remainingTrackingBatches; + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + private Date lastTriggerTime; } diff --git a/src/main/java/com/gaotao/modules/propertyChange/service/impl/PropertyChangeServiceImpl.java b/src/main/java/com/gaotao/modules/propertyChange/service/impl/PropertyChangeServiceImpl.java index 74496a0..0f12c9b 100644 --- a/src/main/java/com/gaotao/modules/propertyChange/service/impl/PropertyChangeServiceImpl.java +++ b/src/main/java/com/gaotao/modules/propertyChange/service/impl/PropertyChangeServiceImpl.java @@ -122,7 +122,7 @@ public class PropertyChangeServiceImpl extends ServiceImpl @@ -1588,8 +1590,8 @@ - INSERT INTO part_defect_tracking (site, bu_no, part_no, supplier_id, defect_threshold, recovery_batch_count, current_defect_count, last_defect_count) - VALUES (#{site}, #{buNo}, #{partNo}, #{supplierId}, #{defectThreshold,jdbcType=INTEGER}, #{recoveryBatchCount,jdbcType=INTEGER}, #{currentDefectCount,jdbcType=INTEGER}, #{lastDefectCount,jdbcType=INTEGER}) + INSERT INTO part_defect_tracking (site, bu_no, part_no, supplier_id, defect_threshold, recovery_batch_count) + VALUES (#{site}, #{buNo}, #{partNo}, #{supplierId}, #{defectThreshold,jdbcType=INTEGER}, #{recoveryBatchCount,jdbcType=INTEGER}) @@ -1602,9 +1604,7 @@ UPDATE part_defect_tracking SET defect_threshold = #{defectThreshold,jdbcType=INTEGER}, - recovery_batch_count = #{recoveryBatchCount,jdbcType=INTEGER}, - current_defect_count = #{currentDefectCount,jdbcType=INTEGER}, - last_defect_count = #{lastDefectCount,jdbcType=INTEGER} + recovery_batch_count = #{recoveryBatchCount,jdbcType=INTEGER} where site = #{site} and bu_no = #{buNo} and part_no = #{partNo} AND supplier_id = #{supplierId} diff --git a/src/main/resources/mapper/pms/QcMapper.xml b/src/main/resources/mapper/pms/QcMapper.xml index e36f3cf..634321c 100644 --- a/src/main/resources/mapper/pms/QcMapper.xml +++ b/src/main/resources/mapper/pms/QcMapper.xml @@ -891,6 +891,7 @@ SELECT qir.inspection_no, qir.state, + qir.defect_tracking_flag as defectTrackingFlag, qir.create_date as taskDate, qir.roll_no, qir.part_no, @@ -942,6 +943,7 @@ a.bu_no, dbo.get_bu_desc(a.site, a.bu_no) as buDesc, a.state, + a.defect_tracking_flag as defectTrackingFlag, a.inspection_result, a.create_date as taskDate, a.inspection_type_no,