|
|
@ -323,14 +323,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<select id="getCkeckDefectList" resultType="com.op.quality.domain.QcCheckTaskDefect">
|
|
|
|
<select id="getCkeckDefectList" resultType="com.op.quality.domain.QcCheckTaskDefect">
|
|
|
|
select
|
|
|
|
select
|
|
|
|
qctd.record_id recordId,
|
|
|
|
qctd.record_id recordId,
|
|
|
|
qdt.defect_code defectCode,
|
|
|
|
qctd.defect_code defectCode,
|
|
|
|
qdt.defect_subclass defectSubclass,
|
|
|
|
qctd.defect_subclass defectSubclass,
|
|
|
|
qctd.noOk_quality noOkQuality
|
|
|
|
qctd.noOk_quality noOkQuality
|
|
|
|
|
|
|
|
from qc_check_task_defect qctd
|
|
|
|
|
|
|
|
where qctd.del_flag = '0' and qctd.belong_to = #{belongTo}
|
|
|
|
|
|
|
|
order by qctd.defect_code
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getDefectType" resultType="com.op.quality.domain.QcCheckTaskDefect">
|
|
|
|
|
|
|
|
select
|
|
|
|
|
|
|
|
defect_code defectCode,
|
|
|
|
|
|
|
|
defect_subclass defectSubclass
|
|
|
|
from qc_defect_type qdt
|
|
|
|
from qc_defect_type qdt
|
|
|
|
left join qc_check_task_defect qctd on qdt.defect_code = qctd.defect_code
|
|
|
|
left join qc_check_type qct on qdt.defect_type = qct.type_code
|
|
|
|
and qctd.del_flag = '0'
|
|
|
|
where qct.order_code = #{checkType} and qdt.del_flag = '0'
|
|
|
|
and qctd.belong_to = #{belongTo}
|
|
|
|
order by qdt.defect_code
|
|
|
|
where qdt.defect_type = #{checkType}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<insert id="addCheckUsers">
|
|
|
|
<insert id="addCheckUsers">
|
|
|
|
insert into qc_check_task_user(
|
|
|
|
insert into qc_check_task_user(
|
|
|
|