|
|
|
@ -2390,7 +2390,8 @@ |
|
|
|
a.rev, |
|
|
|
a.customer_rev as customerRev, |
|
|
|
b.plm_part_no as plmPartNo, |
|
|
|
c.project_name as projectName |
|
|
|
c.project_name as projectName, |
|
|
|
a.document_source as documentSource |
|
|
|
FROM plm_technical_specification_sheet a |
|
|
|
left join view_Project_final_Part b |
|
|
|
on a.site = b.site and a.project_id = b.project_id and a.test_part_no = b.test_part_no |
|
|
|
@ -2449,6 +2450,15 @@ |
|
|
|
<if test="buNo != null and buNo != ''"> |
|
|
|
AND b.bu_no like #{buNo} |
|
|
|
</if> |
|
|
|
<if test="nodeId != null and nodeId != ''"> |
|
|
|
AND d.node_id like #{nodeId} |
|
|
|
</if> |
|
|
|
<if test="sp != null and sp != ''"> |
|
|
|
AND dbo.get_plm_Approval_username(a.site, prh.workflow_id, d.node_id, a.code_no) like #{sp} |
|
|
|
</if> |
|
|
|
<if test="documentSource != null and documentSource != ''"> |
|
|
|
AND a.document_source = #{documentSource} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by a.ori_code_no desc, a.rev_no desc |
|
|
|
</select> |
|
|
|
@ -2640,4 +2650,21 @@ |
|
|
|
set is_remark = 1 |
|
|
|
where site = #{site} and document_no = #{codeNo} and document_type = 'BM' and is_remark = 0 |
|
|
|
</update> |
|
|
|
|
|
|
|
<select id="nodeList" resultType="com.spring.modules.sampleManagement.entity.NodeVo" |
|
|
|
parameterType="com.spring.modules.sampleManagement.data.PlmTechnicalSpecificationSheetData"> |
|
|
|
SELECT distinct |
|
|
|
d.node_id AS nodeId, |
|
|
|
d.node_name AS nodeName |
|
|
|
FROM |
|
|
|
plm_technical_specification_sheet AS a |
|
|
|
LEFT JOIN plm_request_header AS prh ON a.site = prh.site |
|
|
|
AND prh.menu_id = '103002' |
|
|
|
LEFT JOIN plm_request_node AS d ON a.site = d.site |
|
|
|
AND prh.classification_no = d.classification_no |
|
|
|
AND prh.workflow_id = d.workflow_id |
|
|
|
AND a.step_id = d.step_id |
|
|
|
WHERE |
|
|
|
d.site = #{ site } |
|
|
|
</select> |
|
|
|
</mapper> |