|
|
|
@ -127,6 +127,31 @@ |
|
|
|
where site=#{site} and customer_no=#{customerId} and contact_status='启用' |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getPlmProjectContactString2" resultType="PlmProjectContactData"> |
|
|
|
select |
|
|
|
b.contact_name |
|
|
|
from plm_project_contact a |
|
|
|
left join plm_customer_contact b on a.site = b.site and a.customer_id = b.customer_no and a.contact_name = b.contact_name |
|
|
|
where |
|
|
|
<where> |
|
|
|
a.site = #{site} and a.project_id = #{projectId} and a.customer_id = #{customerId} and b.contact_status = '启用' |
|
|
|
AND b.codeNo is null |
|
|
|
<if test = "propertiesItemNo != null and propertiesItemNo != ''"> |
|
|
|
AND a.ItemNo LIKE #{propertiesItemNo} |
|
|
|
</if> |
|
|
|
<if test = "itemDesc != null and itemDesc != ''"> |
|
|
|
AND a.ItemDesc LIKE #{itemDesc} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getCustomerContactString2" resultType="PlmProjectContactData"> |
|
|
|
select |
|
|
|
contact_name |
|
|
|
from plm_customer_contact |
|
|
|
where site = #{site} and customer_no = #{customerId} and contact_status = '启用' |
|
|
|
</select> |
|
|
|
|
|
|
|
<delete id="deleteProjectContact"> |
|
|
|
delete from plm_project_contact where site=#{site} and project_id=#{projectId} |
|
|
|
</delete> |
|
|
|
|