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