Browse Source

新增处理旧数据客户首次面谈客户时间

anderx 9 months ago
parent
commit
4125dc0a0f

+ 1 - 1
src/main/java/com/goafanti/admin/bo/AdminCustomerBo.java

@@ -13,7 +13,7 @@ public class AdminCustomerBo {
 	/** 私有数 */
 	@Excel( name = "私有数",width = 12)
 	private Integer userCount;
-	@Excel( name = "有效面谈",width = 12)
+	@Excel( name = "有效面谈",width = 12)
 	private Integer firstInterviewCount;
 	/** 渠道数 */
 	@Excel( name = "渠道数",width = 12)

+ 9 - 0
src/main/java/com/goafanti/admin/bo/DepCountBo.java

@@ -8,6 +8,7 @@ public class DepCountBo {
 	private String id;
 	private String name;
 	private Integer userCount;
+	private Integer firstInterviewCount;
 	private Integer receiveCount;
 	private Integer completeCount;
 	private Integer signCount;
@@ -25,6 +26,14 @@ public class DepCountBo {
 	private List<DepCountBo> list;
 	private List<AdminCustomerBo> aList;
 
+	public Integer getFirstInterviewCount() {
+		return firstInterviewCount;
+	}
+
+	public void setFirstInterviewCount(Integer firstInterviewCount) {
+		this.firstInterviewCount = firstInterviewCount;
+	}
+
 	public Integer getGeneralCount() {
 		return generalCount;
 	}

+ 6 - 1
src/main/java/com/goafanti/admin/service/impl/AdminServiceImpl.java

@@ -496,6 +496,7 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
 		if (admin.getIntentionCount()==null)admin.setIntentionCount(0);
 		if (admin.getKeynoteCount()==null)admin.setKeynoteCount(0);
 		if (admin.getGeneralCount()==null)admin.setGeneralCount(0);
+		if (admin.getFirstInterviewCount()==null)admin.setFirstInterviewCount(0);
 	}
 
 	//迭代获取所有部门与部门员工并计算出部门数量
@@ -519,7 +520,8 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
 	 */
 	public void sumCount(DepCountBo ab) {
 		int completeCount=0,receiveCount=0,userCount=0,signCount=0,channelCount=0,newCount=0,channelNewCount=0,
-				channelCompleteCount=0,transferCount=0,intentionCount=0,keynoteCount=0,generalCount=0;
+				channelCompleteCount=0,transferCount=0,intentionCount=0,keynoteCount=0,generalCount=0,firstInterviewCount=0;
+
 		if (ab.getList()!=null&&!ab.getList().isEmpty()) {
 			for (DepCountBo a : ab.getList()) {
 				if (a.getCompleteCount()!=null&& a.getCompleteCount()!=0) completeCount+=a.getCompleteCount();
@@ -534,6 +536,7 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
 				if (a.getIntentionCount()!=null&& a.getIntentionCount()!=0) intentionCount+=a.getIntentionCount();
 				if (a.getKeynoteCount()!=null&& a.getKeynoteCount()!=0) keynoteCount+=a.getKeynoteCount();
 				if (a.getGeneralCount()!=null&& a.getGeneralCount()!=0) generalCount=a.getGeneralCount();
+				if (a.getFirstInterviewCount()!=null&& a.getFirstInterviewCount()!=0) firstInterviewCount+=a.getFirstInterviewCount();
 			}
 		}
 		if (ab.getaList()!=null&&!ab.getaList().isEmpty()) {
@@ -550,6 +553,7 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
 				if (a.getIntentionCount()!=null&& a.getIntentionCount()!=0) intentionCount+=a.getIntentionCount();
 				if (a.getKeynoteCount()!=null&& a.getKeynoteCount()!=0) keynoteCount+=a.getKeynoteCount();
 				if (a.getGeneralCount()!=null&& a.getGeneralCount()!=0) generalCount=a.getGeneralCount();
+				if (a.getFirstInterviewCount()!=null&& a.getFirstInterviewCount()!=0) firstInterviewCount+=a.getFirstInterviewCount();
 			}
 		}
 		ab.setCompleteCount(completeCount);
@@ -564,6 +568,7 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
 		ab.setIntentionCount(intentionCount);
 		ab.setKeynoteCount(keynoteCount);
 		ab.setGeneralCount(generalCount);
+		ab.setFirstInterviewCount(firstInterviewCount);
 
 	}