fix:数据总览删除关键结果和试验结果删除对应记录
This commit is contained in:
@@ -61,4 +61,14 @@ public class SimulationRunFeignClientImpl implements ISimulationRunFeignClient {
|
||||
return SdmResponse.failed("更新算例状态失败");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public SdmResponse deleteFileForData(List<Long> fileIds) {
|
||||
try {
|
||||
return simulationRunFeignClient.deleteFileForData(fileIds);
|
||||
} catch (Exception e) {
|
||||
log.error("删除试验结果或关键结果失败", e);
|
||||
return SdmResponse.failed("删除失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,9 @@ package com.sdm.common.feign.inter.project;
|
||||
import com.sdm.common.common.SdmResponse;
|
||||
import com.sdm.common.entity.req.project.SpdmReportReq;
|
||||
import com.sdm.common.entity.req.system.LaunchApproveReq;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
@@ -36,4 +38,7 @@ public interface ISimulationRunFeignClient {
|
||||
@PostMapping("/run/updateStatusByProcessInstanceId")
|
||||
SdmResponse updateStatusByProcessInstanceId(@RequestParam String processInstanceId, @RequestParam Integer statusCode);
|
||||
|
||||
@PostMapping("/run/deleteFileForData")
|
||||
SdmResponse deleteFileForData(@RequestParam(value = "fileIds") @Validated List<Long> fileIds);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user