Merge branch 'develop-business-css' of http://121.37.111.42:3000/ThbTech/JavaProjectRepo into develop-business-css
This commit is contained in:
commit
28438fc0fa
@ -156,7 +156,7 @@ public class ModelTrainController {
|
|||||||
* 删除训练任务
|
* 删除训练任务
|
||||||
*/
|
*/
|
||||||
@Log(value = "删除训练任务", module = "模型训练")
|
@Log(value = "删除训练任务", module = "模型训练")
|
||||||
@PreAuthorize("hasAuthority('modelTrain:delete')")
|
// @PreAuthorize("hasAuthority('modelTrain:delete')")
|
||||||
//删除训练任务
|
//删除训练任务
|
||||||
@DeleteMapping("/{taskId}")
|
@DeleteMapping("/{taskId}")
|
||||||
public ResponseResult delete(@PathVariable String taskId) {
|
public ResponseResult delete(@PathVariable String taskId) {
|
||||||
|
|||||||
@ -59,7 +59,10 @@ public class SimController {
|
|||||||
if ("1".equals(st)) {
|
if ("1".equals(st)) {
|
||||||
return ResponseResult.error("情景正在运行中,请稍后重试");
|
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("请先清空历史结果后再重新模拟");
|
return ResponseResult.error("请先清空历史结果后再重新模拟");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user