Browse Source

2024.1.8

master
yuejiayang 2 years ago
parent
commit
285770040a
  1. 46
      src/main/resources/mapper/quotation/QuotationInformationMapper.xml

46
src/main/resources/mapper/quotation/QuotationInformationMapper.xml

@ -203,27 +203,31 @@
<!-- 获取客户信息 --> <!-- 获取客户信息 -->
<select id="getCustomerInformation" parameterType="com.spring.modules.customer.vo.CustomerInformationVo" resultType="com.spring.modules.customer.vo.CustomerInformationVo"> <select id="getCustomerInformation" parameterType="com.spring.modules.customer.vo.CustomerInformationVo" resultType="com.spring.modules.customer.vo.CustomerInformationVo">
SELECT SELECT
site,
customer_no,
customer_desc,
customer_currency,
turnover_of_year,
potential_revenue_of_year,
important_customer,
customer_status,
customer_description,
customer_industry,
create_date,
create_by,
update_date,
update_by,
dbo.plm_get_contactName(site, customer_no, 'Y') as contactName,
dbo.plm_get_contactPhoneNumber(site, customer_no, 'Y') as contactPhoneNumber1,
dbo.plm_get_addressName(site, customer_no) as addressName,
dbo.plm_get_position(site, customer_no, 'Y') as position,
dbo.plm_get_addressType(site, customer_no) as addressType
FROM plm_customer_information
where site = #{site} and customer_no = #{customerNo}
a.site,
a.customer_no,
a.customer_desc,
a.customer_currency,
a.turnover_of_year,
a.potential_revenue_of_year,
a.important_customer,
a.customer_status,
a.customer_description,
a.customer_industry,
a.create_date,
a.create_by,
a.update_date,
a.update_by,
b.company_name AS companyName,
b.address_type AS addressType,
dbo.plm_get_contactName ( a.site, a.customer_no, 'Y' ) AS contactName,
dbo.plm_get_contactPhoneNumber ( a.site, a.customer_no, 'Y' ) AS contactPhoneNumber1,
dbo.plm_get_addressName ( a.site, a.customer_no ) AS addressName,
dbo.plm_get_position ( a.site, a.customer_no, 'Y' ) AS POSITION
FROM
plm_customer_information a
LEFT JOIN plm_customer_address b ON a.site = b.site
AND a.customer_no = b.customer_no
where a.site = #{site} and a.customer_no = #{customerNo}
</select> </select>
<!-- 批量删除文件--> <!-- 批量删除文件-->

Loading…
Cancel
Save