|
|
|
@ -1717,4 +1717,80 @@ |
|
|
|
from standard_operation |
|
|
|
where site = #{site} |
|
|
|
</select> |
|
|
|
|
|
|
|
<!-- ======================= 巡检特殊配置 ======================= --> |
|
|
|
|
|
|
|
<!-- 查询巡检特殊配置列表 --> |
|
|
|
<select id="getPatrolConfigList" parameterType="java.util.Map" resultType="java.util.HashMap"> |
|
|
|
SELECT |
|
|
|
site, |
|
|
|
bu_no AS buNo, |
|
|
|
part_no AS partNo, |
|
|
|
operation_desc AS operationDesc, |
|
|
|
first_inspection_duration AS firstInspectionDuration, |
|
|
|
next_inspection_duration AS nextInspectionDuration, |
|
|
|
total_inspection_duration AS totalInspectionDuration, |
|
|
|
default_flag AS defaultFlag |
|
|
|
FROM IPQC_Patrol_Configuration |
|
|
|
WHERE site = #{site} |
|
|
|
AND bu_no = #{buNo} |
|
|
|
AND part_no = #{partNo} |
|
|
|
ORDER BY default_flag DESC, operation_desc |
|
|
|
</select> |
|
|
|
|
|
|
|
<!-- 新增巡检特殊配置 --> |
|
|
|
<insert id="savePatrolConfig" parameterType="java.util.Map"> |
|
|
|
INSERT INTO IPQC_Patrol_Configuration ( |
|
|
|
site, |
|
|
|
bu_no, |
|
|
|
part_no, |
|
|
|
operation_desc, |
|
|
|
first_inspection_duration, |
|
|
|
next_inspection_duration, |
|
|
|
total_inspection_duration, |
|
|
|
default_flag |
|
|
|
) VALUES ( |
|
|
|
#{site}, |
|
|
|
#{buNo}, |
|
|
|
#{partNo}, |
|
|
|
#{operationDesc}, |
|
|
|
#{firstInspectionDuration}, |
|
|
|
#{nextInspectionDuration}, |
|
|
|
#{totalInspectionDuration}, |
|
|
|
#{defaultFlag} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<!-- 更新巡检特殊配置 --> |
|
|
|
<update id="updatePatrolConfig" parameterType="java.util.Map"> |
|
|
|
UPDATE IPQC_Patrol_Configuration |
|
|
|
SET first_inspection_duration = #{firstInspectionDuration}, |
|
|
|
next_inspection_duration = #{nextInspectionDuration}, |
|
|
|
total_inspection_duration = #{totalInspectionDuration}, |
|
|
|
default_flag = #{defaultFlag} |
|
|
|
WHERE site = #{site} |
|
|
|
AND bu_no = #{buNo} |
|
|
|
AND part_no = #{partNo} |
|
|
|
AND operation_desc = #{operationDesc} |
|
|
|
</update> |
|
|
|
|
|
|
|
<!-- 删除巡检特殊配置 --> |
|
|
|
<delete id="deletePatrolConfig" parameterType="java.util.Map"> |
|
|
|
DELETE FROM IPQC_Patrol_Configuration |
|
|
|
WHERE site = #{site} |
|
|
|
AND bu_no = #{buNo} |
|
|
|
AND part_no = #{partNo} |
|
|
|
AND operation_desc = #{operationDesc} |
|
|
|
</delete> |
|
|
|
|
|
|
|
<!-- 清除该物料的其他默认配置标识 --> |
|
|
|
<update id="clearPatrolConfigDefaultFlag" parameterType="java.util.Map"> |
|
|
|
UPDATE IPQC_Patrol_Configuration |
|
|
|
SET default_flag = 'N' |
|
|
|
WHERE site = #{site} |
|
|
|
AND bu_no = #{buNo} |
|
|
|
AND part_no = #{partNo} |
|
|
|
AND operation_desc != #{operationDesc} |
|
|
|
</update> |
|
|
|
|
|
|
|
</mapper> |