fix
This commit is contained in:
@@ -725,7 +725,17 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
|
||||
@Override
|
||||
public SdmResponse uploadRunFiles(UploadFilesReq req) {
|
||||
// 批量存储文件信息,返回数据供第二步分片上传使用
|
||||
return dataFeignClient.batchAddFileInfo(req);
|
||||
// return dataFeignClient.batchAddFileInfo(req);
|
||||
return dataFeignClient.uploadFiles(req);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传单个结果文件使用
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
private SdmResponse uploadKeyResultFiles(UploadFilesReq req) {
|
||||
return dataFeignClient.uploadFiles(req);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -786,7 +796,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
|
||||
if (req.getFile() != null) {
|
||||
UploadFilesReq filesReq = new UploadFilesReq();
|
||||
BeanUtils.copyProperties(req, filesReq);
|
||||
SdmResponse response = uploadRunFiles(filesReq);
|
||||
SdmResponse response = uploadKeyResultFiles(filesReq);
|
||||
if (response.isSuccess() && response.getData() != null) {
|
||||
JSONObject result = JSONObject.from(response.getData());
|
||||
simulationRunKeyResult.setFileId(Long.valueOf((Integer) result.get("fileId")));
|
||||
|
||||
Reference in New Issue
Block a user