|
|
|
@ -278,8 +278,8 @@ |
|
|
|
c.method_name, |
|
|
|
c.method_remark |
|
|
|
FROM dm_ipqc_detailed_record as a |
|
|
|
LEFT JOIN qc_method_item as b on a.site = b.site and a.item_no = b.ItemNo and a.bu_no = b.bu_no |
|
|
|
LEFT JOIN qc_method as c on b.site = c.site and b.method_no = c.method_no and b.bu_no = c.bu_no |
|
|
|
LEFT JOIN dm_properties_item as b on a.site = b.site and a.item_no = b.ItemNo and a.bu_no = b.bu_no |
|
|
|
LEFT JOIN dm_method as c on b.site = c.site and b.check_type = c.method_no and b.bu_no = c.bu_no |
|
|
|
WHERE a.inspection_no = #{inspectionNo} and a.site = #{site} and a.bu_no = #{buNo} |
|
|
|
order by a.order_id |
|
|
|
</select> |
|
|
|
@ -1164,7 +1164,8 @@ |
|
|
|
SELECT |
|
|
|
qt.template_id, |
|
|
|
qt.template_name, |
|
|
|
qit.inspection_type_name |
|
|
|
qt.inspection_type_no, |
|
|
|
dbo.dm_get_inspection_type_name(qt.site, qt.inspection_type_no) as inspectionTypeName |
|
|
|
FROM dm_template as qt |
|
|
|
LEFT JOIN qc_inspection_type AS qit ON qt.inspection_type_no = qit.inspection_type_no and qt.site = qit.site |
|
|
|
<where> |
|
|
|
@ -1274,6 +1275,7 @@ |
|
|
|
AND epi.inspection_type_no = #{query.inspectionTypeNo} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by epi.ItemNo |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getDmPropertiesItemNo" resultType="string" parameterType="com.xujie.sys.modules.pms.data.QcItemData"> |
|
|
|
|