|
@@ -3631,24 +3631,6 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
|
String titleStr = "报告号:"+projectReportData.getNumber()+"。项目【"+projectRecords.getProjectName()+"】上报待审批";
|
|
String titleStr = "报告号:"+projectReportData.getNumber()+"。项目【"+projectRecords.getProjectName()+"】上报待审批";
|
|
|
String contentStr = "报告号:"+projectReportData.getNumber()+"。项目【"+projectRecords.getProjectName()+"】上报待审批,项目" + (0 == projectRecords.getOverDueStatus()?"未超期":"超期");
|
|
String contentStr = "报告号:"+projectReportData.getNumber()+"。项目【"+projectRecords.getProjectName()+"】上报待审批,项目" + (0 == projectRecords.getOverDueStatus()?"未超期":"超期");
|
|
|
|
|
|
|
|
- String businessKey = reported.getId();
|
|
|
|
|
- Office office = UserUtils.getSelectOffice();
|
|
|
|
|
- WorkActivityMenu workActivityMenu = workActivityMenuService.findByParentAndOffice("gg3125f1f194582bdda9abcew750904", office);
|
|
|
|
|
- // 启动流程
|
|
|
|
|
- String processType = workActivityMenu.getProcessType();
|
|
|
|
|
- StringBuffer buffer = new StringBuffer();
|
|
|
|
|
- Activity activity = new Activity();
|
|
|
|
|
- WorkProjectNotify workProjectNotify = UtilNotify
|
|
|
|
|
- .saveNotify(reported.getId(),
|
|
|
|
|
- null,
|
|
|
|
|
- reported.getCompany().getId(),
|
|
|
|
|
- titleStr,
|
|
|
|
|
- contentStr,
|
|
|
|
|
- "98",
|
|
|
|
|
- "0",
|
|
|
|
|
- "待审批",
|
|
|
|
|
- ""
|
|
|
|
|
- );
|
|
|
|
|
|
|
|
|
|
List<User> users = new ArrayList<>();
|
|
List<User> users = new ArrayList<>();
|
|
|
List<User> bmzrList = UserUtils.getByRoleActivityEnname("sbglyyjla",3,reported.getOffice().getId(),"4",reported.getCreateBy());
|
|
List<User> bmzrList = UserUtils.getByRoleActivityEnname("sbglyyjla",3,reported.getOffice().getId(),"4",reported.getCreateBy());
|
|
@@ -3667,6 +3649,9 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
|
variables.put("bmzrCount",bmzrList.size());
|
|
variables.put("bmzrCount",bmzrList.size());
|
|
|
variables.put("bmzrList", bmzrList);
|
|
variables.put("bmzrList", bmzrList);
|
|
|
variables.put("passLv",false);
|
|
variables.put("passLv",false);
|
|
|
|
|
+
|
|
|
|
|
+ titleStr = "报告号:"+projectReportData.getNumber()+"。项目【"+projectRecords.getProjectName()+"】 审核增减率大于30%,上报待审批";
|
|
|
|
|
+ contentStr = "报告号:"+projectReportData.getNumber()+"。项目【"+projectRecords.getProjectName()+"】 审核增减率大于30%,上报待审批,项目" + (0 == projectRecords.getOverDueStatus()?"未超期":"超期");
|
|
|
}else{
|
|
}else{
|
|
|
variables.put("bmzrCount",bmzrList.size());
|
|
variables.put("bmzrCount",bmzrList.size());
|
|
|
variables.put("bmzrList", bmzrList);
|
|
variables.put("bmzrList", bmzrList);
|
|
@@ -3678,6 +3663,25 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
|
variables.put("passLv",true);
|
|
variables.put("passLv",true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ String businessKey = reported.getId();
|
|
|
|
|
+ Office office = UserUtils.getSelectOffice();
|
|
|
|
|
+ WorkActivityMenu workActivityMenu = workActivityMenuService.findByParentAndOffice("gg3125f1f194582bdda9abcew750904", office);
|
|
|
|
|
+ // 启动流程
|
|
|
|
|
+ String processType = workActivityMenu.getProcessType();
|
|
|
|
|
+ StringBuffer buffer = new StringBuffer();
|
|
|
|
|
+ Activity activity = new Activity();
|
|
|
|
|
+ WorkProjectNotify workProjectNotify = UtilNotify
|
|
|
|
|
+ .saveNotify(reported.getId(),
|
|
|
|
|
+ null,
|
|
|
|
|
+ reported.getCompany().getId(),
|
|
|
|
|
+ titleStr,
|
|
|
|
|
+ contentStr,
|
|
|
|
|
+ "98",
|
|
|
|
|
+ "0",
|
|
|
|
|
+ "待审批",
|
|
|
|
|
+ ""
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
|
|
|
if (com.jeeplus.common.utils.StringUtils.isNotBlank(workActivityMenu.getId())) {
|
|
if (com.jeeplus.common.utils.StringUtils.isNotBlank(workActivityMenu.getId())) {
|
|
|
workProjectNotify.setNotifyRole("");
|
|
workProjectNotify.setNotifyRole("");
|
|
@@ -3728,7 +3732,17 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
|
userIds.add(u.getId());
|
|
userIds.add(u.getId());
|
|
|
workProjectNotify.setUser(u);
|
|
workProjectNotify.setUser(u);
|
|
|
workProjectNotify.setId("");
|
|
workProjectNotify.setId("");
|
|
|
- workProjectNotify.setNotifyRole("报告管理员审批");
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if(StringUtils.isNotBlank(reported.getJingHeJianLv())){
|
|
|
|
|
+ if(Double.valueOf(reported.getJingHeJianLv())>30 || Double.valueOf(reported.getJingHeJianLv())< -30 ){
|
|
|
|
|
+ workProjectNotify.setNotifyRole("总审审批");
|
|
|
|
|
+ }else{
|
|
|
|
|
+ workProjectNotify.setNotifyRole("上报管理员审批");
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ workProjectNotify.setNotifyRole("上报管理员审批");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
workProjectNotifyService.save(workProjectNotify);
|
|
|
Map<String,Object> extras = new HashMap<>();
|
|
Map<String,Object> extras = new HashMap<>();
|
|
|
extras.put("type","7002");
|
|
extras.put("type","7002");
|
|
@@ -4038,7 +4052,18 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
} else if ("modifyApply".equals(taskDefKey)&& count.contains("0")) {
|
|
} else if ("modifyApply".equals(taskDefKey)&& count.contains("0")) {
|
|
|
- notifyRole = "上报管理员审批";
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if(StringUtils.isNotBlank(reported.getJingHeJianLv())){
|
|
|
|
|
+ if(Double.valueOf(reported.getJingHeJianLv())>30 || Double.valueOf(reported.getJingHeJianLv())< -30 ){
|
|
|
|
|
+ notifyRole = "总审审批";
|
|
|
|
|
+ }else{
|
|
|
|
|
+ notifyRole = "上报管理员审批";
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ notifyRole = "上报管理员审批";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
taskCount = "0";
|
|
taskCount = "0";
|
|
|
exp = "pass";
|
|
exp = "pass";
|
|
|
vars.put("bmzrList", auditUsers);
|
|
vars.put("bmzrList", auditUsers);
|
|
@@ -4173,8 +4198,29 @@ public class RuralProjectMessageNewService extends CrudService<RuralProjectMessa
|
|
|
users.add( reported.getCreateBy());
|
|
users.add( reported.getCreateBy());
|
|
|
} else {
|
|
} else {
|
|
|
if (StringUtils.isNotBlank(enname)) {//驳回重新申请待办
|
|
if (StringUtils.isNotBlank(enname)) {//驳回重新申请待办
|
|
|
- title = "项目【"+projectRecords.getProjectName()+"】上报重新申请,待审批";
|
|
|
|
|
- str = "项目【"+projectRecords.getProjectName()+"】上报重新申请,待审批,项目" + (0 == projectRecords.getOverDueStatus()?"未超期":"超期");
|
|
|
|
|
|
|
+ if(StringUtils.isNotBlank(reported.getJingHeJianLv())){
|
|
|
|
|
+ if(Double.valueOf(reported.getJingHeJianLv())>30 || Double.valueOf(reported.getJingHeJianLv())< -30 ){
|
|
|
|
|
+ if(null != projectRecords.getReportData() && StringUtils.isNotBlank(projectRecords.getReportData().getNumber())){
|
|
|
|
|
+ title = "报告号:"+projectRecords.getReportData().getNumber()+"。项目【"+projectRecords.getProjectName()+"】 审核增减率大于30%,上报待审批";
|
|
|
|
|
+ str = "报告号:"+projectRecords.getReportData().getNumber()+"。项目【"+projectRecords.getProjectName()+"】 审核增减率大于30%,上报待审批,项目" + (0 == projectRecords.getOverDueStatus()?"未超期":"超期");
|
|
|
|
|
+ }else{
|
|
|
|
|
+ title = "项目【"+projectRecords.getProjectName()+"】上报重新申请,待审批";
|
|
|
|
|
+ str = "项目【"+projectRecords.getProjectName()+"】上报重新申请,待审批,项目" + (0 == projectRecords.getOverDueStatus()?"未超期":"超期");
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ title = "项目【"+projectRecords.getProjectName()+"】上报重新申请,待审批";
|
|
|
|
|
+ str = "项目【"+projectRecords.getProjectName()+"】上报重新申请,待审批,项目" + (0 == projectRecords.getOverDueStatus()?"未超期":"超期");
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ title = "项目【"+projectRecords.getProjectName()+"】上报重新申请,待审批";
|
|
|
|
|
+ str = "项目【"+projectRecords.getProjectName()+"】上报重新申请,待审批,项目" + (0 == projectRecords.getOverDueStatus()?"未超期":"超期");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(null != projectRecords.getReportData() && StringUtils.isNotBlank(projectRecords.getReportData().getNumber())){
|
|
|
|
|
+ }else{
|
|
|
|
|
+ title = "项目【"+projectRecords.getProjectName()+"】上报重新申请,待审批";
|
|
|
|
|
+ str = "项目【"+projectRecords.getProjectName()+"】上报重新申请,待审批,项目" + (0 == projectRecords.getOverDueStatus()?"未超期":"超期");
|
|
|
|
|
+ }
|
|
|
WorkProjectNotify notify = new WorkProjectNotify();
|
|
WorkProjectNotify notify = new WorkProjectNotify();
|
|
|
notify.setNotifyId(reported.getId());
|
|
notify.setNotifyId(reported.getId());
|
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|
|
userList = workProjectNotifyService.readByNotifyId(notify);
|