Merge branch 'master' of http://git.yoho.cn/ops/monitor-service
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -73,7 +73,8 @@ public class HostGroupServiceImpl implements IHostGroupService { | @@ -73,7 +73,8 @@ public class HostGroupServiceImpl implements IHostGroupService { | ||
73 | 73 | ||
74 | @Override | 74 | @Override |
75 | public BaseResponse<Integer> delHostGroupById(int id) { | 75 | public BaseResponse<Integer> delHostGroupById(int id) { |
76 | - List<HostInfo> list = hostInfoMapper.selectHostInfosByTag(""); | 76 | + HostGroup hostGroup=hostGroupMapper.selectByPrimaryKey(id); |
77 | + List<HostInfo> list = hostInfoMapper.selectHostInfosByTag(hostGroup.getGroupName()); | ||
77 | if(list != null && list.size() > 0){ | 78 | if(list != null && list.size() > 0){ |
78 | return new BaseResponse<Integer>("有主机绑定此机组,请先删除主机信息"); | 79 | return new BaseResponse<Integer>("有主机绑定此机组,请先删除主机信息"); |
79 | }else{ | 80 | }else{ |
-
Please register or login to post a comment