fix:任务执行涉及立即删除文件修改
This commit is contained in:
@@ -201,6 +201,7 @@ public class SimulationReportTemplateServiceImpl extends ServiceImpl<SimulationR
|
||||
for (SimulationReportTemplate reportTemplate : reportTemplateEntityList) {
|
||||
DelFileReq delFileReq = new DelFileReq();
|
||||
delFileReq.setDelFileId(reportTemplate.getFileId());
|
||||
delFileReq.setImmediateDelete(true);
|
||||
SdmResponse response = dataFeignClient.delFile(delFileReq);
|
||||
if (!response.isSuccess()) {
|
||||
return response;
|
||||
|
||||
@@ -991,6 +991,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
|
||||
// 删除算例目录
|
||||
DelDirReq delDirReq = new DelDirReq();
|
||||
delDirReq.setDelUuid(simulationRun.getUuid());
|
||||
delDirReq.setImmediateDelete(true);
|
||||
SdmResponse response = dataFeignClient.delDir(delDirReq);
|
||||
if (!response.isSuccess()) {
|
||||
log.error("删除算例文件夹失败:{}", response.getMessage());
|
||||
@@ -1173,6 +1174,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
|
||||
if (simulationRunKeyResult.getFileId() != null) {
|
||||
DelFileReq delFileReq = new DelFileReq();
|
||||
delFileReq.setDelFileId(simulationRunKeyResult.getFileId());
|
||||
delFileReq.setImmediateDelete(true);
|
||||
SdmResponse response = dataFeignClient.delFile(delFileReq);
|
||||
if (!response.isSuccess()) {
|
||||
return response;
|
||||
@@ -1517,6 +1519,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
|
||||
// 删除文件
|
||||
DelDirReq delDirReq = new DelDirReq();
|
||||
delDirReq.setDelDirId(req.getFileId());
|
||||
delDirReq.setImmediateDelete(true);
|
||||
log.info("删除关键结果调用删除文件夹的参数为:{}", req);
|
||||
SdmResponse response = dataFeignClient.delDir(delDirReq);
|
||||
log.info("删除关键结果调用删除文件夹的返回值为:{}", response);
|
||||
@@ -2674,6 +2677,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
|
||||
for (Long fileId : fileIds) {
|
||||
DelFileReq delFileReq = new DelFileReq();
|
||||
delFileReq.setDelFileId(fileId);
|
||||
delFileReq.setImmediateDelete(true);
|
||||
SdmResponse response = dataFeignClient.delFile(delFileReq);
|
||||
if (!response.isSuccess()) {
|
||||
return response;
|
||||
@@ -2729,6 +2733,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
|
||||
for (Long deleteFileId : deleteFileIds) {
|
||||
DelFileReq delFileReq = new DelFileReq();
|
||||
delFileReq.setDelFileId(deleteFileId);
|
||||
delFileReq.setImmediateDelete(true);
|
||||
SdmResponse response = dataFeignClient.delFile(delFileReq);
|
||||
if (!response.isSuccess()) {
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user