|
@@ -2209,7 +2209,7 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
List<RuralProjectRecords> projectRecordsList = dao.getProjectReportedListByAdvent(projectRecords);
|
|
|
List<RuralProjectRecords> projectRecordsListNoUrgency = dao.getProjectReportedListByAdventNoUrgency(projectRecords);
|
|
|
projectRecordsList.addAll(projectRecordsListNoUrgency);
|
|
|
- /*for (RuralProjectRecords info: projectRecordsList) {
|
|
|
+ for (RuralProjectRecords info: projectRecordsList) {
|
|
|
String notifyStr = null;
|
|
|
String titleStr = null;
|
|
|
//如果当前时间大于过期时间
|
|
@@ -2222,20 +2222,26 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
titleStr = "项目【"+ info.getProjectName()+"】即将上报超期。超期时间:"+info.getAdventDate();
|
|
|
}
|
|
|
|
|
|
+ //计算两日期之间的天数
|
|
|
+ Integer interval = Integer.valueOf(this.getInterval(java.sql.Date.valueOf(info.getAdventDate()), new Date()));
|
|
|
+
|
|
|
+ String newTitleStr = titleStr;
|
|
|
+ if (interval > 0) {
|
|
|
+ newTitleStr = titleStr + "已超期:" + interval + "天。请尽快上报";
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
//查询项目的登记人和责任人的id
|
|
|
List<User> projectLeaders = dao.getProjectCreateUserAndChargeUser(info.getId());
|
|
|
//List<User> projectLeaders = workProjectUserDao.queryProjectUsers(info.getId(), "1");
|
|
|
for (User user: projectLeaders) {
|
|
|
//根据标题查询通知信息中是否存在未读的信息,有则进行更新并对重复数量进行+1操作
|
|
|
- WorkProjectNotify byTitleAndUnread = workProjectNotifyService.getByTitleAndUnread(titleStr,user.getId());
|
|
|
+ WorkProjectNotify byTitleAndUnread = workProjectNotifyService.getByTitleAndUnread(notifyStr,user.getId());
|
|
|
|
|
|
- //计算两日期之间的天数
|
|
|
- Integer interval = Integer.valueOf(this.getInterval(java.sql.Date.valueOf(info.getAdventDate()), new Date()));
|
|
|
- if(interval > 0){
|
|
|
- titleStr = titleStr + "已超期:" + interval + "天。请尽快上报";
|
|
|
- }
|
|
|
|
|
|
if(null != byTitleAndUnread){
|
|
|
+ //将所有的被通知人的该条通知均调整为已读,然后将最后一条数据进行调整
|
|
|
+ workProjectNotifyService.deleteByNotifyUser(notifyStr,user.getId());
|
|
|
byTitleAndUnread.setExigency("1");
|
|
|
workProjectNotifyService.updateOverDueInfo(byTitleAndUnread);
|
|
|
}else{
|
|
@@ -2243,7 +2249,7 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
.save(UtilNotify.saveNotify(info.getId(),
|
|
|
user,
|
|
|
info.getCompany().getId(),
|
|
|
- titleStr,
|
|
|
+ newTitleStr,
|
|
|
notifyStr,
|
|
|
"94",
|
|
|
"0",
|
|
@@ -2254,7 +2260,7 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
|
|
|
}
|
|
|
|
|
|
- }*/
|
|
|
+ }
|
|
|
//获取项目数据(获取已经超期的项目数据,进行修改超期状态)
|
|
|
List<RuralProjectRecords> projectNotReportList = dao.getProjectNotReportList(projectRecords);
|
|
|
List<RuralProjectRecords> projectNotReportListNoUrgency = dao.getProjectNotReportListNoUrgency(projectRecords);
|
|
@@ -3449,7 +3455,7 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
//获取项目数据(非紧急项目-电子归档)
|
|
|
List<RuralProjectRecords> projectRecordsList = dao.getProjectRecordListByAdvent(projectRecords);
|
|
|
projectRecordsList.addAll(projectRecordsExamineList);
|
|
|
- /*for (RuralProjectRecords info: projectRecordsList) {
|
|
|
+ for (RuralProjectRecords info: projectRecordsList) {
|
|
|
//判定 若项目类别为 数字化项目审核 则不进行考核
|
|
|
if("10".equals(info.getAttachmentProjectSort()) && "2".equals(info.getProjectType())){
|
|
|
continue;
|
|
@@ -3465,19 +3471,26 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
notifyStr = "项目【"+ info.getProjectName()+"】即将归档超期";
|
|
|
titleStr = "项目【"+ info.getProjectName()+"】即将归档超期。超期时间:"+info.getAdventDate();
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ //计算两日期之间的天数
|
|
|
+ Integer interval = Integer.valueOf(this.getInterval(java.sql.Date.valueOf(info.getAdventDate()), new Date()));
|
|
|
+
|
|
|
+ String newTitleStr = titleStr;
|
|
|
+ if (interval > 0) {
|
|
|
+ newTitleStr = titleStr + "已超期:" + interval + "天。请尽快归档";
|
|
|
+ }
|
|
|
+
|
|
|
//查询项目的登记人和责任人的id
|
|
|
List<User> projectLeaders = dao.getProjectCreateUserAndChargeUser(info.getId());
|
|
|
//List<User> projectLeaders = workProjectUserDao.queryProjectUsers(info.getId(), "1");
|
|
|
for (User user: projectLeaders) {
|
|
|
//根据标题查询通知信息中是否存在未读的信息,有则进行更新并对重复数量进行+1操作
|
|
|
- WorkProjectNotify byTitleAndUnread = workProjectNotifyService.getByTitleAndUnread(titleStr,user.getId());
|
|
|
- //计算两日期之间的天数
|
|
|
- Integer interval = Integer.valueOf(this.getInterval(java.sql.Date.valueOf(info.getAdventDate()), new Date()));
|
|
|
- if(interval > 0){
|
|
|
- titleStr = titleStr + "已超期:" + interval + "天。请尽快归档";
|
|
|
- }
|
|
|
+ WorkProjectNotify byTitleAndUnread = workProjectNotifyService.getByTitleAndUnread(notifyStr,user.getId());
|
|
|
|
|
|
if(null != byTitleAndUnread){
|
|
|
+ //将所有的被通知人的该条通知均调整为已读,然后将最后一条数据进行调整
|
|
|
+ workProjectNotifyService.deleteByNotifyUser(notifyStr,user.getId());
|
|
|
byTitleAndUnread.setExigency("1");
|
|
|
byTitleAndUnread.setTitle(titleStr);
|
|
|
workProjectNotifyService.updateOverDueInfo(byTitleAndUnread);
|
|
@@ -3486,7 +3499,7 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
.save(UtilNotify.saveNotify(info.getId(),
|
|
|
user,
|
|
|
info.getCompany().getId(),
|
|
|
- titleStr,
|
|
|
+ newTitleStr,
|
|
|
notifyStr,
|
|
|
"94",
|
|
|
"0",
|
|
@@ -3495,7 +3508,7 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- }*/
|
|
|
+ }
|
|
|
//获取项目数据(获取已经超期的项目数据,进行修改超期状态)
|
|
|
List<RuralProjectRecords> projectNotReportExamineList = dao.getProjectNotrecordListExamine(projectRecords);
|
|
|
List<RuralProjectRecords> projectNotReportList = dao.getProjectNotrecordList(projectRecords);
|
|
@@ -3547,7 +3560,7 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
List<User> projectLeaders = dao.getProjectCreateUserAndChargeUser(info.getId());
|
|
|
for (User user: projectLeaders) {
|
|
|
//根据标题查询通知信息中是否存在未读的信息,有则进行更新并对重复数量进行+1操作
|
|
|
- WorkProjectNotify byTitleAndUnread = workProjectNotifyService.getByTitleAndUnread(titleStr,user.getId());
|
|
|
+ WorkProjectNotify byTitleAndUnread = workProjectNotifyService.getByTitleAndUnread(notifyStr,user.getId());
|
|
|
//计算两日期之间的天数
|
|
|
Integer interval = Integer.valueOf(this.getInterval(java.sql.Date.valueOf(info.getAdventDate()), new Date()));
|
|
|
if(interval > 0){
|
|
@@ -3555,6 +3568,8 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
}
|
|
|
|
|
|
if(null != byTitleAndUnread){
|
|
|
+ //将所有的被通知人的该条通知均调整为已读,然后将最后一条数据进行调整
|
|
|
+ workProjectNotifyService.deleteByNotifyUser(notifyStr,user.getId());
|
|
|
byTitleAndUnread.setExigency("1");
|
|
|
byTitleAndUnread.setTitle(titleStr);
|
|
|
workProjectNotifyService.updateOverDueInfo(byTitleAndUnread);
|
|
@@ -5601,19 +5616,26 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
dao.updateProjectPaperFilingOnOverDue(info.getId(),"");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ //计算两日期之间的天数
|
|
|
+ Integer advent = Integer.valueOf(this.getInterval(java.sql.Date.valueOf(info.getAdventDate()), new Date()));
|
|
|
+
|
|
|
+ String newTitleStr = titleStr;
|
|
|
+ if(advent > 0){
|
|
|
+ newTitleStr = titleStr + "已超期:" + advent + "天。请尽快纸质归档";
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
//查询项目的登记人和责任人的id
|
|
|
List<User> projectLeaders = dao.getProjectCreateUserAndChargeUser(info.getId());
|
|
|
for (User user: projectLeaders) {
|
|
|
//根据标题查询通知信息中是否存在未读的信息,有则进行更新并对重复数量进行+1操作
|
|
|
- WorkProjectNotify byTitleAndUnread = workProjectNotifyService.getByTitleAndUnread(titleStr,user.getId());
|
|
|
-
|
|
|
- //计算两日期之间的天数
|
|
|
- Integer advent = Integer.valueOf(this.getInterval(java.sql.Date.valueOf(info.getAdventDate()), new Date()));
|
|
|
- if(advent > 0){
|
|
|
- titleStr = titleStr + "已超期:" + advent + "天。请尽快纸质归档";
|
|
|
- }
|
|
|
+ WorkProjectNotify byTitleAndUnread = workProjectNotifyService.getByTitleAndUnread(notifyStr,user.getId());
|
|
|
|
|
|
if(null != byTitleAndUnread){
|
|
|
+ //将所有的被通知人的该条通知均调整为已读,然后将最后一条数据进行调整
|
|
|
+ workProjectNotifyService.deleteByNotifyUser(notifyStr,user.getId());
|
|
|
byTitleAndUnread.setExigency("1");
|
|
|
workProjectNotifyService.updateOverDueInfo(byTitleAndUnread);
|
|
|
}else{
|
|
@@ -5621,7 +5643,7 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
.save(UtilNotify.saveNotify(info.getId(),
|
|
|
user,
|
|
|
info.getCompany().getId(),
|
|
|
- titleStr,
|
|
|
+ newTitleStr,
|
|
|
notifyStr,
|
|
|
"94",
|
|
|
"0",
|
|
@@ -5686,7 +5708,7 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
/*List<User> projectLeaders = dao.getProjectCreateUserAndChargeUser(info.getId());
|
|
|
for (User user: projectLeaders) {
|
|
|
//根据标题查询通知信息中是否存在未读的信息,有则进行更新并对重复数量进行+1操作
|
|
|
- WorkProjectNotify byTitleAndUnread = workProjectNotifyService.getByTitleAndUnread(titleStr,user.getId());
|
|
|
+ WorkProjectNotify byTitleAndUnread = workProjectNotifyService.getByTitleAndUnread(notifyStr,user.getId());
|
|
|
|
|
|
//计算两日期之间的天数
|
|
|
Integer advent = Integer.valueOf(this.getInterval(java.sql.Date.valueOf(info.getAdventDate()), new Date()));
|
|
@@ -5695,6 +5717,8 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
}
|
|
|
|
|
|
if(null != byTitleAndUnread){
|
|
|
+ //将所有的被通知人的该条通知均调整为已读,然后将最后一条数据进行调整
|
|
|
+ workProjectNotifyService.deleteByNotifyUser(notifyStr,user.getId());
|
|
|
byTitleAndUnread.setExigency("1");
|
|
|
workProjectNotifyService.updateOverDueInfo(byTitleAndUnread);
|
|
|
}else{
|
|
@@ -5761,16 +5785,19 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
//List<User> projectLeaders = workProjectUserDao.queryProjectUsers(info.getId(), "1");
|
|
|
//计算两日期之间的天数
|
|
|
int interval = Integer.parseInt(info.getAdventDate()) - 60;
|
|
|
+ String newTitleStr = titleStr;
|
|
|
if (interval > 0) {
|
|
|
- titleStr = titleStr + "已超期:" + interval + "天。请尽快质量复核";
|
|
|
+ newTitleStr = titleStr + "已超期:" + interval + "天。请尽快质量复核";
|
|
|
}
|
|
|
|
|
|
for (User user : projectLeaders) {
|
|
|
//根据标题查询通知信息中是否存在未读的信息,有则进行更新并对重复数量进行+1操作
|
|
|
- WorkProjectNotify byTitleAndUnread = workProjectNotifyService.getByTitleAndUnread(titleStr, user.getId());
|
|
|
+ WorkProjectNotify byTitleAndUnread = workProjectNotifyService.getByTitleAndUnread(notifyStr, user.getId());
|
|
|
|
|
|
|
|
|
if (null != byTitleAndUnread) {
|
|
|
+ //将所有的被通知人的该条通知均调整为已读,然后将最后一条数据进行调整
|
|
|
+ workProjectNotifyService.deleteByNotifyUser(notifyStr,user.getId());
|
|
|
byTitleAndUnread.setExigency("1");
|
|
|
workProjectNotifyService.updateOverDueInfo(byTitleAndUnread);
|
|
|
} else {
|
|
@@ -5778,7 +5805,7 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
|
|
|
.save(UtilNotify.saveNotify(info.getId(),
|
|
|
user,
|
|
|
info.getCompany().getId(),
|
|
|
- titleStr,
|
|
|
+ newTitleStr,
|
|
|
notifyStr,
|
|
|
"94",
|
|
|
"0",
|