|
|
|
@ -132,7 +132,7 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getDefectMap" resultType="com.op.quality.domain.QcCheckTaskDefect">
|
|
|
|
|
SELECT
|
|
|
|
|
belong_to,
|
|
|
|
|
belong_to belongTo,
|
|
|
|
|
belong_to_detail belongToDetail,
|
|
|
|
|
STUFF(
|
|
|
|
|
(SELECT ',' + defect_code
|
|
|
|
@ -140,22 +140,23 @@
|
|
|
|
|
WHERE belong_to_detail = qctd.belong_to_detail and belong_to = qctd.belong_to
|
|
|
|
|
FOR xml path('')
|
|
|
|
|
),1,1,''
|
|
|
|
|
) defectCodes,
|
|
|
|
|
STUFF(
|
|
|
|
|
(SELECT ',' + defect_subclass+':' + CAST(noOk_quality AS VARCHAR(15))
|
|
|
|
|
FROM qc_check_task_defect
|
|
|
|
|
WHERE belong_to_detail = qctd.belong_to_detail and belong_to = qctd.belong_to
|
|
|
|
|
FOR xml path('')
|
|
|
|
|
),1,1,''
|
|
|
|
|
) defectNames,
|
|
|
|
|
STUFF(
|
|
|
|
|
(SELECT ',' + CAST(noOk_quality AS VARCHAR(15))
|
|
|
|
|
FROM qc_check_task_defect
|
|
|
|
|
WHERE belong_to_detail = qctd.belong_to_detail and belong_to = qctd.belong_to
|
|
|
|
|
FOR xml path('')
|
|
|
|
|
),1,1,''
|
|
|
|
|
) defectQualitys
|
|
|
|
|
) defectCodes,
|
|
|
|
|
STUFF(
|
|
|
|
|
(SELECT ',' + defect_subclass+':' + CAST(noOk_quality AS VARCHAR(15))
|
|
|
|
|
FROM qc_check_task_defect
|
|
|
|
|
WHERE belong_to_detail = qctd.belong_to_detail and belong_to = qctd.belong_to
|
|
|
|
|
FOR xml path('')
|
|
|
|
|
),1,1,''
|
|
|
|
|
) defectNames,
|
|
|
|
|
STUFF(
|
|
|
|
|
(SELECT ',' + CAST(noOk_quality AS VARCHAR(15))
|
|
|
|
|
FROM qc_check_task_defect
|
|
|
|
|
WHERE belong_to_detail = qctd.belong_to_detail and belong_to = qctd.belong_to
|
|
|
|
|
FOR xml path('')
|
|
|
|
|
),1,1,''
|
|
|
|
|
) defectQualitys
|
|
|
|
|
FROM qc_check_task_defect qctd where qctd.del_flag = '0' and belong_to= #{belongTo}
|
|
|
|
|
and belong_to_detail is not null
|
|
|
|
|
GROUP by qctd.belong_to,qctd.belong_to_detail
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|