Browse Source

oqc,sqc类型改变

master
shenzhouyu 2 weeks ago
parent
commit
7f45fc3a2d
  1. 6
      src/main/resources/mapper/pms/QcMapper.xml

6
src/main/resources/mapper/pms/QcMapper.xml

@ -1238,8 +1238,8 @@
MAX(CASE WHEN inspection_type_no = '101' THEN '已维护' ELSE '未维护' END) AS ipqc_flag, MAX(CASE WHEN inspection_type_no = '101' THEN '已维护' ELSE '未维护' END) AS ipqc_flag,
MAX(CASE WHEN inspection_type_no = '105' THEN '已维护' ELSE '未维护' END) AS iqc_flag, MAX(CASE WHEN inspection_type_no = '105' THEN '已维护' ELSE '未维护' END) AS iqc_flag,
MAX(CASE WHEN inspection_type_no = '107' THEN '已维护' ELSE '未维护' END) AS fqc_flag, MAX(CASE WHEN inspection_type_no = '107' THEN '已维护' ELSE '未维护' END) AS fqc_flag,
MAX(CASE WHEN inspection_type_no = '109' THEN '已维护' ELSE '未维护' END) AS oqc_flag,
MAX(CASE WHEN inspection_type_no = '110' THEN '已维护' ELSE '未维护' END) AS sqc_flag
MAX(CASE WHEN inspection_type_no = '110' THEN '已维护' ELSE '未维护' END) AS oqc_flag,
MAX(CASE WHEN inspection_type_no = '109' THEN '已维护' ELSE '未维护' END) AS sqc_flag
FROM qc_attribute_template FROM qc_attribute_template
WHERE inspection_type_no IN ('101', '105', '107', '109', '110') WHERE inspection_type_no IN ('101', '105', '107', '109', '110')
GROUP BY site, attribute_no GROUP BY site, attribute_no
@ -5964,7 +5964,7 @@
FROM qc_template t FROM qc_template t
WHERE t.site = #{site} WHERE t.site = #{site}
AND t.bu_no = #{buNo} AND t.bu_no = #{buNo}
AND t.inspection_type_no = '109'
AND t.inspection_type_no = '110'
<if test="templateId != null and templateId != ''"> <if test="templateId != null and templateId != ''">
AND t.template_id LIKE '%' + #{templateId} + '%' AND t.template_id LIKE '%' + #{templateId} + '%'
</if> </if>

Loading…
Cancel
Save