|
@@ -2475,6 +2475,7 @@ public class ZhcxCommissionCheckServiceImpl extends ServiceImpl<ZhcxCommissionCh
|
|
NodeCollection shapes = doc.getChildNodes(NodeType.SHAPE, true);
|
|
NodeCollection shapes = doc.getChildNodes(NodeType.SHAPE, true);
|
|
|
|
|
|
Map<String, List<String>> docImgMap = new HashMap<>();
|
|
Map<String, List<String>> docImgMap = new HashMap<>();
|
|
|
|
+ List<SysFileItemDo> fileList = new ArrayList<>();
|
|
// 遍历所有形状
|
|
// 遍历所有形状
|
|
try {
|
|
try {
|
|
for (int i = 0; i < shapes.getCount(); i++) {
|
|
for (int i = 0; i < shapes.getCount(); i++) {
|
|
@@ -2508,12 +2509,18 @@ public class ZhcxCommissionCheckServiceImpl extends ServiceImpl<ZhcxCommissionCh
|
|
|
|
|
|
imgList.add(fileItemDo.getFilename().concat("-;-").concat(fileItemDo.getId()));
|
|
imgList.add(fileItemDo.getFilename().concat("-;-").concat(fileItemDo.getId()));
|
|
docImgMap.put(title, imgList);
|
|
docImgMap.put(title, imgList);
|
|
|
|
+
|
|
|
|
+ fileList.add(fileItemDo);
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error("图片解析失败, {}", e);
|
|
log.error("图片解析失败, {}", e);
|
|
throw new CustomException("图片解析失败");
|
|
throw new CustomException("图片解析失败");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if(ObjectUtil.isNotEmpty(fileList)) {
|
|
|
|
+ sysFileItemService.saveBatch(fileList);
|
|
|
|
+ }
|
|
|
|
+
|
|
return docImgMap;
|
|
return docImgMap;
|
|
}
|
|
}
|
|
|
|
|