mirror of https://gitee.com/stylefeng/roses
查询区域只返回id,code,name
parent
9ca043624f
commit
b0e0cc5e37
|
@ -73,6 +73,7 @@ public class AreaServiceImpl extends ServiceImpl<AreaMapper, Area> implements Ar
|
||||||
if(ObjectUtil.isEmpty(parentId)) {
|
if(ObjectUtil.isEmpty(parentId)) {
|
||||||
parentId=TreeConstants.DEFAULT_PARENT_ID.toString();
|
parentId=TreeConstants.DEFAULT_PARENT_ID.toString();
|
||||||
}
|
}
|
||||||
|
queryWrapper.select(Area::getAreaId,Area::getAreaName,Area::getAreaCode);
|
||||||
queryWrapper.eq(Area::getParentId, parentId);
|
queryWrapper.eq(Area::getParentId, parentId);
|
||||||
queryWrapper.orderByAsc(Area::getAreaSort);
|
queryWrapper.orderByAsc(Area::getAreaSort);
|
||||||
return this.list(queryWrapper);
|
return this.list(queryWrapper);
|
||||||
|
|
Loading…
Reference in New Issue