| | |
| | | package com.ycl.service.region.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.entity.region.SccgRegion; |
| | |
| | | public IPage<SccgRegion> list(SccgRegion sccgRegion) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<SccgRegion> getChildren(Long parentId) { |
| | | LambdaQueryWrapper<SccgRegion> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(SccgRegion::getParentId, parentId); |
| | | List<SccgRegion> regions = baseMapper.selectList(wrapper); |
| | | return regions; |
| | | } |
| | | } |