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,