|
@@ -129,6 +129,9 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
@Resource
|
|
|
private CwProjectRecordsService cwProjectRecordsService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private CwSignatureAnnotatorMapper cwSignatureAnnotatorMapper;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 保存项目以及其他相关信息
|
|
@@ -3237,7 +3240,30 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
|
|
|
}*/
|
|
|
return "修改成功";
|
|
|
+ }
|
|
|
|
|
|
+ public List<CwSignatureAnnotator> getSignatureAnnotatorList(String reportId) {
|
|
|
+ return cwProjectReportSignatureMapper.getSignatureAnnotatorList(reportId);
|
|
|
}
|
|
|
|
|
|
+ public String saveSignatureAnnotator(CwProjectReportData reportData) {
|
|
|
+ CwProjectReport report = cwProjectReportService.getById(reportData.getId());
|
|
|
+ if (ObjectUtil.isNotEmpty(report)){
|
|
|
+ //修改报告表中的签字注师
|
|
|
+ report.setSignatureAnnotatorStatus(reportData.getSignatureAnnotatorStatus());
|
|
|
+ report.setSignatureAnnotator1(reportData.getSignatureAnnotator1());
|
|
|
+ report.setSignatureAnnotator2(reportData.getSignatureAnnotator2());
|
|
|
+ reportMapper.updateById(report);
|
|
|
+ //将信息添加到签字注师记录表中
|
|
|
+ CwSignatureAnnotator cwSignatureAnnotator = new CwSignatureAnnotator();
|
|
|
+ cwSignatureAnnotator.setReportId(reportData.getId());
|
|
|
+ cwSignatureAnnotator.setSignatureAnnotator1(reportData.getSignatureAnnotator1());
|
|
|
+ cwSignatureAnnotator.setSignatureAnnotator2(reportData.getSignatureAnnotator2());
|
|
|
+ cwSignatureAnnotator.setUserName(report.getCreateName());
|
|
|
+ cwSignatureAnnotatorMapper.insert(cwSignatureAnnotator);
|
|
|
+ }else {
|
|
|
+ return reportData.getId();
|
|
|
+ }
|
|
|
+ return reportData.getId();
|
|
|
+ }
|
|
|
}
|