|
|
@@ -367,6 +367,7 @@ public class UserRoleServiceImpl implements UserRoleService {
|
|
|
}
|
|
|
if (userRoleSearchEntity.getMerchantId() != null) {
|
|
|
predicates.add(cb.equal(root.get("merchantId"), userRoleSearchEntity.getMerchantId()));
|
|
|
+ predicates.add(cb.equal(root.get("isSysCreate"), 0));
|
|
|
}
|
|
|
//创建一个条件的集合,长度为上面满足条件的个数
|
|
|
Predicate[] pre = new Predicate[predicates.size()];
|
|
|
@@ -408,7 +409,8 @@ public class UserRoleServiceImpl implements UserRoleService {
|
|
|
public List<UserAllRoleDto> getListInfo(Integer merchantId) throws ServiceException {
|
|
|
List<UserRoleTable> roleTables = new ArrayList<>();
|
|
|
if(merchantId != null){
|
|
|
- roleTables = userRoleRepository.findAllByMerchantId(merchantId);
|
|
|
+ Integer isSysCreate = 0;
|
|
|
+ roleTables = userRoleRepository.findAllByMerchantIdAndIsSysCreate(merchantId,isSysCreate);
|
|
|
}else {
|
|
|
roleTables = userRoleRepository.findAll();
|
|
|
}
|