数据字典根据DICT_SORT升序排列

This commit is contained in:
dataprince 2023-11-29 09:53:46 +08:00
parent 7e4fb37ab6
commit 713b370d42

View File

@ -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);
} }