소스 검색

处理生成报告中问题处理进度字段

tags/v1.0.0^2
wanjing 1 년 전
부모
커밋
94fd9656c2
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. +7
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/report/generate/GenerateReportService.java

+ 7
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/report/generate/GenerateReportService.java 파일 보기

@@ -15,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

@@ -106,9 +107,14 @@ public class GenerateReportService {
report.setInspectionName(inspection.getName());
report.setCreateUser(userId);
report.setCreateTime(DateUtils.now());

List<Integer> statusList = new ArrayList<>();
statusList.add(InspectionFileStatusEnum.CONFIRMED.getCode());
statusList.add(InspectionFileStatusEnum.GENERATE_ORDER.getCode());
statusList.add(InspectionFileStatusEnum.PROCESSED.getCode());
List<InspectionFile> inspectionFileList = inspectionFileMapper.selectList(Wrappers.<InspectionFile>lambdaQuery()
.eq(InspectionFile::getInspectionId, inspection.getId())
.eq(InspectionFile::getStatus, InspectionFileStatusEnum.CONFIRMED.getCode())
.in(InspectionFile::getStatus, statusList)
.eq(InspectionFile::getMark, 1));
List<String> inspectionFileIdList = null;
if (!CollectionUtil.isEmpty(inspectionFileList)) {

Loading…
취소
저장