|
@@ -462,7 +462,7 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
}
|
|
}
|
|
if (addStateOpinionDTO.getIfSendEmail()) {
|
|
if (addStateOpinionDTO.getIfSendEmail()) {
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, addStateOpinionDTO.getExtraEmailDTOS(),reportAffairDTO);
|
|
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, addStateOpinionDTO.getExtraEmailDTOS(), reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
@@ -501,9 +501,9 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
List<String> fileGuids = updateStateOpinionDTO.getFileGuids();
|
|
List<String> fileGuids = updateStateOpinionDTO.getFileGuids();
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
if (updateStateOpinionDTO.getIfSendEmail()) {
|
|
if (updateStateOpinionDTO.getIfSendEmail()) {
|
|
- ReportAffairDTO reportAffairDTO =new ReportAffairDTO();
|
|
|
|
|
|
+ ReportAffairDTO reportAffairDTO = new ReportAffairDTO();
|
|
reportAffairDTO.setAssoCasePhaseId(reportAffair.getAssoCasePhaseId());
|
|
reportAffairDTO.setAssoCasePhaseId(reportAffair.getAssoCasePhaseId());
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, updateStateOpinionDTO.getExtraEmailDTOS(),reportAffairDTO);
|
|
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, updateStateOpinionDTO.getExtraEmailDTOS(), reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
@@ -587,7 +587,7 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
}
|
|
}
|
|
if (addClaimHistoryDTO.getIfSendEmail()) {
|
|
if (addClaimHistoryDTO.getIfSendEmail()) {
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, addClaimHistoryDTO.getExtraEmailDTOS(),reportAffairDTO);
|
|
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, addClaimHistoryDTO.getExtraEmailDTOS(), reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
@@ -626,9 +626,9 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
List<String> fileGuids = updateClaimHistoryDTO.getFileGuids();
|
|
List<String> fileGuids = updateClaimHistoryDTO.getFileGuids();
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
if (updateClaimHistoryDTO.getIfSendEmail()) {
|
|
if (updateClaimHistoryDTO.getIfSendEmail()) {
|
|
- ReportAffairDTO reportAffairDTO=new ReportAffairDTO();
|
|
|
|
|
|
+ ReportAffairDTO reportAffairDTO = new ReportAffairDTO();
|
|
reportAffairDTO.setAssoCasePhaseId(reportAffair.getAssoCasePhaseId());
|
|
reportAffairDTO.setAssoCasePhaseId(reportAffair.getAssoCasePhaseId());
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, updateClaimHistoryDTO.getExtraEmailDTOS(),reportAffairDTO);
|
|
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, updateClaimHistoryDTO.getExtraEmailDTOS(), reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
@@ -676,7 +676,7 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
}
|
|
}
|
|
if (addSupplyEvidenceDTO.getIfSendEmail()) {
|
|
if (addSupplyEvidenceDTO.getIfSendEmail()) {
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, addSupplyEvidenceDTO.getExtraEmailDTOS(),reportAffairDTO);
|
|
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, addSupplyEvidenceDTO.getExtraEmailDTOS(), reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
@@ -715,9 +715,9 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
List<String> fileGuids = updateSupplyEvidenceDTO.getFileGuids();
|
|
List<String> fileGuids = updateSupplyEvidenceDTO.getFileGuids();
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
if (updateSupplyEvidenceDTO.getIfSendEmail()) {
|
|
if (updateSupplyEvidenceDTO.getIfSendEmail()) {
|
|
- ReportAffairDTO reportAffairDTO =new ReportAffairDTO();
|
|
|
|
|
|
+ ReportAffairDTO reportAffairDTO = new ReportAffairDTO();
|
|
reportAffairDTO.setAssoCasePhaseId(reportAffair.getAssoCasePhaseId());
|
|
reportAffairDTO.setAssoCasePhaseId(reportAffair.getAssoCasePhaseId());
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, updateSupplyEvidenceDTO.getExtraEmailDTOS(),reportAffairDTO);
|
|
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, updateSupplyEvidenceDTO.getExtraEmailDTOS(), reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
@@ -821,7 +821,7 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
}
|
|
}
|
|
if (vo.getIfSendEmail()) {
|
|
if (vo.getIfSendEmail()) {
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, vo.getExtraEmailDTOS(),reportAffairDTO);
|
|
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, vo.getExtraEmailDTOS(), reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
@@ -869,9 +869,9 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
List<String> fileGuids = vo.getFileGuids();
|
|
List<String> fileGuids = vo.getFileGuids();
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
if (vo.getIfSendEmail()) {
|
|
if (vo.getIfSendEmail()) {
|
|
- ReportAffairDTO reportAffairDTO =new ReportAffairDTO();
|
|
|
|
|
|
+ ReportAffairDTO reportAffairDTO = new ReportAffairDTO();
|
|
reportAffairDTO.setAssoCasePhaseId(reportAffair.getAssoCasePhaseId());
|
|
reportAffairDTO.setAssoCasePhaseId(reportAffair.getAssoCasePhaseId());
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, vo.getExtraEmailDTOS(),reportAffairDTO);
|
|
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, vo.getExtraEmailDTOS(), reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
@@ -898,4 +898,48 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
courtSubpoenaVO.setBePosition(reportAffairVO.getBePosition());
|
|
courtSubpoenaVO.setBePosition(reportAffairVO.getBePosition());
|
|
reportAffairVO.setCourtSubpoenaVO(courtSubpoenaVO);
|
|
reportAffairVO.setCourtSubpoenaVO(courtSubpoenaVO);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public List<ReportAffairVO> queryReportAffairs(List<Integer> projectIds) {
|
|
|
|
+ List<ReportAffairVO> reportAffairVOS = new ArrayList<>();
|
|
|
|
+ //判空
|
|
|
|
+ if (projectIds == null || projectIds.size() == 0) {
|
|
|
|
+ return reportAffairVOS;
|
|
|
|
+ }
|
|
|
|
+ //根据报告id查询事务
|
|
|
|
+ LambdaQueryWrapper<ReportAffair> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
+ queryWrapper.in(ReportAffair::getProjectId, projectIds)
|
|
|
|
+ .orderByDesc(ReportAffair::getOccurredTime);
|
|
|
|
+ List<ReportAffair> reportAffairs = this.list(queryWrapper);
|
|
|
|
+ if (reportAffairs.isEmpty()) {
|
|
|
|
+ return reportAffairVOS;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ List<Integer> collect = reportAffairs.stream().map(ReportAffair::getAssoCasePhaseId).collect(Collectors.toList());
|
|
|
|
+ List<ReportAffairCasePhase> phaseList = new ArrayList<>();
|
|
|
|
+ if (!CollectionUtils.isEmpty(collect)) {
|
|
|
|
+ List<ReportAffairCasePhase> phases = reportAffairCasePhaseMapper.selectList(new LambdaQueryWrapper<ReportAffairCasePhase>()
|
|
|
|
+ .in(BaseEntity::getId, collect));
|
|
|
|
+ phaseList.addAll(phases);
|
|
|
|
+ }
|
|
|
|
+ reportAffairs.forEach(item -> {
|
|
|
|
+ ReportAffairVO reportAffairVO = new ReportAffairVO();
|
|
|
|
+ BeanUtils.copyProperties(item, reportAffairVO);
|
|
|
|
+ ReportAffairCasePhase casePhase = phaseList.stream().filter(i -> i.getId().equals(item.getAssoCasePhaseId())).findFirst().orElse(null);
|
|
|
|
+ if (ObjectUtils.isNotEmpty(casePhase)) {
|
|
|
|
+ Integer type = casePhase.getFlowType();
|
|
|
|
+ reportAffairVO.setFlowName(casePhase.getFlowName());
|
|
|
|
+ reportAffairVO.setFlowType(type);
|
|
|
|
+
|
|
|
|
+ reportAffairVO.setCasePhase(casePhase.getCasePhase());
|
|
|
|
+ if (reportAffairVO.getCaseChildPhase() == null) {
|
|
|
|
+ reportAffairVO.setCaseChildPhase(casePhase.getCaseChildPhase());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ reportAffairVO.setDocumentType(casePhase.getDocumentType());
|
|
|
|
+ }
|
|
|
|
+ reportAffairVOS.add(reportAffairVO);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ return reportAffairVOS;
|
|
|
|
+ }
|
|
}
|
|
}
|