fix:指标达成状态支持手动修改
This commit is contained in:
@@ -58,6 +58,9 @@ public class TaskPerformanceDto {
|
||||
@Schema(description = "方法")
|
||||
private String method;
|
||||
|
||||
@Schema(description = "达成状态")
|
||||
private String completeStatus;
|
||||
|
||||
@Schema(description = "描述")
|
||||
private String description;
|
||||
|
||||
|
||||
@@ -171,7 +171,11 @@ public class SimulationPerformanceServiceImpl extends ServiceImpl<SimulationPerf
|
||||
public SdmResponse editPerformance(TaskPerformanceDto performanceDto) {
|
||||
SimulationPerformance simulationPerformance = new SimulationPerformance();
|
||||
BeanUtils.copyProperties(performanceDto, simulationPerformance);
|
||||
SdmResponse response = setCompleteStatus(simulationPerformance);
|
||||
SdmResponse response = SdmResponse.success();
|
||||
// 达成状态为空 自己计算 不空使用前端传的
|
||||
if (StringUtils.isEmpty(performanceDto.getCompleteStatus())) {
|
||||
response = setCompleteStatus(simulationPerformance);
|
||||
}
|
||||
if (response.isSuccess()) {
|
||||
saveTaskLog("修改了指标" + simulationPerformance.getNodeName(), OperateTypeConstants.UPDATE, simulationPerformance.getTaskId());
|
||||
return SdmResponse.success(this.updateById(simulationPerformance));
|
||||
|
||||
Reference in New Issue
Block a user