|
@@ -24,6 +24,8 @@ import com.jeeplus.sys.utils.StringUtils;
|
|
|
import com.jeeplus.sys.utils.UserUtils;
|
|
|
import com.jeeplus.test.cw.common.CommonUtils;
|
|
|
import com.jeeplus.test.cw.common.flowable.dto.CommitParamDTO;
|
|
|
+import com.jeeplus.test.cw.projectRecords.domain.CwProjectRecords;
|
|
|
+import com.jeeplus.test.cw.projectRecords.service.CwProjectRecordsService;
|
|
|
import com.jeeplus.test.cw.projectReport.domain.*;
|
|
|
import com.jeeplus.test.cw.projectReport.mapper.*;
|
|
|
import com.jeeplus.test.cw.projectReport.service.dto.CwProjectReportDTO;
|
|
@@ -65,6 +67,7 @@ import java.io.IOException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* @author: 王强
|
|
@@ -136,6 +139,9 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
@Resource
|
|
|
private CwProjectReportArchiveMapper cwProjectReportArchiveMapper;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private CwProjectRecordsService cwProjectRecordsService;
|
|
|
+
|
|
|
/**
|
|
|
* 保存项目以及其他相关信息
|
|
|
* @param reportData
|
|
@@ -477,6 +483,15 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
if (StringUtils.isNotEmpty(projectReportData.getStatus1())) {
|
|
|
queryWrapper.eq("cw_prs1.status", projectReportData.getStatus1());
|
|
|
}
|
|
|
+ if (StringUtils.isNotBlank(projectReportData.getFilingType())) {
|
|
|
+ List<CwProjectRecords> projectList = cwProjectRecordsService.list(new LambdaQueryWrapper<CwProjectRecords>().eq(CwProjectRecords::getReportType, projectReportData.getFilingType()));
|
|
|
+ List<String> projectIdList = projectList.stream().map(CwProjectRecords::getId).collect(Collectors.toList());
|
|
|
+ if (CollectionUtil.isNotEmpty(projectIdList)) {
|
|
|
+ queryWrapper.in("b.id", projectIdList);
|
|
|
+ } else {
|
|
|
+ return new Page<>();
|
|
|
+ }
|
|
|
+ }
|
|
|
String isBmzr = "0";
|
|
|
StringBuilder officeIds = new StringBuilder();
|
|
|
UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
@@ -2692,13 +2707,15 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
reportMapper.deleteIsSign(item.getId()); // 物理删除
|
|
|
});
|
|
|
// 4. 删除已盖章的附件(附件表 work_attachment)
|
|
|
- ossServiceMapper.deleteBatchIds(delIds); // 逻辑删除
|
|
|
+ if (CollectionUtil.isNotEmpty(delIds)) {
|
|
|
+ ossServiceMapper.deleteBatchIds(delIds); // 逻辑删除
|
|
|
+ }
|
|
|
// 5. 根据报告id删除报告归档信息 // 逻辑删除
|
|
|
cwProjectReportArchiveMapper.delete(new LambdaQueryWrapper<CwProjectReportArchive>().eq(CwProjectReportArchive::getReportId, reportId));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 根据报告id修改签字注师1、2的值
|
|
|
+ * 根据报告id修改签字注师1、2,所属行业以及业务对象的值
|
|
|
* @param cwProjectReport
|
|
|
*/
|
|
|
public void updateAnnotatorById(CwProjectReport cwProjectReport) {
|