数据字典根据DICT_SORT升序排列
This commit is contained in:
parent
7e4fb37ab6
commit
713b370d42
@ -148,7 +148,7 @@ public class SysDictDataServiceImpl extends BaseServiceImpl<SysDictDataMapper, S
|
|||||||
@Cacheable(cacheNames = CacheNames.SYS_DICT, key = "#dictType")
|
@Cacheable(cacheNames = CacheNames.SYS_DICT, key = "#dictType")
|
||||||
@Override
|
@Override
|
||||||
public List<SysDictDataVo> selectDictDataByType(String dictType){
|
public List<SysDictDataVo> selectDictDataByType(String dictType){
|
||||||
QueryWrapper queryWrapper=query().and(SYS_DICT_DATA.DICT_TYPE.eq(dictType)).orderBy(SYS_DICT_DATA.DICT_CODE.desc());
|
QueryWrapper queryWrapper=query().and(SYS_DICT_DATA.DICT_TYPE.eq(dictType)).orderBy(SYS_DICT_DATA.DICT_SORT.asc());
|
||||||
return this.listAs(queryWrapper, SysDictDataVo.class);
|
return this.listAs(queryWrapper, SysDictDataVo.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user