|
@@ -23,6 +23,7 @@ import com.jeeplus.test.cw.projectReport.mapper.CwProjectInfoMapper;
|
|
|
import com.jeeplus.test.cw.projectReport.mapper.CwProjectReportCancelMapper;
|
|
|
import com.jeeplus.test.cw.projectReport.mapper.CwProjectReportMapper;
|
|
|
import com.jeeplus.test.cw.projectReport.mapper.ProjectReportWorkAttachmentMapper;
|
|
|
+import com.jeeplus.test.cw.projectReport.service.CwProjectReportService;
|
|
|
import com.jeeplus.test.cw.projectReport.service.dto.CwProjectReportDTO;
|
|
|
import com.jeeplus.test.cw.projectReport.service.dto.ProjectReportWorkAttachmentDTO;
|
|
|
import com.jeeplus.test.cw.projectReport.service.mapstruct.CwProjectReportFileWrapper;
|
|
@@ -69,6 +70,9 @@ public class ReportCancellApplyService extends ServiceImpl<ReportCancellApplyMap
|
|
|
@Autowired
|
|
|
private FlowTaskService flowTaskService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private CwProjectReportService projectReportService;
|
|
|
+
|
|
|
/**
|
|
|
* 差选项目列表信息
|
|
|
* @param page
|
|
@@ -138,7 +142,13 @@ public class ReportCancellApplyService extends ServiceImpl<ReportCancellApplyMap
|
|
|
|
|
|
public ReportInfoDto queryById(String id) {
|
|
|
ReportInfoDto reportData = applyMapper.queryById(id);
|
|
|
-
|
|
|
+ if (ObjectUtil.isNotEmpty(reportData) && StringUtils.isNotBlank(reportData.getReportNo())) {
|
|
|
+ String reportId = applyMapper.queryReportIdByReportNo(reportData.getReportNo());
|
|
|
+ if (StringUtils.isNotBlank(reportId)) {
|
|
|
+ CwProjectReportData cwProjectReportData = projectReportService.queryById(reportId);
|
|
|
+ reportData.setReportDetail(cwProjectReportData);
|
|
|
+ }
|
|
|
+ }
|
|
|
return reportData;
|
|
|
}
|
|
|
|
|
@@ -306,4 +316,15 @@ public class ReportCancellApplyService extends ServiceImpl<ReportCancellApplyMap
|
|
|
this.removeByIds (Lists.newArrayList (idArray));
|
|
|
return ResponseEntity.ok ("删除成功");
|
|
|
}
|
|
|
+
|
|
|
+ public CwProjectReportData queryByNo(String no) {
|
|
|
+ CwProjectReportData cwProjectReportData = new CwProjectReportData();
|
|
|
+ if (StringUtils.isNotBlank(no)) {
|
|
|
+ String reportId = applyMapper.queryReportIdByReportNo(no);
|
|
|
+ if (StringUtils.isNotBlank(reportId)) {
|
|
|
+ cwProjectReportData = projectReportService.queryById(reportId);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return cwProjectReportData;
|
|
|
+ }
|
|
|
}
|