Commit 5aaf1b6e by guojuxing

添加查询账号分组接口:没有组员数量的接口

parent 168baac6
......@@ -99,6 +99,15 @@ public class AccountGroupApiServiceImpl implements AccountGroupApiService {
return ServiceResponse.success(new ArrayList<>());
}
@Override
public ServiceResponse<List<AccountGroupDTO>> listNoMemberByEnterpriseId(Integer enterpriseId) {
List<TabSysAccountGroup> list = accountGroupService.listAccountGroupByEnterpriseId(enterpriseId);
if (CollectionUtils.isNotEmpty(list)) {
return ServiceResponse.success(EntityUtil.changeEntityListNew(AccountGroupDTO.class, list));
}
return ServiceResponse.success(new ArrayList<>());
}
@Transactional(rollbackFor = Exception.class)
@Override
public ServiceResponse<Void> deleteByAccountGroupId(Integer accountGroupId) {
......
......@@ -59,6 +59,13 @@ public class AccountGroupController {
AccountGroupListVO.class);
}
@RequestMapping("/list-no-member")
public RestResponse listAccountGroupOfNoMember() {
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
return ResultControllerUtils.commonResult(accountGroupApiService.listNoMemberByEnterpriseId(enterpriseId),
AccountGroupListVO.class);
}
@RequestMapping("/delete")
public RestResponse deleteAccountGroup(Integer accountGroupId) {
return ResultControllerUtils.commonResult(accountGroupApiService.deleteByAccountGroupId(accountGroupId));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment