Browse Source

客户统计新增转交数据

anderx 1 year ago
parent
commit
a08b9534cd

+ 6 - 1
src/main/java/com/goafanti/common/mapper/AdminMapper.xml

@@ -980,7 +980,7 @@
         <if test="type == 1">
             and  a.share_type = 3
         </if>
-        <if test="type ==0  or type==3 or type==5 or type==7">
+        <if test="type ==0  or type==3 or type==5 or type==7 or type ==8">
             and a.channel=0
         </if>
         <if test="type == 1 or type==4 or type==6">
@@ -989,6 +989,7 @@
         <if test="type == 2">
             and a.share_type=2
         </if>
+
         <if test="type == 3 or type==4">
             and a.source=1
             and  a.share_type = 0
@@ -997,6 +998,10 @@
             and a.share_type = 0
             and a.source=2
         </if>
+        <if test="type == 8">
+            and  a.share_type = 0
+            and  a.source=3
+        </if>
         <if test="type!=5 and type!=6">
             <if test="startTime != null and endTime != null">
                 and  a.transfer_time between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}

+ 1 - 1
src/main/java/com/goafanti/customer/controller/AdminCustomerApiController.java

@@ -1385,7 +1385,7 @@ public class AdminCustomerApiController extends BaseApiController{
 	 * 查看客户日期内新增客户
 	 * @param startTime
 	 * @param endTime
-	 * @param type 0私有 1渠道 2签单 3私有新增 4渠道新增 5私有面谈 6渠道面谈 7私有领取
+	 * @param type 0私有 1渠道 2签单 3私有新增 4渠道新增 5私有面谈 6渠道面谈 7私有领取 8 私有转交
 	 * @param pageSize
 	 * @param pageNo
 	 * @return