|
@@ -2206,4 +2206,46 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
System.out.println(s);
|
|
System.out.println(s);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public ResultData uploadFile(SendCallAlgorithmParam param) throws Exception {
|
|
|
|
+
|
|
|
|
+ log.info("sendCallAlgorithm 参数为:{}", JSONObject.toJSONString(param));
|
|
|
|
+
|
|
|
|
+ String filePath = param.getFilepath();
|
|
|
|
+ if(StrUtil.isBlank(filePath)){
|
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED.code(), "filePath不能为空");
|
|
|
|
+ }
|
|
|
|
+ SendCallAlgorithmDetail detail = param.getDetails();
|
|
|
|
+ String uploadType = detail.getUploadType();
|
|
|
|
+ if(StrUtil.isNotEmpty(uploadType) && "log".equals(uploadType)){
|
|
|
|
+ return ResultData.ok();
|
|
|
|
+ }
|
|
|
|
+ String uuid = detail.getUuid();
|
|
|
|
+ if(StrUtil.isBlank(uuid)){
|
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED.code(), "uuid不能为空");
|
|
|
|
+ }
|
|
|
|
+ String fileName = detail.getFileName();
|
|
|
|
+ if(StrUtil.isBlank(fileName)){
|
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED.code(), "fileName不能为空");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // TODO: 2023/11/22 查询是否有等待通知计算的上传记录,如果有则加入,没有则新增
|
|
|
|
+ Long uploadOperId = null;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // TODO: 2023/11/23 插入上传明细表
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ return ResultData.ok();
|
|
|
|
+ }
|
|
}
|
|
}
|