|
@@ -136,6 +136,10 @@ public class MonitorSystemController extends BaseController {
|
|
|
@RequestMapping("/delete/{ids}")
|
|
|
@ApiOperation(value = "监测系统-删除")
|
|
|
public AjaxResult delete(@PathVariable Long[] ids) {
|
|
|
+ MonitorSystem monitorSystem = new MonitorSystem();
|
|
|
+ if (UserConstants.EXCEPTION.equals(monitorSystemService.checkSystemOnline(monitorSystem))) {
|
|
|
+ return error("监测系统修改'" + monitorSystem.getClientId() + "'失败,该系统正在使用中,无法删除");
|
|
|
+ }
|
|
|
monitorSystemService.deleteByIds(ids);
|
|
|
return AjaxResult.success();
|
|
|
}
|