|
@@ -68,8 +68,8 @@ public class SaasRoleController {
|
|
|
public ResponseResult querySaasRoleList(@RequestBody @Validated SaasRoleQueryVO queryVO) {
|
|
|
LambdaQueryWrapper<SaasRole> queryWrapper = new SaasRole.Builder().createQueryWrapper().idEq(queryVO.getId())
|
|
|
.idIn(queryVO.getRoleIds()).roleCodeEq(queryVO.getRoleCode()).roleNameLike(queryVO.getRoleName())
|
|
|
- .groupCodeEq(queryVO.getGroupCode()).roleTypeEq(queryVO.getRoleType()).updateUserEq(queryVO.getUpdateUser())
|
|
|
- .validEq(queryVO.getValid()).builderQueryWrapper();
|
|
|
+ .groupCodeEq(queryVO.getGroupCode()).roleTypeEq(queryVO.getRoleType()).roleTypeIn(queryVO.getRoleTypes())
|
|
|
+ .updateUserEq(queryVO.getUpdateUser()).validEq(queryVO.getValid()).builderQueryWrapper();
|
|
|
queryWrapper.orderByDesc(SaasRole::getUpdateTime); // 默认更新时间降序
|
|
|
List<SaasRole> list = this.saasRoleService.list(queryWrapper);
|
|
|
if (CollectionUtil.isEmpty(list)) {
|
|
@@ -98,7 +98,8 @@ public class SaasRoleController {
|
|
|
Page<SaasRole> page = new Page<SaasRole>(pageVO.getPage(), pageVO.getSize());
|
|
|
LambdaQueryWrapper<SaasRole> queryWrapper = new SaasRole.Builder().createQueryWrapper().idEq(pageVO.getId())
|
|
|
.roleCodeEq(pageVO.getRoleCode()).roleNameLike(pageVO.getRoleName()).roleTypeEq(pageVO.getRoleType())
|
|
|
- .groupCodeEq(pageVO.getGroupCode()).updateUserEq(pageVO.getUpdateUser()).validEq(pageVO.getValid()).builderQueryWrapper();
|
|
|
+ .roleTypeIn(pageVO.getRoleTypes()).groupCodeEq(pageVO.getGroupCode()).updateUserEq(pageVO.getUpdateUser())
|
|
|
+ .validEq(pageVO.getValid()).builderQueryWrapper();
|
|
|
queryWrapper.orderByDesc(SaasRole::getUpdateTime); // 默认更新时间降序
|
|
|
Page<SaasRole> pageList = this.saasRoleService.page(page, queryWrapper);
|
|
|
if (pageList == null || CollectionUtil.isEmpty(pageList.getRecords())) {
|