소스 검색

新增统计订单客户查询

anderx 3 년 전
부모
커밋
a18fb1fb17

+ 4 - 4
src/main/java/com/goafanti/common/mapper/UserMidMapper.xml

@@ -486,8 +486,8 @@
     <if test="lastFollowType != null">
       and b.last_follow_type = #{lastFollowType}
     </if>
-    <if test="followDep != null">
-      and b.follow_dep = #{followDep}
+    <if test="depId != null">
+      and c.department_id  = #{depId}
     </if>
     <if test="lastFollowTimeStart != null and lastFollowTimeEnd !=null">
       and b.last_follow_time BETWEEN #{lastFollowTimeStart} and #{lastFollowTimeEnd}
@@ -533,8 +533,8 @@
     <if test="lastFollowType != null">
       and b.last_follow_type = #{lastFollowType}
     </if>
-    <if test="followDep != null">
-      and b.follow_dep = #{followDep}
+    <if test="depId != null">
+      and c.department_id  = #{depId}
     </if>
     <if test="lastFollowTimeStart != null and lastFollowTimeEnd !=null">
       and b.last_follow_time BETWEEN #{lastFollowTimeStart} and #{lastFollowTimeEnd}

+ 5 - 5
src/main/java/com/goafanti/order/bo/InputSignSummary.java

@@ -9,7 +9,7 @@ public class InputSignSummary {
     private Integer chargeback;
     private Integer bigCustomer;
     private Integer lastFollowType;
-    private String followDep;
+    private String depId;
     private String lastFollowTimeStart;
     private String lastFollowTimeEnd;
     private String firstSigningTimeStart;
@@ -95,12 +95,12 @@ public class InputSignSummary {
         this.lastFollowType = lastFollowType;
     }
 
-    public String getFollowDep() {
-        return followDep;
+    public String getDepId() {
+        return depId;
     }
 
-    public void setFollowDep(String followDep) {
-        this.followDep = followDep;
+    public void setDepId(String depId) {
+        this.depId = depId;
     }
 
     public String getLastFollowTimeStart() {

+ 1 - 1
src/main/java/com/goafanti/order/service/impl/UserStatisticsServiceImpl.java

@@ -38,7 +38,7 @@ public class UserStatisticsServiceImpl extends BaseMybatisDao<UserMidMapper> imp
 		if (in.getChargeback()!=null) map.put("chargeback", in.getChargeback());
 		if (in.getBigCustomer()!=null) map.put("bigCustomer", in.getBigCustomer());
 		if (in.getLastFollowType()!=null) map.put("lastFollowType", in.getLastFollowType());
-		if (in.getFollowDep()!=null) map.put("followDep", in.getFollowDep());
+		if (in.getDepId()!=null) map.put("depId", in.getDepId());
 		if (in.getLastFollowTimeStart()!=null) map.put("lastFollowTimeStart", in.getLastFollowTimeStart());
 		if (in.getLastFollowTimeEnd()!=null) map.put("lastFollowTimeEnd", in.getLastFollowTimeEnd()+" 23:59:59");
 		if (in.getFirstSigningTimeStart()!=null) map.put("firstSigningTimeStart", in.getFirstSigningTimeStart());