|
@@ -66,10 +66,14 @@ public class ScheduleTask {
|
|
|
List<Map> establishContactData = yidaService.queryLtcCustomerEstablishContactData();
|
|
List<Map> establishContactData = yidaService.queryLtcCustomerEstablishContactData();
|
|
|
log.info("已建联跟进记录数:"+ establishContactData.size());
|
|
log.info("已建联跟进记录数:"+ establishContactData.size());
|
|
|
|
|
|
|
|
|
|
+ //进入私海时间分界点(2026年5月10日)
|
|
|
|
|
+ long enterPrivateTime = UtilDateTime.getLocalDateTimeTimeStamp(LocalDate.of(2026, 5, 10).atStartOfDay());
|
|
|
|
|
+
|
|
|
//查询超过3天未跟进的私海新客户记录
|
|
//查询超过3天未跟进的私海新客户记录
|
|
|
long endTime = UtilDateTime.getLocalDateTimeTimeStamp(LocalDate.now().minusDays(3).atTime(LocalTime.MIN));
|
|
long endTime = UtilDateTime.getLocalDateTimeTimeStamp(LocalDate.now().minusDays(3).atTime(LocalTime.MIN));
|
|
|
List ydFilters = Arrays.asList(
|
|
List ydFilters = Arrays.asList(
|
|
|
-// new YDSearch("radioField_mnpdkss9","否","测试使用", YDSearch.Type.RADIO_FIELD,YDSearch.Operator.EQ),
|
|
|
|
|
|
|
+ new YDSearch("radioField_mnpdkss9","否","测试使用", YDSearch.Type.RADIO_FIELD,YDSearch.Operator.EQ),
|
|
|
|
|
+ new YDSearch("dateField_moxzc25f",enterPrivateTime,"进入私海时间", YDSearch.Type.DATE_FIELD,YDSearch.Operator.GT),
|
|
|
new YDSearch("radioField_md6q7oxa","私","公海or私海", YDSearch.Type.RADIO_FIELD,YDSearch.Operator.EQ),
|
|
new YDSearch("radioField_md6q7oxa","私","公海or私海", YDSearch.Type.RADIO_FIELD,YDSearch.Operator.EQ),
|
|
|
new YDSearch("radioField_md6q7ox8","新","新老客户", YDSearch.Type.RADIO_FIELD,YDSearch.Operator.EQ),
|
|
new YDSearch("radioField_md6q7ox8","新","新老客户", YDSearch.Type.RADIO_FIELD,YDSearch.Operator.EQ),
|
|
|
new YDSearch("dateField_l3tw3kfn",endTime,"最后跟进时间",YDSearch.Type.DATE_FIELD,YDSearch.Operator.LT)
|
|
new YDSearch("dateField_l3tw3kfn",endTime,"最后跟进时间",YDSearch.Type.DATE_FIELD,YDSearch.Operator.LT)
|
|
@@ -102,7 +106,7 @@ public class ScheduleTask {
|
|
|
alertDetailRecord.put("customerCode",UtilMap.getString(customerRecord, "customerCode"));
|
|
alertDetailRecord.put("customerCode",UtilMap.getString(customerRecord, "customerCode"));
|
|
|
alertDetailRecord.put("today", UtilDateTime.getLocalDateTimeTimeStamp(LocalDate.now().atStartOfDay()));
|
|
alertDetailRecord.put("today", UtilDateTime.getLocalDateTimeTimeStamp(LocalDate.now().atStartOfDay()));
|
|
|
// alertDetailRecord.put("tomorrow", UtilDateTime.getLocalDateTimeTimeStamp(LocalDate.now().plusDays(1).atStartOfDay()));
|
|
// alertDetailRecord.put("tomorrow", UtilDateTime.getLocalDateTimeTimeStamp(LocalDate.now().plusDays(1).atStartOfDay()));
|
|
|
- alertDetailRecord.put("remark","私海,新客户,未建联,超过3天未跟进");
|
|
|
|
|
|
|
+ alertDetailRecord.put("remark","2026年5月10日后进入私海,新客户,未建联,超过3天未跟进");
|
|
|
yidaService.addAlertDetail(alertDetailRecord);
|
|
yidaService.addAlertDetail(alertDetailRecord);
|
|
|
}
|
|
}
|
|
|
|
|
|