|
|
@ -28,7 +28,7 @@ |
|
|
AND qm.method_name LIKE '%' + #{query.methodName} +'%' |
|
|
AND qm.method_name LIKE '%' + #{query.methodName} +'%' |
|
|
</if> |
|
|
</if> |
|
|
<if test="query.inspectionTypeNo != null and query.inspectionTypeNo != ''"> |
|
|
<if test="query.inspectionTypeNo != null and query.inspectionTypeNo != ''"> |
|
|
AND qm.inspection_type_no LIKE '%' + #{query.inspectionTypeNo} +'%' |
|
|
|
|
|
|
|
|
AND qm.inspection_type_no = #{query.inspectionTypeNo} |
|
|
</if> |
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
@ -103,16 +103,24 @@ |
|
|
qm.method_no, |
|
|
qm.method_no, |
|
|
qm.method_name, |
|
|
qm.method_name, |
|
|
qm.method_remark, |
|
|
qm.method_remark, |
|
|
epi.inspection_type_no |
|
|
|
|
|
|
|
|
epi.inspection_type_no, |
|
|
|
|
|
qit.inspection_type_name |
|
|
FROM eam_properties_item as epi |
|
|
FROM eam_properties_item as epi |
|
|
LEFT JOIN qc_method_item as qmi on epi.ItemNo = qmi.ItemNo and epi.site = qmi.site |
|
|
LEFT JOIN qc_method_item as qmi on epi.ItemNo = qmi.ItemNo and epi.site = qmi.site |
|
|
LEFT JOIN qc_method as qm on qmi.method_no = qm.method_no and qmi.site = qm.site |
|
|
LEFT JOIN qc_method as qm on qmi.method_no = qm.method_no and qmi.site = qm.site |
|
|
|
|
|
LEFT JOIN qc_inspection_type as qit on qit.inspection_type_no = epi.inspection_type_no and qit.site = epi.site |
|
|
<where> |
|
|
<where> |
|
|
epi.site = #{query.site} |
|
|
epi.site = #{query.site} |
|
|
and epi.ItemType = #{query.itemType} |
|
|
and epi.ItemType = #{query.itemType} |
|
|
<if test="query.itemDesc != null and query.itemDesc != ''"> |
|
|
<if test="query.itemDesc != null and query.itemDesc != ''"> |
|
|
AND epi.ItemDesc LIKE '%' + #{query.itemDesc} +'%' |
|
|
AND epi.ItemDesc LIKE '%' + #{query.itemDesc} +'%' |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="query.itemNo != null and query.itemNo != ''"> |
|
|
|
|
|
AND epi.ItemNo LIKE '%' + #{query.itemNo} +'%' |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="query.inspectionTypeNo != null and query.inspectionTypeNo != ''"> |
|
|
|
|
|
AND epi.inspection_type_no = #{query.inspectionTypeNo} |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
@ -357,12 +365,9 @@ |
|
|
qt.default_sampling_quantity, |
|
|
qt.default_sampling_quantity, |
|
|
qt.default_sampling_proportion |
|
|
qt.default_sampling_proportion |
|
|
FROM qc_template as qt |
|
|
FROM qc_template as qt |
|
|
LEFT JOIN qc_inspection_type as qit |
|
|
|
|
|
ON qt.inspection_type_no = qit.inspection_type_no |
|
|
|
|
|
LEFT JOIN qc_sampling_inspection_level as qsil |
|
|
|
|
|
ON qt.sampling_level_no = qsil.sampling_level_no |
|
|
|
|
|
LEFT JOIN qc_sampling_inspection_programme as qsip |
|
|
|
|
|
ON qt.sampling_programme_no = qsip.sampling_programme_no |
|
|
|
|
|
|
|
|
LEFT JOIN qc_inspection_type as qit on qt.inspection_type_no = qit.inspection_type_no and qt.site = qit.site |
|
|
|
|
|
LEFT JOIN qc_sampling_inspection_level as qsil on qt.sampling_level_no = qsil.sampling_level_no |
|
|
|
|
|
LEFT JOIN qc_sampling_inspection_programme as qsip on qt.sampling_programme_no = qsip.sampling_programme_no |
|
|
<where> |
|
|
<where> |
|
|
qt.site = #{query.site} |
|
|
qt.site = #{query.site} |
|
|
<if test = "query.templateId != null and query.templateId != ''"> |
|
|
<if test = "query.templateId != null and query.templateId != ''"> |
|
|
|