查询区域只返回id,code,name

pull/57/head
Liyanjun 2023-07-05 18:40:09 +08:00
parent 9ca043624f
commit b0e0cc5e37
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ public class AreaServiceImpl extends ServiceImpl<AreaMapper, Area> implements Ar
if(ObjectUtil.isEmpty(parentId)) {
parentId=TreeConstants.DEFAULT_PARENT_ID.toString();
}
queryWrapper.select(Area::getAreaId,Area::getAreaName,Area::getAreaCode);
queryWrapper.eq(Area::getParentId, parentId);
queryWrapper.orderByAsc(Area::getAreaSort);
return this.list(queryWrapper);