|
@@ -60,8 +60,6 @@ public class ProgramAuditAiService {
|
|
|
"zip", "rar", "7z", "tar", "gz", "bz2"
|
|
"zip", "rar", "7z", "tar", "gz", "bz2"
|
|
|
));
|
|
));
|
|
|
|
|
|
|
|
- private static final String[] SEGMENT_KEYS = new String[]{"detail", "report", "remarks", "work"};
|
|
|
|
|
-
|
|
|
|
|
@Resource
|
|
@Resource
|
|
|
private WeKnoraAiAuditProperties properties;
|
|
private WeKnoraAiAuditProperties properties;
|
|
|
|
|
|
|
@@ -297,9 +295,6 @@ public class ProgramAuditAiService {
|
|
|
dto.setDurationMs(generation.getDurationMs());
|
|
dto.setDurationMs(generation.getDurationMs());
|
|
|
|
|
|
|
|
List<String> warnings = new ArrayList<>();
|
|
List<String> warnings = new ArrayList<>();
|
|
|
- String[] labels = new String[]{"明细表", "评估报告", "技术说明", "工作底稿"};
|
|
|
|
|
- String[] statuses = new String[]{generation.getDetailStatus(), generation.getReportStatus(),
|
|
|
|
|
- generation.getRemarksStatus(), generation.getWorkStatus()};
|
|
|
|
|
QueryWrapper<ProgramAuditAiGenerationFile> skippedQuery = new QueryWrapper<>();
|
|
QueryWrapper<ProgramAuditAiGenerationFile> skippedQuery = new QueryWrapper<>();
|
|
|
skippedQuery.eq("generation_id", generation.getId()).eq("parse_status", "skipped");
|
|
skippedQuery.eq("generation_id", generation.getId()).eq("parse_status", "skipped");
|
|
|
List<ProgramAuditAiGenerationFile> skippedFiles = fileMapper.selectList(skippedQuery);
|
|
List<ProgramAuditAiGenerationFile> skippedFiles = fileMapper.selectList(skippedQuery);
|
|
@@ -312,11 +307,6 @@ public class ProgramAuditAiService {
|
|
|
warnings.add(unsupportedWarning);
|
|
warnings.add(unsupportedWarning);
|
|
|
}
|
|
}
|
|
|
appendImageFailureWarning(generation.getId(), warnings);
|
|
appendImageFailureWarning(generation.getId(), warnings);
|
|
|
- for (int i = 0; i < SEGMENT_KEYS.length; i++) {
|
|
|
|
|
- if (!"generated".equals(statuses[i])) {
|
|
|
|
|
- warnings.add(labels[i] + "未生成,原因已回填");
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
dto.setWarning(warnings.isEmpty() ? null : StringUtils.join(warnings, ";").replace("。;", ";"));
|
|
dto.setWarning(warnings.isEmpty() ? null : StringUtils.join(warnings, ";").replace("。;", ";"));
|
|
|
return dto;
|
|
return dto;
|
|
|
}
|
|
}
|