|
|
@ -65,10 +65,8 @@ public class BasicScheduledTask { |
|
|
|
* realId刷新 |
|
|
|
* realId刷新 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@XxlJob(CERTIFICATET_DEAD_LINE_NOTICE) |
|
|
|
@XxlJob(CERTIFICATET_DEAD_LINE_NOTICE) |
|
|
|
// @Scheduled(cron = "0/40 * * * * ? ")
|
|
|
|
//@Scheduled(cron = "0/40 * * * * ? ")
|
|
|
|
public ReturnT<String> certificatetDeadLineNotice(String param) throws ParseException { |
|
|
|
public ReturnT<String> certificatetDeadLineNotice(String param) throws ParseException { |
|
|
|
// public ReturnT<String> certificatetDeadLineNotice() throws ParseException {
|
|
|
|
|
|
|
|
// String param="";
|
|
|
|
|
|
|
|
Date endTime = new Date(); |
|
|
|
Date endTime = new Date(); |
|
|
|
if (StringUtils.isNotBlank(param)) { |
|
|
|
if (StringUtils.isNotBlank(param)) { |
|
|
|
endTime = new SimpleDateFormat("yyyy-MM-dd").parse(param); |
|
|
|
endTime = new SimpleDateFormat("yyyy-MM-dd").parse(param); |
|
|
@ -118,7 +116,7 @@ public class BasicScheduledTask { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void sendMessage(CertificatetEntity certificatetEntity, Integer date, String users,String personNotice) { |
|
|
|
private void sendMessage(CertificatetEntity certificatetEntity, Integer date, String users,String personNotice) { |
|
|
|
// //注意:通知人是创建人所在机构
|
|
|
|
//注意:通知人是创建人所在机构
|
|
|
|
BusinessMessageDTO message = new BusinessMessageDTO(); |
|
|
|
BusinessMessageDTO message = new BusinessMessageDTO(); |
|
|
|
message.setBusinessClassify("system"); |
|
|
|
message.setBusinessClassify("system"); |
|
|
|
message.setBusinessKey("certificatet-notice-message"); |
|
|
|
message.setBusinessKey("certificatet-notice-message"); |
|
|
|