Browse Source

定时任务修改

anderx 1 year ago
parent
commit
818f9f2fb6
1 changed files with 13 additions and 5 deletions
  1. 13 5
      src/main/java/com/goafanti/common/task/ReleaseUserTask.java

+ 13 - 5
src/main/java/com/goafanti/common/task/ReleaseUserTask.java

@@ -363,13 +363,21 @@ public class ReleaseUserTask {
 		List<Notice> nl=new ArrayList<Notice>();
 		if (!userTmpList.isEmpty()) {
 			for (LockingReleaseBo u : userTmpList) {
-				String shareType="";
-				if(u.getNewChannel()==0&&u.getShareType()==0)shareType="私有";
-				else if(u.getNewChannel()==0&&u.getShareType()==2)shareType="签单";
-				else if(u.getNewChannel()==1)shareType="渠道";
+				String str="";
+				String str2="";
+				String str3="";
+				if(u.getNewChannel()==0&&u.getShareType()==0){
+					str2="私有";
+					str3="或270天未签单";
+				}else if(u.getNewChannel()==0&&u.getShareType()==2){
+					str2="签单";
+				}else if(u.getNewChannel()==1){
+					str2= "渠道";
+				}
+				str=String.format("您的%s客户【%s】已经30天未跟进%s,已经自动释放!", str2,str3, u.getUserName());
 				nl.add(new Notice(UUID.randomUUID().toString(), new Date(), 0, u.getAid(),
 						NoticeStatus.CUSTOMER_LOSE30.getCode(),
-						String.format("您的%s客户【%s】已经30天未跟进或270天未签单,已经自动释放!", shareType, u.getUserName()),
+						str,
 						u.getUid()));
 			}
 		}