Authored by jack.xue

Merge branch 'master' of http://git.yoho.cn/ops/monitor-service

... ... @@ -73,7 +73,8 @@ public class HostGroupServiceImpl implements IHostGroupService {
@Override
public BaseResponse<Integer> delHostGroupById(int id) {
List<HostInfo> list = hostInfoMapper.selectHostInfosByTag("");
HostGroup hostGroup=hostGroupMapper.selectByPrimaryKey(id);
List<HostInfo> list = hostInfoMapper.selectHostInfosByTag(hostGroup.getGroupName());
if(list != null && list.size() > 0){
return new BaseResponse<Integer>("有主机绑定此机组,请先删除主机信息");
}else{
... ...