|
@@ -368,7 +368,9 @@ public class SceneEvidenceServiceImpl extends ServiceImpl<ISceneEvidenceMapper,
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void uploadScreenshot(MultipartFile[] files, String num) throws IOException {
|
|
|
+ public void uploadScreenshot(MultipartFile[] files, BaseJsonArrayParamVO data) throws IOException {
|
|
|
+ String num = data.getNum();
|
|
|
+ Map<String, JSONObject> fileDataMap = data.getData().stream().collect(Collectors.toMap(v -> v.getString("fileName"), v -> v));
|
|
|
ScenePlus scenePlus = scenePlusService.getScenePlusByNum(num);
|
|
|
if(scenePlus == null){
|
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_5005);
|
|
@@ -397,6 +399,8 @@ public class SceneEvidenceServiceImpl extends ServiceImpl<ISceneEvidenceMapper,
|
|
|
param.put("fileSize", fYunFileServiceInterface.getSpace("4dkankan", ossPath));
|
|
|
param.put("delSource", 1);
|
|
|
param.put("toHaixin", 1);
|
|
|
+ param.put("num", num);
|
|
|
+ param.put("category", fileDataMap.get(file.getOriginalFilename()).getString("category"));
|
|
|
}
|
|
|
|
|
|
//调用案件系统接口,进行推送
|