|
|
|
@ -1575,7 +1575,9 @@ |
|
|
|
a.defect_threshold, |
|
|
|
a.recovery_batch_count, |
|
|
|
a.current_defect_count, |
|
|
|
a.last_defect_count |
|
|
|
a.last_defect_count, |
|
|
|
a.remaining_tracking_batches as remainingTrackingBatches, |
|
|
|
a.last_trigger_time as lastTriggerTime |
|
|
|
FROM part_defect_tracking as a |
|
|
|
left join Supplier as b on a.site = b.site and a.supplier_id = b.SupplierID |
|
|
|
<where> |
|
|
|
@ -1588,8 +1590,8 @@ |
|
|
|
|
|
|
|
<!-- 新增跟踪缺陷 --> |
|
|
|
<insert id="saveDefectTracking" parameterType="com.gaotao.modules.pms.entity.vo.PartDefectTrackingVo"> |
|
|
|
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}) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<!-- 删除跟踪缺陷 --> |
|
|
|
@ -1602,9 +1604,7 @@ |
|
|
|
<update id="updateDefectTracking" parameterType="com.gaotao.modules.pms.entity.vo.PartDefectTrackingVo"> |
|
|
|
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} |
|
|
|
</update> |
|
|
|
|
|
|
|
|