✨ 新增未关联业务员客户列表
This commit is contained in:
@@ -112,6 +112,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
order by c.customer_id desc
|
||||
</select>
|
||||
|
||||
<select id="selectUnlinkedSalesUserCustomerList"
|
||||
parameterType="com.bms.customer.customerinfo.domain.BmsCustomer"
|
||||
resultType="com.bms.customer.customerinfo.vo.UnlinkedSalesCustomerVO">
|
||||
select c.customer_id as customerId,
|
||||
c.customer_code as customerCode,
|
||||
c.customer_name as customerName,
|
||||
c.customer_code_dw as customerCodeDw,
|
||||
c.customer_type as customerType,
|
||||
c.is_enable as isEnable,
|
||||
c.source_sales_code as sourceSalesCode
|
||||
from ctr_customer c
|
||||
left join sys_user su
|
||||
on su.del_flag = '0'
|
||||
and cast(su.user_id as char) = c.sales_user_id
|
||||
where c.del_flag = '0'
|
||||
and (c.sales_user_id is null or trim(c.sales_user_id) = '')
|
||||
${params.dataScope}
|
||||
order by c.customer_id desc
|
||||
</select>
|
||||
|
||||
<resultMap type="BmsCustomerOption" id="BmsCustomerOptionResult">
|
||||
<result property="customerId" column="customer_id" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
|
||||
Reference in New Issue
Block a user