后端修改
This commit is contained in:
parent
b1dd182b3b
commit
aa0beb57ea
@ -156,7 +156,7 @@ public class ModelTrainController {
|
||||
* 删除训练任务
|
||||
*/
|
||||
@Log(value = "删除训练任务", module = "模型训练")
|
||||
@PreAuthorize("hasAuthority('modelTrain:delete')")
|
||||
// @PreAuthorize("hasAuthority('modelTrain:delete')")
|
||||
//删除训练任务
|
||||
@DeleteMapping("/{taskId}")
|
||||
public ResponseResult delete(@PathVariable String taskId) {
|
||||
|
||||
@ -59,7 +59,10 @@ public class SimController {
|
||||
if ("1".equals(st)) {
|
||||
return ResponseResult.error("情景正在运行中,请稍后重试");
|
||||
}
|
||||
if (("2".equals(st) || "3".equals(st)) && !clearResult) {
|
||||
if ("3".equals(st)) {
|
||||
clearResult = true;
|
||||
}
|
||||
if ("2".equals(st) && !clearResult) {
|
||||
return ResponseResult.error("请先清空历史结果后再重新模拟");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user