|
@@ -271,7 +271,7 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
//当审核通过时,且该报告已完成关联,则将关联状态改为2
|
|
|
CwProjectReportData cwProjectReportData = reportMapper.queryById(reportData.getId());
|
|
|
if (StringUtils.isNotBlank(cwProjectReportData.getIsCompleteInvoice())){
|
|
|
- if ("5".equals(cwProjectReportData.getStatus()) && "1".equals(cwProjectReportData.getIsCompleteInvoice())){
|
|
|
+ if ("5".equals(cwProjectReportData.getApplyStatus()) && "1".equals(cwProjectReportData.getIsCompleteInvoice())){
|
|
|
reportMapper.updateCompleteInvoice(reportData.getId());
|
|
|
}
|
|
|
}
|
|
@@ -4567,4 +4567,23 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
cwRevocationSignatureMapper.updateById(cwRevocationSignature);
|
|
|
return "操作成功";
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询项目下的报告是否已经完成关联
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public boolean getCompleteReport(String id) {
|
|
|
+ List<CwProjectReportData> reportData = reportMapper.getByProjectId(id);
|
|
|
+ if (CollectionUtil.isNotEmpty(reportData)){
|
|
|
+ for (CwProjectReportData data : reportData) {
|
|
|
+ if (StringUtils.isNotBlank(data.getIsCompleteInvoice())){
|
|
|
+ if (!"0".equals(data.getIsCompleteInvoice())){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|