代理商公司删除
This commit is contained in:
parent
c165d91f99
commit
a47f5b237a
|
|
@ -146,7 +146,7 @@ public class CustomerController extends ControllerBase {
|
||||||
VUtils.trueThrow(CollUtil.isEmpty(ids)).throwMessage(STATE.ParamErr,"请选择要删除的行");
|
VUtils.trueThrow(CollUtil.isEmpty(ids)).throwMessage(STATE.ParamErr,"请选择要删除的行");
|
||||||
|
|
||||||
//
|
//
|
||||||
List<AppUser> appUserUsed = appUserService.lambdaQuery().in(AppUser::getCompanyId, ids).list();
|
List<AppUser> appUserUsed = appUserService.lambdaQuery().eq(AppUser::getIsDel,0).in(AppUser::getCompanyId, ids).list();
|
||||||
if(CollUtil.isNotEmpty(appUserUsed)){
|
if(CollUtil.isNotEmpty(appUserUsed)){
|
||||||
Set<String> userCompanyIds = appUserUsed.stream().map(u -> u.getCompanyId()).collect(Collectors.toSet());
|
Set<String> userCompanyIds = appUserUsed.stream().map(u -> u.getCompanyId()).collect(Collectors.toSet());
|
||||||
List<TBaseCustomer> checkResult = baseCustomerService.lambdaQuery().in(TBaseCustomer::getId, userCompanyIds).list();
|
List<TBaseCustomer> checkResult = baseCustomerService.lambdaQuery().in(TBaseCustomer::getId, userCompanyIds).list();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue