| | |
| | | import org.springblade.modules.grid.service.IGridService; |
| | | import org.springblade.modules.grid.vo.GridVO; |
| | | import org.springblade.modules.property.service.IPropertyDistrictUserService; |
| | | import org.springblade.modules.system.entity.Dept; |
| | | import org.springblade.modules.system.service.IDeptService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | @Autowired |
| | | private IGridService gridService; |
| | | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | @Override |
| | | public IPage<DistrictVO> selectDistrictPage(IPage<DistrictVO> page, DistrictVO district) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null!=dept){ |
| | | district.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | List<DistrictVO> districtVOS = baseMapper.selectDistrictPage(page, district); |
| | | // 遍历 |
| | | for (DistrictVO districtVO : districtVOS) { |
| | |
| | | */ |
| | | @Override |
| | | public Object getDistrictTree(DistrictVO district) { |
| | | String userRole = AuthUtil.getUserRole(); |
| | | // String userRole = AuthUtil.getUserRole(); |
| | | // if (userRole.equals("wygly")) { |
| | | // IPropertyDistrictUserService bean = SpringUtils.getBean(IPropertyDistrictUserService.class); |
| | | // List<String> strings = bean.selectPropertyDistrictByUserId(AuthUtil.getUserId()); |