|
|
|
@ -11,9 +11,9 @@ |
|
|
|
</insert> |
|
|
|
<insert id="saveProductionValidationDocument"> |
|
|
|
INSERT INTO plm_project_document_confirm_file_list |
|
|
|
(site,Order_Ref1,Order_Ref2,Item_No,document_type,document_id) |
|
|
|
(site,Order_Ref1,Order_Ref2,Item_No,document_type,document_id,Order_Ref3) |
|
|
|
VALUES |
|
|
|
(#{site},#{orderRef1},#{orderRef2},#{itemNo},#{documentType},#{documentId}) |
|
|
|
(#{site},#{orderRef1},#{orderRef2},#{itemNo},#{documentType},#{documentId},#{orderRef3}) |
|
|
|
</insert> |
|
|
|
<insert id="saveProductionValidationDocumentConfirmator"> |
|
|
|
INSERT INTO plm_project_document_confirm |
|
|
|
@ -244,9 +244,18 @@ |
|
|
|
</select> |
|
|
|
<select id="searchConfirmProgressDocumentList" |
|
|
|
resultType="com.xujie.sys.modules.pms.data.ProjectProductionValidationDocumentData"> |
|
|
|
SELECT a.Item_No,a.document_type,b.file_name,a.document_id |
|
|
|
FROM plm_project_document_confirm_file_list as a |
|
|
|
LEFT JOIN sys_oss as b ON a.document_id = b.id and a.site = b.order_ref1 and a.Order_Ref1 = b.order_ref4 |
|
|
|
SELECT a.Item_No, |
|
|
|
a.document_type, |
|
|
|
(case when a.order_ref3 = '-2' then c.sop_name ELSE b.file_name END) as file_name, |
|
|
|
a.document_id, |
|
|
|
a.site, |
|
|
|
a.Order_Ref1 AS project_id, |
|
|
|
a.order_ref3 AS document_definition_list_id, |
|
|
|
b.created_by |
|
|
|
FROM |
|
|
|
plm_project_document_confirm_file_list AS a |
|
|
|
LEFT JOIN sys_oss AS b ON a.document_id = b.id |
|
|
|
LEFT JOIN part_sop AS c ON a.document_id = c.id |
|
|
|
WHERE a.Site = #{query.site} and a.Order_Ref1 = #{query.orderRef1} and a.Order_Ref2 = #{query.orderRef2} |
|
|
|
ORDER BY a.Item_No |
|
|
|
</select> |
|
|
|
|