傅行帆 3 лет назад
Родитель
Сommit
3e91224957

+ 0
- 4
src/main/java/com/yunzhi/marketing/common/CommConstant.java Просмотреть файл

@@ -269,10 +269,6 @@ public class CommConstant {
269 269
      * */
270 270
     public static final String ENTRY_VERIFY = "verify";
271 271
 
272
-    /**
273
-     * 渠道报备
274
-     */
275
-    public static final String ENTRY_CHANNEL_VERIFY = "channel_verify";
276 272
     //=================  客户入口类型 end =======================
277 273
 
278 274
     /**

+ 2
- 2
src/main/java/com/yunzhi/marketing/xlk/service/impl/ChannelCustomerServiceImpl.java Просмотреть файл

@@ -74,7 +74,7 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
74 74
             taRecommendCustomer.setReportDate(LocalDateTime.now());
75 75
             taRecommendCustomer.setOrgId(customer.getOrgId());
76 76
             taRecommendCustomer.setPersonId(customer.getPersonId());
77
-            taRecommendCustomer.setEntryType(CommConstant.ENTRY_CHANNEL_VERIFY);
77
+            taRecommendCustomer.setEntryType(CommConstant.ENTRY_VERIFY);
78 78
             taRecommendCustomer.setStatus(CommConstant.CUSTOMER_REPORT);
79 79
             taRecommendCustomerMapper.insert(taRecommendCustomer);
80 80
             return ResponseBean.success("审核成功");
@@ -126,7 +126,7 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
126 126
                 taRecommendCustomer.setReportDate(LocalDateTime.now());
127 127
                 taRecommendCustomer.setOrgId(customer.getOrgId());
128 128
                 taRecommendCustomer.setPersonId(customer.getPersonId());
129
-                taRecommendCustomer.setEntryType(CommConstant.ENTRY_CHANNEL_VERIFY);
129
+                taRecommendCustomer.setEntryType(CommConstant.ENTRY_VERIFY);
130 130
                 taRecommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
131 131
                 taRecommendCustomerMapper.insert(taRecommendCustomer);
132 132
                 return ResponseBean.success("审核成功");

+ 9
- 8
src/main/resources/mapper/TaRecommendCustomerMapper.xml Просмотреть файл

@@ -944,18 +944,19 @@ FROM
944 944
     </select>
945 945
     <select id="getMarkingCustList" resultType="com.yunzhi.marketing.po.TaRecommendCustomerPO">
946 946
         SELECT
947
-            customer_id AS id,
948
-            name,
949
-            phone,
950
-            picture,
951
-            sex,
947
+            t.customer_id AS id,
948
+            t.NAME,
949
+            t.phone,
950
+            t.picture,
951
+            t.sex,
952 952
             "customer" AS type
953 953
         FROM
954
-            ta_recommend_customer
954
+            ta_recommend_customer t
955
+        INNER JOIN ta_person p ON t.recommend_person = p.person_id
955 956
         WHERE
956
-            building_id = #{buildingId}
957
+            t.building_id = #{buildingId}
957 958
         <if test="keywords != null and keywords !=''">
958
-            and name like CONCAT('%',#{keywords}, '%')
959
+            and t.name like CONCAT('%',#{keywords}, '%')
959 960
         </if>
960 961
     UNION ALL
961 962
         SELECT