Bladeren bron

经销商用户同步用户关联经销商处理

njs 6 maanden geleden
bovenliggende
commit
751f9789f1

+ 4 - 4
suishenbang-sync/suishenbang-sync-common/src/main/resources/mapper/sync/CustomersMapper.xml

@@ -131,15 +131,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </delete>
 
     <select id="selectCustomerMapByCode" resultMap="CustomersResult">
-       SELECT MainCustomerCode as code,MainCustomerName as chains_name,MainCustomerCode as chains_code FROM data_master_customer where MainCustomerCode is not null
+       SELECT CustomerCode as code,CustomerName as chains_name,CustomerCode as chains_code FROM data_master_customer where CustomerCode is not null
     </select>
     <select id="selectCustomerMapByChainsCode" resultMap="CustomersResult">
-        SELECT MainCustomerCode as chains_code,MainCustomerName as chains_name FROM data_master_customer where MainCustomerCode is not null
+        SELECT CustomerCode as chains_code,CustomerName as chains_name FROM data_master_customer where CustomerCode is not null
     </select>
 
     <select id="selectCustomerNameByCustomerCode" resultType="java.lang.String">
-        select MainCustomerName from data_master_customer where 1=1
-        <if test="customerCode !=null and customerCode !='' ">and MainCustomerCode =#{customerCode}</if>
+        select CustomerName from data_master_customer where 1=1
+        <if test="customerCode !=null and customerCode !='' ">and CustomerCode =#{customerCode}</if>
         limit 1
     </select>
 </mapper>