【8.3.3】【role】角色分类查询增加公司id参数

pull/62/head
stylefeng 2025-02-05 18:00:15 +08:00
parent 4aa6205314
commit af6c2b2e4c
1 changed files with 4 additions and 0 deletions

View File

@ -140,6 +140,10 @@ public class RoleCategoryServiceImpl extends ServiceImpl<RoleCategoryMapper, Rol
Integer categoryType = roleCategoryRequest.getCategoryType();
queryWrapper.eq(ObjectUtil.isNotEmpty(categoryType), RoleCategory::getCategoryType, roleCategoryRequest.getCategoryType());
// 根据指定公司查询
Long companyId = roleCategoryRequest.getCompanyId();
queryWrapper.eq(ObjectUtil.isNotEmpty(companyId), RoleCategory::getCompanyId, roleCategoryRequest.getCompanyId());
queryWrapper.orderByAsc(RoleCategory::getFldSort);
return queryWrapper;