|
@@ -5,8 +5,6 @@ import com.alibaba.fastjson.JSONObject;
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Maps;
|
|
import com.google.common.collect.Maps;
|
|
import com.google.gson.Gson;
|
|
import com.google.gson.Gson;
|
|
-import com.jeeplus.common.config.Global;
|
|
|
|
-import com.jeeplus.common.oss.OSSClientUtil;
|
|
|
|
import com.jeeplus.common.persistence.Page;
|
|
import com.jeeplus.common.persistence.Page;
|
|
import com.jeeplus.common.service.CrudService;
|
|
import com.jeeplus.common.service.CrudService;
|
|
import com.jeeplus.common.utils.*;
|
|
import com.jeeplus.common.utils.*;
|
|
@@ -26,7 +24,10 @@ import com.jeeplus.modules.projectFilingBatch.entity.ProjectFilingbatchRelation;
|
|
import com.jeeplus.modules.projectcontentinfo.dao.ProjectContentChangeDao;
|
|
import com.jeeplus.modules.projectcontentinfo.dao.ProjectContentChangeDao;
|
|
import com.jeeplus.modules.projectcontentinfo.dao.ProjectReportDataDao;
|
|
import com.jeeplus.modules.projectcontentinfo.dao.ProjectReportDataDao;
|
|
import com.jeeplus.modules.projectcontentinfo.dao.ProjectcontentinfoDao;
|
|
import com.jeeplus.modules.projectcontentinfo.dao.ProjectcontentinfoDao;
|
|
-import com.jeeplus.modules.projectcontentinfo.entity.*;
|
|
|
|
|
|
+import com.jeeplus.modules.projectcontentinfo.entity.ProjectMaterialDefectRecord;
|
|
|
|
+import com.jeeplus.modules.projectcontentinfo.entity.ProjectReportData;
|
|
|
|
+import com.jeeplus.modules.projectcontentinfo.entity.ProjectReportRecord;
|
|
|
|
+import com.jeeplus.modules.projectcontentinfo.entity.Projectcontentinfo;
|
|
import com.jeeplus.modules.projectcontentinfo.service.ProjectContentDataService;
|
|
import com.jeeplus.modules.projectcontentinfo.service.ProjectContentDataService;
|
|
import com.jeeplus.modules.projectcontentinfo.service.ProjectReportDataService;
|
|
import com.jeeplus.modules.projectcontentinfo.service.ProjectReportDataService;
|
|
import com.jeeplus.modules.projectcontentinfo.service.ProjectcontentinfoService;
|
|
import com.jeeplus.modules.projectcontentinfo.service.ProjectcontentinfoService;
|
|
@@ -34,7 +35,6 @@ import com.jeeplus.modules.projectrecord.dao.ProjectPlanDao;
|
|
import com.jeeplus.modules.projectrecord.entity.ProjectPlanInfo;
|
|
import com.jeeplus.modules.projectrecord.entity.ProjectPlanInfo;
|
|
import com.jeeplus.modules.projectrecord.entity.ProjectRecordTreeData;
|
|
import com.jeeplus.modules.projectrecord.entity.ProjectRecordTreeData;
|
|
import com.jeeplus.modules.projectrecord.entity.ProjectRecords;
|
|
import com.jeeplus.modules.projectrecord.entity.ProjectRecords;
|
|
-import com.jeeplus.modules.projectrecord.entity.ProjectReportedImport;
|
|
|
|
import com.jeeplus.modules.projectrecord.enums.ProjectStatusEnum;
|
|
import com.jeeplus.modules.projectrecord.enums.ProjectStatusEnum;
|
|
import com.jeeplus.modules.projectrecord.service.ProjectRecordsService;
|
|
import com.jeeplus.modules.projectrecord.service.ProjectRecordsService;
|
|
import com.jeeplus.modules.projectreportnum.service.ProjectReportNumService;
|
|
import com.jeeplus.modules.projectreportnum.service.ProjectReportNumService;
|
|
@@ -42,7 +42,6 @@ import com.jeeplus.modules.ruralprojectrecords.dao.RuralProjectMessageDao;
|
|
import com.jeeplus.modules.ruralprojectrecords.dao.RuralProjectRecordsReportedDao;
|
|
import com.jeeplus.modules.ruralprojectrecords.dao.RuralProjectRecordsReportedDao;
|
|
import com.jeeplus.modules.ruralprojectrecords.dao.RuralWorkProjectUserDao;
|
|
import com.jeeplus.modules.ruralprojectrecords.dao.RuralWorkProjectUserDao;
|
|
import com.jeeplus.modules.ruralprojectrecords.entity.*;
|
|
import com.jeeplus.modules.ruralprojectrecords.entity.*;
|
|
-import com.jeeplus.modules.ruralprojectrecords.thread.ApprovalThread;
|
|
|
|
import com.jeeplus.modules.ruralprojectrecords.thread.JudgementThread;
|
|
import com.jeeplus.modules.ruralprojectrecords.thread.JudgementThread;
|
|
import com.jeeplus.modules.ruralprojectrecords.utils.RuralProjectReportedInfoUtil;
|
|
import com.jeeplus.modules.ruralprojectrecords.utils.RuralProjectReportedInfoUtil;
|
|
import com.jeeplus.modules.sys.dao.UserDao;
|
|
import com.jeeplus.modules.sys.dao.UserDao;
|
|
@@ -54,7 +53,6 @@ import com.jeeplus.modules.sys.service.WorkattachmentService;
|
|
import com.jeeplus.modules.sys.utils.DictUtils;
|
|
import com.jeeplus.modules.sys.utils.DictUtils;
|
|
import com.jeeplus.modules.sys.utils.UserUtils;
|
|
import com.jeeplus.modules.sys.utils.UserUtils;
|
|
import com.jeeplus.modules.tools.utils.HttpPostTool;
|
|
import com.jeeplus.modules.tools.utils.HttpPostTool;
|
|
-import com.jeeplus.modules.tools.utils.SignaturePostUtil;
|
|
|
|
import com.jeeplus.modules.utils.Aestool;
|
|
import com.jeeplus.modules.utils.Aestool;
|
|
import com.jeeplus.modules.utils.Rsatool;
|
|
import com.jeeplus.modules.utils.Rsatool;
|
|
import com.jeeplus.modules.utils.SftpClientUtil;
|
|
import com.jeeplus.modules.utils.SftpClientUtil;
|
|
@@ -84,7 +82,6 @@ import com.jeeplus.modules.workreview.service.WorkReviewStandardService;
|
|
import com.jeeplus.modules.workstaff.entity.WorkStaffBasicInfo;
|
|
import com.jeeplus.modules.workstaff.entity.WorkStaffBasicInfo;
|
|
import com.jeeplus.modules.workstaff.entity.WorkStaffCertificate;
|
|
import com.jeeplus.modules.workstaff.entity.WorkStaffCertificate;
|
|
import com.jeeplus.modules.workstaff.service.WorkStaffBasicInfoService;
|
|
import com.jeeplus.modules.workstaff.service.WorkStaffBasicInfoService;
|
|
-import com.sun.org.apache.xpath.internal.operations.Bool;
|
|
|
|
import freemarker.template.Configuration;
|
|
import freemarker.template.Configuration;
|
|
import freemarker.template.Template;
|
|
import freemarker.template.Template;
|
|
import org.activiti.engine.ActivitiObjectNotFoundException;
|
|
import org.activiti.engine.ActivitiObjectNotFoundException;
|
|
@@ -919,6 +916,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
projectReportDataDao.updateProcessInstanceId(projectReportData);
|
|
projectReportDataDao.updateProcessInstanceId(projectReportData);
|
|
//通知添加流程实例ID
|
|
//通知添加流程实例ID
|
|
workProjectNotify.setProcessInstanceId(processInstance.getId());
|
|
workProjectNotify.setProcessInstanceId(processInstance.getId());
|
|
|
|
+ workProjectNotify.setWapBeginDate(new Date());
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
List<Activity> list = workActivityMenu.getActivities();
|
|
List<Activity> list = workActivityMenu.getActivities();
|
|
if (list != null && list.size() != 0) {
|
|
if (list != null && list.size() != 0) {
|
|
@@ -1324,6 +1322,9 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
// 设置意见
|
|
// 设置意见
|
|
act.setComment(("yes".equals(flag) ? "[同意] " : "[驳回] ") + act.getComment());
|
|
act.setComment(("yes".equals(flag) ? "[同意] " : "[驳回] ") + act.getComment());
|
|
projectReportData.preUpdate();
|
|
projectReportData.preUpdate();
|
|
|
|
+
|
|
|
|
+ WorkProjectNotify nowWorkProjectNotify = workProjectNotifyService.processingInfo(reportData.getProcessInstanceId());
|
|
|
|
+
|
|
// 提交流程任务
|
|
// 提交流程任务
|
|
vars.put(exp, "yes".equals(flag) ? true : false);
|
|
vars.put(exp, "yes".equals(flag) ? true : false);
|
|
vars.put("passs", true);
|
|
vars.put("passs", true);
|
|
@@ -1350,7 +1351,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
workProjectNotifyService
|
|
workProjectNotifyService
|
|
.save(UtilNotify
|
|
.save(UtilNotify
|
|
- .saveNotify(projectReportData.getId(),
|
|
|
|
|
|
+ .saveNewNotify(projectReportData.getId(),
|
|
projectReportData.getCreateBy(),
|
|
projectReportData.getCreateBy(),
|
|
projectReportData.getCompanyId(),
|
|
projectReportData.getCompanyId(),
|
|
titleStr,
|
|
titleStr,
|
|
@@ -1358,7 +1359,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"96",
|
|
"96",
|
|
"0",
|
|
"0",
|
|
"待通知",
|
|
"待通知",
|
|
- notifyRole));
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reportData.getProcessInstanceId(),new Date()));
|
|
|
|
|
|
} else {
|
|
} else {
|
|
WorkProjectNotify notify = new WorkProjectNotify();
|
|
WorkProjectNotify notify = new WorkProjectNotify();
|
|
@@ -1368,7 +1370,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
projectReportData.setStatus("4");
|
|
projectReportData.setStatus("4");
|
|
workProjectNotifyService
|
|
workProjectNotifyService
|
|
.save(UtilNotify
|
|
.save(UtilNotify
|
|
- .saveNotify(projectReportData.getId(),
|
|
|
|
|
|
+ .saveNewNotify(projectReportData.getId(),
|
|
projectReportData.getCreateBy(),
|
|
projectReportData.getCreateBy(),
|
|
projectReportData.getCompanyId(),
|
|
projectReportData.getCompanyId(),
|
|
title,
|
|
title,
|
|
@@ -1376,7 +1378,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"96",
|
|
"96",
|
|
"0",
|
|
"0",
|
|
"待通知",
|
|
"待通知",
|
|
- notifyRole));
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reportData.getProcessInstanceId(),new Date()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
workActivityProcessService.deleteProcessIdAuditUsers(projectReportData.getProcessInstanceId());
|
|
workActivityProcessService.deleteProcessIdAuditUsers(projectReportData.getProcessInstanceId());
|
|
@@ -1386,7 +1389,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
notify.setNotifyId(projectReportData.getId());
|
|
notify.setNotifyId(projectReportData.getId());
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
WorkProjectNotify workProjectNotify = UtilNotify
|
|
WorkProjectNotify workProjectNotify = UtilNotify
|
|
- .saveNotify(projectReportData.getId(),
|
|
|
|
|
|
+ .saveNewNotify(projectReportData.getId(),
|
|
new User(),
|
|
new User(),
|
|
projectReportData.getCompanyId(),
|
|
projectReportData.getCompanyId(),
|
|
title,
|
|
title,
|
|
@@ -1394,7 +1397,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"96",
|
|
"96",
|
|
"0",
|
|
"0",
|
|
"待审批",
|
|
"待审批",
|
|
- notifyRole);
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reportData.getProcessInstanceId(),new Date());
|
|
List<WorkProjectNotify> workProjectNotifys = activityService.getByFlagAndTaskDefKeyList(
|
|
List<WorkProjectNotify> workProjectNotifys = activityService.getByFlagAndTaskDefKeyList(
|
|
activities,
|
|
activities,
|
|
workProjectNotify,
|
|
workProjectNotify,
|
|
@@ -1439,7 +1443,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
workProjectNotifyService
|
|
workProjectNotifyService
|
|
.save(UtilNotify
|
|
.save(UtilNotify
|
|
- .saveNotify(projectReportData.getId(),
|
|
|
|
|
|
+ .saveNewNotify(projectReportData.getId(),
|
|
projectReportData.getCreateBy(),
|
|
projectReportData.getCreateBy(),
|
|
projectReportData.getCompanyId(),
|
|
projectReportData.getCompanyId(),
|
|
title,
|
|
title,
|
|
@@ -1447,7 +1451,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"96",
|
|
"96",
|
|
"0",
|
|
"0",
|
|
"重新申请",
|
|
"重新申请",
|
|
- notifyRole));
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reportData.getProcessInstanceId(),new Date()));
|
|
users.add( projectReportData.getCreateBy());
|
|
users.add( projectReportData.getCreateBy());
|
|
} else {
|
|
} else {
|
|
if (com.jeeplus.common.utils.StringUtils.isNotBlank(enname)) {//驳回重新申请待办信息
|
|
if (com.jeeplus.common.utils.StringUtils.isNotBlank(enname)) {//驳回重新申请待办信息
|
|
@@ -1461,7 +1466,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
notify.setNotifyId(projectReportData.getId());
|
|
notify.setNotifyId(projectReportData.getId());
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
WorkProjectNotify workProjectNotify = UtilNotify
|
|
WorkProjectNotify workProjectNotify = UtilNotify
|
|
- .saveNotify(projectReportData.getId(),
|
|
|
|
|
|
+ .saveNewNotify(projectReportData.getId(),
|
|
new User(),
|
|
new User(),
|
|
projectReportData.getCompanyId(),
|
|
projectReportData.getCompanyId(),
|
|
title,
|
|
title,
|
|
@@ -1469,7 +1474,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"96",
|
|
"96",
|
|
"0",
|
|
"0",
|
|
"待审批",
|
|
"待审批",
|
|
- notifyRole);
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reportData.getProcessInstanceId(),new Date());
|
|
users.addAll(auditUsers);
|
|
users.addAll(auditUsers);
|
|
for (User user1 : users) {
|
|
for (User user1 : users) {
|
|
workProjectNotify.setUser(user1);
|
|
workProjectNotify.setUser(user1);
|
|
@@ -1499,7 +1505,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
users.add(projectReportData.getCreateBy());
|
|
users.add(projectReportData.getCreateBy());
|
|
workProjectNotifyService
|
|
workProjectNotifyService
|
|
.save(UtilNotify
|
|
.save(UtilNotify
|
|
- .saveNotify(projectReportData.getId(),
|
|
|
|
|
|
+ .saveNewNotify(projectReportData.getId(),
|
|
projectReportData.getCreateBy(),
|
|
projectReportData.getCreateBy(),
|
|
projectReportData.getCompanyId(),
|
|
projectReportData.getCompanyId(),
|
|
title,
|
|
title,
|
|
@@ -1507,11 +1513,16 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"96",
|
|
"96",
|
|
"0",
|
|
"0",
|
|
"重新申请",
|
|
"重新申请",
|
|
- notifyRole));
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reportData.getProcessInstanceId(),new Date()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //对数据进行处理
|
|
|
|
+ if(null != nowWorkProjectNotify){
|
|
|
|
+ workProjectNotifyService.updateWpaData(nowWorkProjectNotify);
|
|
|
|
+ }
|
|
if (users!=null && users.size()!=0) {
|
|
if (users!=null && users.size()!=0) {
|
|
for (User u : users) {
|
|
for (User u : users) {
|
|
UserUtils.pushIm(u.getId(),title);
|
|
UserUtils.pushIm(u.getId(),title);
|
|
@@ -2322,6 +2333,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
projectReportDataDao.updateProcessInstanceId(projectReportData);
|
|
projectReportDataDao.updateProcessInstanceId(projectReportData);
|
|
//通知添加流程实例ID
|
|
//通知添加流程实例ID
|
|
workProjectNotify.setProcessInstanceId(processInstance.getId());
|
|
workProjectNotify.setProcessInstanceId(processInstance.getId());
|
|
|
|
+ workProjectNotify.setWapBeginDate(new Date());
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
List<Activity> list = workActivityMenu.getActivities();
|
|
List<Activity> list = workActivityMenu.getActivities();
|
|
if (list != null && list.size() != 0) {
|
|
if (list != null && list.size() != 0) {
|
|
@@ -2470,6 +2482,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
projectReportDataDao.updateProcessInstanceId(projectReportData);
|
|
projectReportDataDao.updateProcessInstanceId(projectReportData);
|
|
//通知添加流程实例ID
|
|
//通知添加流程实例ID
|
|
workProjectNotify.setProcessInstanceId(processInstance.getId());
|
|
workProjectNotify.setProcessInstanceId(processInstance.getId());
|
|
|
|
+ workProjectNotify.setWapBeginDate(new Date());
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
List<Activity> list = workActivityMenu.getActivities();
|
|
List<Activity> list = workActivityMenu.getActivities();
|
|
if (list != null && list.size() != 0) {
|
|
if (list != null && list.size() != 0) {
|
|
@@ -2995,7 +3008,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
|
|
|
|
/**
|
|
/**
|
|
* 根据用户查询技能信息
|
|
* 根据用户查询技能信息
|
|
- * @param projectId
|
|
|
|
|
|
+ * @param userId
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public List<WorkStaffCertificate> getCertificateByUser(String userId){
|
|
public List<WorkStaffCertificate> getCertificateByUser(String userId){
|
|
@@ -3340,6 +3353,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
dao.updateDefectRecordProcessInstanceId(materialDefectRecord);
|
|
dao.updateDefectRecordProcessInstanceId(materialDefectRecord);
|
|
//通知添加流程实例ID
|
|
//通知添加流程实例ID
|
|
workProjectNotify.setProcessInstanceId(processInstance.getId());
|
|
workProjectNotify.setProcessInstanceId(processInstance.getId());
|
|
|
|
+ workProjectNotify.setWapBeginDate(new Date());
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
List<Activity> list = workActivityMenu.getActivities();
|
|
List<Activity> list = workActivityMenu.getActivities();
|
|
if (list != null && list.size() != 0) {
|
|
if (list != null && list.size() != 0) {
|
|
@@ -3605,6 +3619,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
ruralProjectRecordsReportedDao.updateProcessIdAndStatus(reported);
|
|
ruralProjectRecordsReportedDao.updateProcessIdAndStatus(reported);
|
|
//通知添加流程实例ID
|
|
//通知添加流程实例ID
|
|
workProjectNotify.setProcessInstanceId(processInstance.getId());
|
|
workProjectNotify.setProcessInstanceId(processInstance.getId());
|
|
|
|
+ workProjectNotify.setWapBeginDate(new Date());
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
|
|
|
|
|
|
|
|
@@ -3854,6 +3869,9 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
// 设置意见
|
|
// 设置意见
|
|
reported.getAct().setComment(("yes".equals(reported.getAct().getFlag()) ? "[同意] " : "[驳回] ") + reported.getAct().getComment());
|
|
reported.getAct().setComment(("yes".equals(reported.getAct().getFlag()) ? "[同意] " : "[驳回] ") + reported.getAct().getComment());
|
|
reported.preUpdate();
|
|
reported.preUpdate();
|
|
|
|
+
|
|
|
|
+ WorkProjectNotify nowWorkProjectNotify = workProjectNotifyService.processingInfo(reported.getProcessInstanceId());
|
|
|
|
+
|
|
// 提交流程任务
|
|
// 提交流程任务
|
|
vars.put(exp, "yes".equals(reported.getAct().getFlag()) ? true : false);
|
|
vars.put(exp, "yes".equals(reported.getAct().getFlag()) ? true : false);
|
|
vars.put("passLv",true);
|
|
vars.put("passLv",true);
|
|
@@ -3876,7 +3894,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
workProjectNotifyService
|
|
workProjectNotifyService
|
|
.save(UtilNotify
|
|
.save(UtilNotify
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
|
+ .saveNewNotify(reported.getId(),
|
|
reported.getCreateBy(),
|
|
reported.getCreateBy(),
|
|
reported.getCompany().getId(),
|
|
reported.getCompany().getId(),
|
|
titleStr,
|
|
titleStr,
|
|
@@ -3884,7 +3902,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"98",
|
|
"98",
|
|
"0",
|
|
"0",
|
|
"待通知",
|
|
"待通知",
|
|
- notifyRole));
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reported.getProcessInstanceId(),new Date()));
|
|
|
|
|
|
} else {
|
|
} else {
|
|
WorkProjectNotify notify = new WorkProjectNotify();
|
|
WorkProjectNotify notify = new WorkProjectNotify();
|
|
@@ -3894,7 +3913,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
reported.setReportStatus(String.valueOf(ProjectStatusEnum.REJECTED.getValue()));
|
|
reported.setReportStatus(String.valueOf(ProjectStatusEnum.REJECTED.getValue()));
|
|
workProjectNotifyService
|
|
workProjectNotifyService
|
|
.save(UtilNotify
|
|
.save(UtilNotify
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
|
+ .saveNewNotify(reported.getId(),
|
|
reported.getCreateBy(),
|
|
reported.getCreateBy(),
|
|
reported.getCompany().getId(),
|
|
reported.getCompany().getId(),
|
|
title,
|
|
title,
|
|
@@ -3902,7 +3921,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"98",
|
|
"98",
|
|
"0",
|
|
"0",
|
|
"待通知",
|
|
"待通知",
|
|
- notifyRole));
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reported.getProcessInstanceId(),new Date()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
workActivityProcessService.deleteProcessIdAuditUsers(reported.getProcessInstanceId());
|
|
workActivityProcessService.deleteProcessIdAuditUsers(reported.getProcessInstanceId());
|
|
@@ -3913,7 +3933,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
//users.addAll(userList);
|
|
//users.addAll(userList);
|
|
WorkProjectNotify workProjectNotify = UtilNotify
|
|
WorkProjectNotify workProjectNotify = UtilNotify
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
|
+ .saveNewNotify(reported.getId(),
|
|
new User(),
|
|
new User(),
|
|
reported.getCompany().getId(),
|
|
reported.getCompany().getId(),
|
|
title,
|
|
title,
|
|
@@ -3921,7 +3941,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"98",
|
|
"98",
|
|
"0",
|
|
"0",
|
|
"待审批",
|
|
"待审批",
|
|
- notifyRole);
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reported.getProcessInstanceId(),new Date());
|
|
List<WorkProjectNotify> workProjectNotifys = activityService.getByFlagAndTaskDefKeyList(
|
|
List<WorkProjectNotify> workProjectNotifys = activityService.getByFlagAndTaskDefKeyList(
|
|
activities,
|
|
activities,
|
|
workProjectNotify,
|
|
workProjectNotify,
|
|
@@ -3949,7 +3970,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
//users.addAll(userList);
|
|
//users.addAll(userList);
|
|
workProjectNotifyService
|
|
workProjectNotifyService
|
|
.save(UtilNotify
|
|
.save(UtilNotify
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
|
+ .saveNewNotify(reported.getId(),
|
|
reported.getCreateBy(),
|
|
reported.getCreateBy(),
|
|
reported.getCompany().getId(),
|
|
reported.getCompany().getId(),
|
|
title,
|
|
title,
|
|
@@ -3957,7 +3978,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"98",
|
|
"98",
|
|
"0",
|
|
"0",
|
|
"重新申请",
|
|
"重新申请",
|
|
- notifyRole));
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reported.getProcessInstanceId(),new Date()));
|
|
users.add( reported.getCreateBy());
|
|
users.add( reported.getCreateBy());
|
|
} else {
|
|
} else {
|
|
if (StringUtils.isNotBlank(enname)) {//驳回重新申请待办
|
|
if (StringUtils.isNotBlank(enname)) {//驳回重新申请待办
|
|
@@ -3968,7 +3990,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
//users.addAll(userList1);
|
|
//users.addAll(userList1);
|
|
WorkProjectNotify workProjectNotify = UtilNotify
|
|
WorkProjectNotify workProjectNotify = UtilNotify
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
|
+ .saveNewNotify(reported.getId(),
|
|
new User(),
|
|
new User(),
|
|
reported.getCompany().getId(),
|
|
reported.getCompany().getId(),
|
|
title,
|
|
title,
|
|
@@ -3976,7 +3998,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"98",
|
|
"98",
|
|
"0",
|
|
"0",
|
|
"待审批",
|
|
"待审批",
|
|
- notifyRole);
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reported.getProcessInstanceId(),new Date());
|
|
users.addAll(auditUsers);
|
|
users.addAll(auditUsers);
|
|
for (User user1:auditUsers){
|
|
for (User user1:auditUsers){
|
|
workProjectNotify.setUser(user1);
|
|
workProjectNotify.setUser(user1);
|
|
@@ -3996,7 +4019,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
users.add(reported.getCreateBy());
|
|
users.add(reported.getCreateBy());
|
|
workProjectNotifyService
|
|
workProjectNotifyService
|
|
.save(UtilNotify
|
|
.save(UtilNotify
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
|
+ .saveNewNotify(reported.getId(),
|
|
reported.getCreateBy(),
|
|
reported.getCreateBy(),
|
|
reported.getCompany().getId(),
|
|
reported.getCompany().getId(),
|
|
title,
|
|
title,
|
|
@@ -4004,11 +4027,16 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"98",
|
|
"98",
|
|
"0",
|
|
"0",
|
|
"重新申请",
|
|
"重新申请",
|
|
- notifyRole));
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reported.getProcessInstanceId(),new Date()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //对数据进行处理
|
|
|
|
+ if(null != nowWorkProjectNotify){
|
|
|
|
+ workProjectNotifyService.updateWpaData(nowWorkProjectNotify);
|
|
|
|
+ }
|
|
if (StringUtils.isNotBlank(title) && users!=null && users.size()!=0) {
|
|
if (StringUtils.isNotBlank(title) && users!=null && users.size()!=0) {
|
|
for (User u : users) {
|
|
for (User u : users) {
|
|
UserUtils.pushIm(u.getId(),title);
|
|
UserUtils.pushIm(u.getId(),title);
|
|
@@ -4474,6 +4502,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
ruralProjectRecordsReportedDao.updateProcessIdAndStatus(reported);
|
|
ruralProjectRecordsReportedDao.updateProcessIdAndStatus(reported);
|
|
//通知添加流程实例ID
|
|
//通知添加流程实例ID
|
|
workProjectNotify.setProcessInstanceId(processInstance.getId());
|
|
workProjectNotify.setProcessInstanceId(processInstance.getId());
|
|
|
|
+ workProjectNotify.setWapBeginDate(new Date());
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
|
|
|
|
return "";
|
|
return "";
|
|
@@ -4688,6 +4717,10 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
// 设置意见
|
|
// 设置意见
|
|
reported.getAct().setComment(("yes".equals(reported.getAct().getFlag()) ? "[同意] " : "[驳回] ") + reported.getAct().getComment());
|
|
reported.getAct().setComment(("yes".equals(reported.getAct().getFlag()) ? "[同意] " : "[驳回] ") + reported.getAct().getComment());
|
|
reported.preUpdate();
|
|
reported.preUpdate();
|
|
|
|
+
|
|
|
|
+ //查询当前流程信息
|
|
|
|
+ WorkProjectNotify nowWorkProjectNotify = workProjectNotifyService.processingInfo(reported.getProcessInstanceId());
|
|
|
|
+
|
|
// 提交流程任务
|
|
// 提交流程任务
|
|
vars.put(exp, "yes".equals(reported.getAct().getFlag()) ? true : false);
|
|
vars.put(exp, "yes".equals(reported.getAct().getFlag()) ? true : false);
|
|
vars.put("passLv",true);
|
|
vars.put("passLv",true);
|
|
@@ -4710,7 +4743,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
workProjectNotifyService
|
|
workProjectNotifyService
|
|
.save(UtilNotify
|
|
.save(UtilNotify
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
|
+ .saveNewNotify(reported.getId(),
|
|
reported.getCreateBy(),
|
|
reported.getCreateBy(),
|
|
reported.getCompany().getId(),
|
|
reported.getCompany().getId(),
|
|
titleStr,
|
|
titleStr,
|
|
@@ -4718,7 +4751,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"218",
|
|
"218",
|
|
"0",
|
|
"0",
|
|
"待通知",
|
|
"待通知",
|
|
- notifyRole));
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reported.getProcessInstanceId(),new Date()));
|
|
|
|
|
|
} else {
|
|
} else {
|
|
WorkProjectNotify notify = new WorkProjectNotify();
|
|
WorkProjectNotify notify = new WorkProjectNotify();
|
|
@@ -4728,7 +4762,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
reported.setReportStatus(String.valueOf(ProjectStatusEnum.REJECTED.getValue()));
|
|
reported.setReportStatus(String.valueOf(ProjectStatusEnum.REJECTED.getValue()));
|
|
workProjectNotifyService
|
|
workProjectNotifyService
|
|
.save(UtilNotify
|
|
.save(UtilNotify
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
|
+ .saveNewNotify(reported.getId(),
|
|
reported.getCreateBy(),
|
|
reported.getCreateBy(),
|
|
reported.getCompany().getId(),
|
|
reported.getCompany().getId(),
|
|
title,
|
|
title,
|
|
@@ -4736,7 +4770,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"218",
|
|
"218",
|
|
"0",
|
|
"0",
|
|
"待通知",
|
|
"待通知",
|
|
- notifyRole));
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reported.getProcessInstanceId(),new Date()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
workActivityProcessService.deleteProcessIdAuditUsers(reported.getProcessInstanceId());
|
|
workActivityProcessService.deleteProcessIdAuditUsers(reported.getProcessInstanceId());
|
|
@@ -4747,7 +4782,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
//users.addAll(userList);
|
|
//users.addAll(userList);
|
|
WorkProjectNotify workProjectNotify = UtilNotify
|
|
WorkProjectNotify workProjectNotify = UtilNotify
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
|
+ .saveNewNotify(reported.getId(),
|
|
new User(),
|
|
new User(),
|
|
reported.getCompany().getId(),
|
|
reported.getCompany().getId(),
|
|
title,
|
|
title,
|
|
@@ -4755,7 +4790,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"218",
|
|
"218",
|
|
"0",
|
|
"0",
|
|
"待审批",
|
|
"待审批",
|
|
- notifyRole);
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reported.getProcessInstanceId(),new Date());
|
|
List<WorkProjectNotify> workProjectNotifys = activityService.getByFlagAndTaskDefKeyList(
|
|
List<WorkProjectNotify> workProjectNotifys = activityService.getByFlagAndTaskDefKeyList(
|
|
activities,
|
|
activities,
|
|
workProjectNotify,
|
|
workProjectNotify,
|
|
@@ -4783,7 +4819,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
//users.addAll(userList);
|
|
//users.addAll(userList);
|
|
workProjectNotifyService
|
|
workProjectNotifyService
|
|
.save(UtilNotify
|
|
.save(UtilNotify
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
|
+ .saveNewNotify(reported.getId(),
|
|
reported.getCreateBy(),
|
|
reported.getCreateBy(),
|
|
reported.getCompany().getId(),
|
|
reported.getCompany().getId(),
|
|
title,
|
|
title,
|
|
@@ -4791,7 +4827,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"218",
|
|
"218",
|
|
"0",
|
|
"0",
|
|
"重新申请",
|
|
"重新申请",
|
|
- notifyRole));
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reported.getProcessInstanceId(),new Date()));
|
|
users.add( reported.getCreateBy());
|
|
users.add( reported.getCreateBy());
|
|
} else {
|
|
} else {
|
|
if (StringUtils.isNotBlank(enname)) {//驳回重新申请待办
|
|
if (StringUtils.isNotBlank(enname)) {//驳回重新申请待办
|
|
@@ -4802,7 +4839,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
//users.addAll(userList1);
|
|
//users.addAll(userList1);
|
|
WorkProjectNotify workProjectNotify = UtilNotify
|
|
WorkProjectNotify workProjectNotify = UtilNotify
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
|
+ .saveNewNotify(reported.getId(),
|
|
new User(),
|
|
new User(),
|
|
reported.getCompany().getId(),
|
|
reported.getCompany().getId(),
|
|
title,
|
|
title,
|
|
@@ -4810,7 +4847,8 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"218",
|
|
"218",
|
|
"0",
|
|
"0",
|
|
"待审批",
|
|
"待审批",
|
|
- notifyRole);
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reported.getProcessInstanceId(),new Date());
|
|
users.addAll(auditUsers);
|
|
users.addAll(auditUsers);
|
|
for (User user1:auditUsers){
|
|
for (User user1:auditUsers){
|
|
workProjectNotify.setUser(user1);
|
|
workProjectNotify.setUser(user1);
|
|
@@ -4830,7 +4868,7 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
users.add(reported.getCreateBy());
|
|
users.add(reported.getCreateBy());
|
|
workProjectNotifyService
|
|
workProjectNotifyService
|
|
.save(UtilNotify
|
|
.save(UtilNotify
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
|
+ .saveNewNotify(reported.getId(),
|
|
reported.getCreateBy(),
|
|
reported.getCreateBy(),
|
|
reported.getCompany().getId(),
|
|
reported.getCompany().getId(),
|
|
title,
|
|
title,
|
|
@@ -4838,11 +4876,18 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
"218",
|
|
"218",
|
|
"0",
|
|
"0",
|
|
"重新申请",
|
|
"重新申请",
|
|
- notifyRole));
|
|
|
|
|
|
+ notifyRole,
|
|
|
|
+ reported.getProcessInstanceId(),new Date()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //对数据进行处理
|
|
|
|
+ if(null != nowWorkProjectNotify){
|
|
|
|
+ workProjectNotifyService.updateWpaData(nowWorkProjectNotify);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (StringUtils.isNotBlank(title) && users!=null && users.size()!=0) {
|
|
if (StringUtils.isNotBlank(title) && users!=null && users.size()!=0) {
|
|
for (User u : users) {
|
|
for (User u : users) {
|
|
UserUtils.pushIm(u.getId(),title);
|
|
UserUtils.pushIm(u.getId(),title);
|