mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
修复字典数据(system_dict_data)查询操作有问题,会查出不属于本字典类型(dict_type)的数据
This commit is contained in:
parent
3afa09bd98
commit
2c3aaa8d7e
@ -38,14 +38,15 @@ public interface DictDataMapper extends BaseMapperX<DictDataDO> {
|
||||
default PageResult<DictDataDO> selectPage(DictDataPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DictDataDO>()
|
||||
.likeIfPresent(DictDataDO::getLabel, reqVO.getLabel())
|
||||
.likeIfPresent(DictDataDO::getDictType, reqVO.getDictType())
|
||||
.eqIfPresent(DictDataDO::getDictType, reqVO.getDictType())
|
||||
.eqIfPresent(DictDataDO::getStatus, reqVO.getStatus())
|
||||
.orderByDesc(Arrays.asList(DictDataDO::getDictType, DictDataDO::getSort)));
|
||||
}
|
||||
|
||||
default List<DictDataDO> selectList(DictDataExportReqVO reqVO) {
|
||||
return selectList(new LambdaQueryWrapperX<DictDataDO>().likeIfPresent(DictDataDO::getLabel, reqVO.getLabel())
|
||||
.likeIfPresent(DictDataDO::getDictType, reqVO.getDictType())
|
||||
return selectList(new LambdaQueryWrapperX<DictDataDO>()
|
||||
.likeIfPresent(DictDataDO::getLabel, reqVO.getLabel())
|
||||
.eqIfPresent(DictDataDO::getDictType, reqVO.getDictType())
|
||||
.eqIfPresent(DictDataDO::getStatus, reqVO.getStatus()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user