|
@@ -58,7 +58,7 @@ public class DictInfoServiceImpl extends ServiceImpl<DictInfoMapper, DictInfo> i
|
|
|
|
|
|
@Override
|
|
|
public IPage<DictInfoVO> parentList(Map<String, Object> dict, Query query) {
|
|
|
- IPage<DictInfo> page = this.page(Condition.getPage(query), Condition.getQueryWrapper(dict, DictInfo.class).lambda().eq(DictInfo::getParentId, CommonConstant.TOP_PARENT_ID).eq(DictInfo::getType, Integer.parseInt(dict.get("type") + "")).orderByAsc(DictInfo::getSort));
|
|
|
+ IPage<DictInfo> page = this.page(Condition.getPage(query), Condition.getQueryWrapper(dict, DictInfo.class).lambda().eq(DictInfo::getParentId, CommonConstant.TOP_PARENT_ID).eq(DictInfo::getType, Integer.parseInt(dict.get("type") + "")).orderByAsc(DictInfo::getSort).orderByDesc(DictInfo::getId));
|
|
|
return DictInfoWrapper.build().pageVO(page);
|
|
|
}
|
|
|
|