|
|
@@ -90,10 +90,10 @@ public class PatentTask {
|
|
|
int count = (int) ((ted.getTimeInMillis()-ced.getTimeInMillis()) / (1000*3600*24));
|
|
|
Notice n =new Notice();
|
|
|
n.setId(UUID.randomUUID().toString());
|
|
|
- n.setNoticeType(NoticeStatus.ORDER_NO.getCode());
|
|
|
n.setCreateTime(new Date());
|
|
|
n.setReaded(0);//未读
|
|
|
n.setAid("1");
|
|
|
+ n.setNoticeType(NoticeStatus.TASK_PATENT_ERROR.getCode());
|
|
|
if (count>=0&&count<=90) {
|
|
|
Admin a=adminService.selectByPrimaryKey(p.getAid());
|
|
|
//设置如果找不到用户则提醒
|
|
|
@@ -107,6 +107,10 @@ public class PatentTask {
|
|
|
}else if (!SendEmailUtil.isEmail(p.getEmail())) {
|
|
|
EmailBo emailBo = new EmailBo( "专利提醒失败【邮件】", AFTConstants.ADMIN_EMAIL, "超管", "平台", "系统",str2);
|
|
|
SendEmailUtil.getInstance().send(emailBo);
|
|
|
+ if (SendEmailUtil.isEmail(a.getEmail())) {
|
|
|
+ emailBo = new EmailBo( "专利提醒失败【邮件】", a.getEmail(),"超管", "平台", "系统",str2 );
|
|
|
+ SendEmailUtil.getInstance().send(emailBo);
|
|
|
+ }
|
|
|
nlist.add(n);
|
|
|
continue;
|
|
|
|
|
|
@@ -132,6 +136,7 @@ public class PatentTask {
|
|
|
patentNewService.addPatenNewLog(pl);
|
|
|
n.setAid(p.getAid());
|
|
|
n.setContent(str);
|
|
|
+ n.setNoticeType(NoticeStatus.TASK_PATENT_REMIND.getCode());
|
|
|
nlist.add(n);
|
|
|
Thread.sleep(2000);
|
|
|
}
|