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