|
|
@ -177,7 +177,7 @@ public class CommonApi { |
|
|
|
List<SysRole> legalPerson = sysRoles.stream().filter(x -> x.getRoleKey().equals("legalPerson")).collect(Collectors.toList()); |
|
|
|
List<SysRole> enterprise = sysRoles.stream().filter(x -> x.getRoleKey().equals("enterprise")).collect(Collectors.toList()); |
|
|
|
|
|
|
|
if (CollectionUtil.isEmpty(legalPerson)||CollectionUtil.isEmpty(enterprise)) { |
|
|
|
if (CollectionUtil.isEmpty(legalPerson)&&CollectionUtil.isEmpty(enterprise)) { |
|
|
|
return AjaxResult.success(true); |
|
|
|
} else if (CollectionUtil.isNotEmpty(legalPerson)){ |
|
|
|
LambdaQueryWrapper<SysUserPro> queryWrapper = Wrappers.lambdaQuery(SysUserPro.class) |
|
|
|