浏览代码

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

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)) {

正在加载...
取消
保存