|
|
@ -269,6 +269,7 @@ public class PatrolTaskController extends BaseController { |
|
|
if (!brightDatas.isEmpty()) { |
|
|
if (!brightDatas.isEmpty()) { |
|
|
item.setBrightDesc(brightDatas.get(0).getDesc()); |
|
|
item.setBrightDesc(brightDatas.get(0).getDesc()); |
|
|
item.setBrightResStatus(brightDatas.get(0).getResStatus()); |
|
|
item.setBrightResStatus(brightDatas.get(0).getResStatus()); |
|
|
|
|
|
item.setBrightImgAnalyse(brightDatas.get(0).getImgAnalyse()); |
|
|
brightNewList.remove(brightDatas.get(0)); |
|
|
brightNewList.remove(brightDatas.get(0)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -291,6 +292,7 @@ public class PatrolTaskController extends BaseController { |
|
|
if (!brightDatas.isEmpty()) { |
|
|
if (!brightDatas.isEmpty()) { |
|
|
item.setBrightDesc(brightDatas.get(0).getDesc()); |
|
|
item.setBrightDesc(brightDatas.get(0).getDesc()); |
|
|
item.setBrightResStatus(brightDatas.get(0).getResStatus()); |
|
|
item.setBrightResStatus(brightDatas.get(0).getResStatus()); |
|
|
|
|
|
item.setBrightImgAnalyse(brightDatas.get(0).getImgAnalyse()); |
|
|
brightNewList.remove(brightDatas.get(0)); |
|
|
brightNewList.remove(brightDatas.get(0)); |
|
|
} |
|
|
} |
|
|
item.setAlgName( |
|
|
item.setAlgName( |
|
|
@ -333,6 +335,7 @@ public class PatrolTaskController extends BaseController { |
|
|
} |
|
|
} |
|
|
item.setBrightDesc(item.getDesc()); |
|
|
item.setBrightDesc(item.getDesc()); |
|
|
item.setBrightResStatus(item.getResStatus()); |
|
|
item.setBrightResStatus(item.getResStatus()); |
|
|
|
|
|
item.setBrightImgAnalyse(item.getImgAnalyse()); |
|
|
item.setDesc(""); |
|
|
item.setDesc(""); |
|
|
} |
|
|
} |
|
|
newList.addAll(filterList); |
|
|
newList.addAll(filterList); |
|
|
@ -2452,6 +2455,7 @@ public class PatrolTaskController extends BaseController { |
|
|
if (!brightDatas.isEmpty()) { |
|
|
if (!brightDatas.isEmpty()) { |
|
|
item.setBrightDesc(brightDatas.get(0).getDesc()); |
|
|
item.setBrightDesc(brightDatas.get(0).getDesc()); |
|
|
item.setBrightResStatus(brightDatas.get(0).getResStatus()); |
|
|
item.setBrightResStatus(brightDatas.get(0).getResStatus()); |
|
|
|
|
|
item.setBrightImgAnalyse(brightDatas.get(0).getImgAnalyse()); |
|
|
brightNewList.remove(brightDatas.get(0)); |
|
|
brightNewList.remove(brightDatas.get(0)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -2474,6 +2478,7 @@ public class PatrolTaskController extends BaseController { |
|
|
if (!brightDatas.isEmpty()) { |
|
|
if (!brightDatas.isEmpty()) { |
|
|
item.setBrightDesc(brightDatas.get(0).getDesc()); |
|
|
item.setBrightDesc(brightDatas.get(0).getDesc()); |
|
|
item.setBrightResStatus(brightDatas.get(0).getResStatus()); |
|
|
item.setBrightResStatus(brightDatas.get(0).getResStatus()); |
|
|
|
|
|
item.setBrightImgAnalyse(brightDatas.get(0).getImgAnalyse()); |
|
|
brightNewList.remove(brightDatas.get(0)); |
|
|
brightNewList.remove(brightDatas.get(0)); |
|
|
} |
|
|
} |
|
|
item.setAlgName( |
|
|
item.setAlgName( |
|
|
@ -2516,6 +2521,7 @@ public class PatrolTaskController extends BaseController { |
|
|
} |
|
|
} |
|
|
item.setBrightDesc(item.getDesc()); |
|
|
item.setBrightDesc(item.getDesc()); |
|
|
item.setBrightResStatus(item.getResStatus()); |
|
|
item.setBrightResStatus(item.getResStatus()); |
|
|
|
|
|
item.setBrightImgAnalyse(item.getImgAnalyse()); |
|
|
item.setDesc(""); |
|
|
item.setDesc(""); |
|
|
} |
|
|
} |
|
|
newList.addAll(filterList); |
|
|
newList.addAll(filterList); |
|
|
@ -2540,6 +2546,9 @@ public class PatrolTaskController extends BaseController { |
|
|
if (StringUtils.isNotEmpty(data.getImgAnalyse())) { |
|
|
if (StringUtils.isNotEmpty(data.getImgAnalyse())) { |
|
|
Collections.addAll(uniqueImages, data.getImgAnalyse().split(StringUtils.COMMA)); |
|
|
Collections.addAll(uniqueImages, data.getImgAnalyse().split(StringUtils.COMMA)); |
|
|
} |
|
|
} |
|
|
|
|
|
if (StringUtils.isNotEmpty(data.getBrightImgAnalyse())) { |
|
|
|
|
|
Collections.addAll(uniqueImages, data.getBrightImgAnalyse().split(StringUtils.COMMA)); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
logger.info("图片总数: {}", uniqueImages.size()); |
|
|
logger.info("图片总数: {}", uniqueImages.size()); |
|
|
logger.info("数据处理耗时: {} ms", (System.currentTimeMillis() - start)); |
|
|
logger.info("数据处理耗时: {} ms", (System.currentTimeMillis() - start)); |
|
|
@ -2635,7 +2644,7 @@ public class PatrolTaskController extends BaseController { |
|
|
String[] headers = { |
|
|
String[] headers = { |
|
|
"编号", "设备", "相机名", "系统", "点位id", "点位名称", "状态", |
|
|
"编号", "设备", "相机名", "系统", "点位id", "点位名称", "状态", |
|
|
"算法名称", "读数", "初筛图片", "初筛结果", "分析图片", "分析结果", |
|
|
"算法名称", "读数", "初筛图片", "初筛结果", "分析图片", "分析结果", |
|
|
"缺陷类型", "描述信息" |
|
|
|
|
|
|
|
|
"复核结果", "复核详情" |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
Row headerRow = sheet.createRow(0); |
|
|
Row headerRow = sheet.createRow(0); |
|
|
@ -2671,8 +2680,8 @@ public class PatrolTaskController extends BaseController { |
|
|
// 文本信息 |
|
|
// 文本信息 |
|
|
row.createCell(10).setCellValue(item.getFilterDesc()); // 筛选结果 |
|
|
row.createCell(10).setCellValue(item.getFilterDesc()); // 筛选结果 |
|
|
row.createCell(12).setCellValue(item.getDesc()); // 分析结果 |
|
|
row.createCell(12).setCellValue(item.getDesc()); // 分析结果 |
|
|
row.createCell(13).setCellValue(item.getBrightResStatus()); // 缺陷类型 |
|
|
|
|
|
row.createCell(14).setCellValue(item.getBrightDesc()); // 描述信息 |
|
|
|
|
|
|
|
|
row.createCell(13).setCellValue(item.getBrightResStatus()); // 复核结果 |
|
|
|
|
|
// row.createCell(14).setCellValue(item.getBrightDesc()); // 复核详情 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void insertImages(SXSSFWorkbook workbook, Drawing<?> drawing, Sheet sheet, |
|
|
private void insertImages(SXSSFWorkbook workbook, Drawing<?> drawing, Sheet sheet, |
|
|
@ -2694,6 +2703,14 @@ public class PatrolTaskController extends BaseController { |
|
|
// 插入分析图片(第11列) |
|
|
// 插入分析图片(第11列) |
|
|
insertImage(workbook, drawing, row, 11, imageData); |
|
|
insertImage(workbook, drawing, row, 11, imageData); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 获取第一张光明大模型复核结果图(如果有) |
|
|
|
|
|
String firstBrightImgAnalyse = getFirstImage(item.getBrightImgAnalyse()); |
|
|
|
|
|
if (firstBrightImgAnalyse != null) { |
|
|
|
|
|
byte[] imageData = imageCache.getOrDefault(firstBrightImgAnalyse, new byte[0]); |
|
|
|
|
|
// 插入筛选图片(第14列) |
|
|
|
|
|
insertImage(workbook, drawing, row, 14, imageData); |
|
|
|
|
|
} |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
logger.warn("图片插入失败", e); |
|
|
logger.warn("图片插入失败", e); |
|
|
} |
|
|
} |
|
|
|