Browse Source

线索释放时间修改

anderx 1 year ago
parent
commit
0bbeb81268

+ 3 - 0
src/main/java/com/goafanti/common/constant/AFTConstants.java

@@ -14,6 +14,9 @@ public class AFTConstants {
 	public static final String	MMDDYYYY							= "MM/dd/yyyy";
 
 	public static final String	MMDD								= "MM-dd";
+
+	/**线索客户释放时间*/
+	public static final long CLUE_USER_MAX							= 30L;
 	/** 初始密码*/
 	public static final String	INITIALPASSWORD						= "123456";
 

+ 7 - 0
src/main/java/com/goafanti/common/mapper/AdminMapper.xml

@@ -1311,5 +1311,12 @@
         from admin
         where  call_no = #{callStaffNo}
     </select>
+
+    <select id="queryByTeamId" resultMap="AdminMap">
+        select
+        <include refid="AdminAllSql"/>
+        from admin
+        where team_id = #{teamId}
+    </select>
 </mapper>
 

+ 2 - 1
src/main/java/com/goafanti/common/task/ReleaseUserTask.java

@@ -47,6 +47,7 @@ public class ReleaseUserTask {
 
 	int pointsDataLimit = 50;
 
+
 	@Resource
 	private AdminUserCountMapper adminUserCountMapper;
 
@@ -100,7 +101,7 @@ public class ReleaseUserTask {
 				}else{
 					aid=admin.getId();
 				}
-				LocalDateTime endTime = clueTime.plusDays(15);
+				LocalDateTime endTime = clueTime.plusDays(AFTConstants.CLUE_USER_MAX);
 				long between= ChronoUnit.DAYS.between(now, endTime);
 				System.out.println("====="+u.getNickname()+"===="+between);
 				if (between<1){

+ 1 - 1
src/main/java/com/goafanti/customer/service/impl/UserClueServiceImpl.java

@@ -68,7 +68,7 @@ public class UserClueServiceImpl extends BaseMybatisDao<UserMapper> implements U
         LocalDateTime clueTime = null;
         for (OutUserClueList e : list) {
              clueTime=e.getClueTransferTime().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime();
-            clueTime = clueTime.withHour(0).withMinute(0).withSecond(0).plusDays(15);
+            clueTime = clueTime.withHour(0).withMinute(0).withSecond(0).plusDays(AFTConstants.CLUE_USER_MAX);
             long between = ChronoUnit.DAYS.between(now,clueTime);
             e.setDays((int) between);
         }