|
@@ -13,7 +13,9 @@ import com.jeeplus.modules.act.service.ActTaskService;
|
|
|
import com.jeeplus.modules.projectcontentinfo.dao.ProjectReportRecordDao;
|
|
|
import com.jeeplus.modules.projectcontentinfo.entity.ProjectReportData;
|
|
|
import com.jeeplus.modules.projectcontentinfo.entity.ProjectReportRecord;
|
|
|
+import com.jeeplus.modules.ruralprojectrecords.entity.RuralProjectRecords;
|
|
|
import com.jeeplus.modules.ruralprojectrecords.service.RuralProjectMessageService;
|
|
|
+import com.jeeplus.modules.ruralprojectrecords.service.RuralProjectRecordsService;
|
|
|
import com.jeeplus.modules.sys.dao.WorkattachmentDao;
|
|
|
import com.jeeplus.modules.sys.entity.Office;
|
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
@@ -75,6 +77,8 @@ public class ProjectReportRecordService extends CrudService<ProjectReportRecordD
|
|
|
@Autowired
|
|
|
private RuralProjectMessageService ruralProjectMessageService;
|
|
|
@Autowired
|
|
|
+ private RuralProjectRecordsService ruralProjectRecordsService;
|
|
|
+ @Autowired
|
|
|
ProjectReportRecordDao projectReportRecordDao;
|
|
|
public ProjectReportRecord get(String id) {
|
|
|
ProjectReportRecord projectReportRecord= super.get(id);
|
|
@@ -207,7 +211,7 @@ public class ProjectReportRecordService extends CrudService<ProjectReportRecordD
|
|
|
projectReportRecord.getCompanyId(),
|
|
|
title,
|
|
|
str,
|
|
|
- "151",
|
|
|
+ "51",
|
|
|
"0",
|
|
|
"待审批",
|
|
|
""
|
|
@@ -272,7 +276,7 @@ public class ProjectReportRecordService extends CrudService<ProjectReportRecordD
|
|
|
Map<String,Object> extras = new HashMap<>();
|
|
|
extras.put("type","7001");
|
|
|
extras.put("id",workProjectNotify.getId());
|
|
|
- extras.put("procDefKey","151");
|
|
|
+ extras.put("procDefKey","51");
|
|
|
UserUtils.pushInfoToApp(title,str,extras,u.getId());
|
|
|
UserUtils.pushIm(u.getId(),str);
|
|
|
|
|
@@ -529,6 +533,11 @@ public class ProjectReportRecordService extends CrudService<ProjectReportRecordD
|
|
|
List<User> userList = new ArrayList<>();
|
|
|
if (!state) {
|
|
|
// str = "yes".equals(flag)?"您的报销单审核:已通过":"您的报销单审核:未通过";
|
|
|
+ //获取项目信息
|
|
|
+ RuralProjectRecords record = ruralProjectRecordsService.get(reportRecord.getReport().getProject().getId());
|
|
|
+
|
|
|
+ String titleStr = "项目【"+ record.getProjectName()+"】归档完成";
|
|
|
+ String content = "项目【"+ record.getProjectName()+"】归档完成,案卷号:" + projectReportRecord.getFileNum();
|
|
|
users.add(projectReportRecord.getCreateBy());
|
|
|
if ("yes".equals(flag)) {
|
|
|
ProjectReportData projectReportData =projectReportRecord.getReport();
|
|
@@ -544,9 +553,9 @@ public class ProjectReportRecordService extends CrudService<ProjectReportRecordD
|
|
|
.saveNotify(projectReportRecord.getId(),
|
|
|
projectReportRecord.getCreateBy(),
|
|
|
projectReportRecord.getCompanyId(),
|
|
|
- title,
|
|
|
- str2,
|
|
|
- "151",
|
|
|
+ titleStr,
|
|
|
+ content,
|
|
|
+ "51",
|
|
|
"0",
|
|
|
"待通知",
|
|
|
notifyRole));
|
|
@@ -564,7 +573,7 @@ public class ProjectReportRecordService extends CrudService<ProjectReportRecordD
|
|
|
projectReportRecord.getCompanyId(),
|
|
|
title,
|
|
|
str,
|
|
|
- "151",
|
|
|
+ "51",
|
|
|
"0",
|
|
|
"待通知",
|
|
|
notifyRole));
|
|
@@ -582,7 +591,7 @@ public class ProjectReportRecordService extends CrudService<ProjectReportRecordD
|
|
|
projectReportRecord.getCompanyId(),
|
|
|
title,
|
|
|
str,
|
|
|
- "151",
|
|
|
+ "51",
|
|
|
"0",
|
|
|
"待审批",
|
|
|
notifyRole);
|
|
@@ -615,7 +624,7 @@ public class ProjectReportRecordService extends CrudService<ProjectReportRecordD
|
|
|
projectReportRecord.getCompanyId(),
|
|
|
title,
|
|
|
str,
|
|
|
- "151",
|
|
|
+ "51",
|
|
|
"0",
|
|
|
"重新申请",
|
|
|
notifyRole));
|
|
@@ -631,7 +640,7 @@ public class ProjectReportRecordService extends CrudService<ProjectReportRecordD
|
|
|
projectReportRecord.getCompanyId(),
|
|
|
title,
|
|
|
str,
|
|
|
- "151",
|
|
|
+ "51",
|
|
|
"0",
|
|
|
"待审批",
|
|
|
notifyRole);
|
|
@@ -655,7 +664,7 @@ public class ProjectReportRecordService extends CrudService<ProjectReportRecordD
|
|
|
projectReportRecord.getCompanyId(),
|
|
|
title,
|
|
|
str,
|
|
|
- "151",
|
|
|
+ "51",
|
|
|
"0",
|
|
|
"重新申请",
|
|
|
notifyRole));
|