|
|
|
@ -133,14 +133,22 @@ |
|
|
|
LEFT JOIN plm_project_part as b ON a.id = b.project_id |
|
|
|
WHERE a.project_no = #{projectNo} and a.site = #{site} and a.bu_no = #{buNo} |
|
|
|
</select> |
|
|
|
<select id="getTestPartNo" resultType="java.lang.String"> |
|
|
|
<select id="getCustomerNo" resultType="com.xujie.sys.modules.pms.data.EamProjectInfoData"> |
|
|
|
SELECT |
|
|
|
test_part_no |
|
|
|
customer_no, |
|
|
|
customer_desc, |
|
|
|
active |
|
|
|
FROM |
|
|
|
plm_project_part AS a |
|
|
|
LEFT JOIN plm_project_info AS b ON a.project_id = b.id |
|
|
|
ORDER BY test_part_no DESC |
|
|
|
plm_customer_information AS a |
|
|
|
where site = #{site} and active = 'Y' |
|
|
|
ORDER BY customer_no DESC |
|
|
|
</select> |
|
|
|
<insert id="saveNewCustomer"> |
|
|
|
INSERT INTO plm_customer_information |
|
|
|
(site,customer_no,customer_desc,create_date,create_by,active) |
|
|
|
VALUES |
|
|
|
(#{site},#{customerNo},#{customerDesc},GETDATE(),#{createBy},'Y') |
|
|
|
</insert> |
|
|
|
<select id="checkProjectDelete" resultType="com.xujie.sys.modules.pms.data.ProofingInformationData"> |
|
|
|
SELECT |
|
|
|
a.project_id, |
|
|
|
|