|
|
@@ -31,8 +31,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
wsui.create_time, wsui.create_by, wsui.update_time, wsui.update_by, wsui.remark,
|
|
|
COALESCE(wsui.tag_names, cc.tags) as tag_names
|
|
|
from wx_sop_user_info wsui
|
|
|
- left join ylrz_his_scrm.wx_contact wc on wsui.wx_contact_id = wc.id
|
|
|
- left join ylrz_his_scrm.crm_customer cc on COALESCE(wc.customer_id, wsui.customer_id) = cc.customer_id
|
|
|
+ left join wx_contact wc on wsui.wx_contact_id = wc.id
|
|
|
+ left join crm_customer cc on COALESCE(wc.customer_id, wsui.customer_id) = cc.customer_id
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectWxSopUserInfoList" parameterType="WxSopUserInfo" resultMap="WxSopUserInfoResult">
|