| | |
| | | @Service |
| | | public class PropertyCapitalApplyServiceImpl extends ServiceImpl<PropertyCapitalApplyMapper, PropertyCapitalApplyEntity> implements IPropertyCapitalApplyService { |
| | | |
| | | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | @Override |
| | | public IPage<PropertyCapitalApplyVO> selectPropertyCapitalApplyPage(IPage<PropertyCapitalApplyVO> page, PropertyCapitalApplyVO propertyCapitalApply) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null!=dept){ |
| | | propertyCapitalApply.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | // 判断角色,物业角色只能查询当前小区的 |
| | | |
| | | String userRole = AuthUtil.getUserRole(); |
| | | if (userRole.contains("wygly")) { |
| | | IPropertyDistrictUserService bean = SpringUtils.getBean(IPropertyDistrictUserService.class); |
| | | List<String> strings = bean.selectPropertyDistrictByUserId(AuthUtil.getUserId()); |
| | | propertyCapitalApply.setDistrictIdList(strings); |
| | | } |
| | | |
| | | |
| | | return page.setRecords(baseMapper.selectPropertyCapitalApplyPage(page, propertyCapitalApply)); |
| | | } |
| | | |