|
|
|
@ -1089,7 +1089,7 @@ |
|
|
|
qt.template_name, |
|
|
|
qit.inspection_type_name |
|
|
|
FROM qc_template as qt |
|
|
|
LEFT JOIN qc_inspection_type AS qit ON qt.inspection_type_no = qit.inspection_type_no |
|
|
|
LEFT JOIN qc_inspection_type AS qit ON qt.inspection_type_no = qit.inspection_type_no and qt.site = qit.site |
|
|
|
<where> |
|
|
|
qt.site = #{site} |
|
|
|
<if test = "inspectionTypeNo != null and inspectionTypeNo != ''"> |
|
|
|
@ -2868,6 +2868,29 @@ |
|
|
|
WHERE site = #{site} and inspection_no = #{inspectionNo} and item_no = #{itemNo} |
|
|
|
</select> |
|
|
|
|
|
|
|
<!-- 查询检验方法列表 --> |
|
|
|
<select id="queryMethodList" resultType="QcMethodData" parameterType="QcMethodData"> |
|
|
|
SELECT |
|
|
|
site, |
|
|
|
method_no, |
|
|
|
method_name, |
|
|
|
inspection_type_no, |
|
|
|
dbo.qc_get_inspection_type_name(site, inspection_type_no) as inspectionTypeName |
|
|
|
FROM qc_method |
|
|
|
<where> |
|
|
|
site = #{site} |
|
|
|
<if test = "methodNo != null and methodNo != ''"> |
|
|
|
AND method_no LIKE '%' + #{methodNo} + '%' |
|
|
|
</if> |
|
|
|
<if test = "methodName != null and methodName != ''"> |
|
|
|
AND method_name LIKE '%' + #{methodName} + '%' |
|
|
|
</if> |
|
|
|
<if test = "inspectionTypeNo != null and inspectionTypeNo != ''"> |
|
|
|
AND inspection_type_no = #{inspectionTypeNo} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |
|
|
|
|
|
|
|
|
|
|
|
|