|
|
|
@ -112,18 +112,18 @@ |
|
|
|
select b.site,b.customer_no,b.contact_name,b.contact_landline_number,b.contact_phone_number1,b.contact_phone_number2, |
|
|
|
b.contact_phone_number3,b.position,b.mailbox,b.primary_contact,b.contact_status,b.remark,b.create_date,b.create_by, |
|
|
|
b.update_date,b.update_by,b.contact_id,a.customer_id |
|
|
|
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 |
|
|
|
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_id=b.contact_id |
|
|
|
where a.site=#{site} and a.project_id=#{projectId} and a.customer_id=#{customerId} and b.contact_status='启用' |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getPlmProjectContactString" resultType="String"> |
|
|
|
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 |
|
|
|
select b.contact_id |
|
|
|
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_id=b.contact_id |
|
|
|
where a.site=#{site} and a.project_id=#{projectId} and a.customer_id=#{customerId} and b.contact_status='启用' |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getCustomerContactString" resultType="PlmProjectContactData"> |
|
|
|
select contact_name from plm_customer_contact |
|
|
|
select contact_id,contact_name from plm_customer_contact |
|
|
|
where site=#{site} and customer_no=#{customerId} and contact_status='启用' |
|
|
|
</select> |
|
|
|
|
|
|
|
@ -132,8 +132,8 @@ |
|
|
|
</delete> |
|
|
|
|
|
|
|
<insert id="saveProjectContactList"> |
|
|
|
insert into plm_project_contact (site,project_id,contact_name,customer_id) |
|
|
|
values (#{site},#{projectId},#{contactName},#{customerId}) |
|
|
|
insert into plm_project_contact (site,project_id,contact_id,customer_id) |
|
|
|
values (#{site},#{projectId},#{contactId},#{customerId}) |
|
|
|
</insert> |
|
|
|
<delete id="deleteProjectInfo"> |
|
|
|
delete from plm_project_info where site=#{site} and project_id=#{projectId} |
|
|
|
|