xw преди 4 дни
родител
ревизия
b1655f12d4

+ 1 - 1
fs-service/src/main/resources/mapper/crm/CrmCustomerMapper.xml

@@ -61,7 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectCrmCustomerVo">
-        select * from ylrz_his_scrm.crm_customer
+        select * from crm_customer
     </sql>
 
     <select id="selectCrmCustomerList" parameterType="CrmCustomer" resultMap="CrmCustomerResult">

+ 1 - 1
fs-service/src/main/resources/mapper/wx/WxSopLogsMapper.xml

@@ -248,7 +248,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             cwa.company_id
         FROM wx_sop_logs wsl
         LEFT JOIN wx_sop_user_info wsui ON wsl.sop_id = wsui.sop_id AND wsl.wx_contact_id = wsui.wx_contact_id
-        LEFT JOIN ylrz_his_scrm.company_wx_account cwa ON wsl.account_id = cwa.id
+        LEFT JOIN company_wx_account cwa ON wsl.account_id = cwa.id
         <where>
             <if test="sopId != null">AND wsl.sop_id = #{sopId}</if>
             <if test="sopUserId != null">AND wsl.sop_user_id = #{sopUserId}</if>

+ 2 - 2
fs-service/src/main/resources/mapper/wx/WxSopUserInfoMapper.xml

@@ -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">

+ 1 - 1
fs-service/src/main/resources/mapper/wx/WxSopUserMapper.xml

@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         w.create_time, w.create_by, w.update_time, w.update_by, w.remark,
         c.wx_nick_name AS account_name
         FROM wx_sop_user w
-        LEFT JOIN ylrz_his_scrm.company_wx_account c ON w.account_id = c.id
+        LEFT JOIN company_wx_account c ON w.account_id = c.id
         <where>
             <if test="type != null "> and type = #{type}</if>
             <if test="sopId != null "> and sop_id = #{sopId}</if>