| | |
| | | |
| | | /** |
| | | * 获取用户信息 |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping("/getUserInfo") |
| | | public R getUserInfo(){ |
| | | public R getUserInfo() { |
| | | //根据保安员编码查询保安员信息 |
| | | return R.data(userService.getUserInfo(AuthUtil.getUserId())); |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 通过小区id查询物业人员/网格人员 |
| | | * 通过小区id查询用户 |
| | | */ |
| | | @GetMapping("/getUserInfoByDistrictIds") |
| | | @ApiOperation(value = "查询物业人员By小区id", notes = "houseCode") |
| | | public R getUserInfoByDistrictIds(@RequestParam("districtIds") String districtIds) { |
| | | return R.data(userService.getUserInfoByDistrictIds(districtIds)); |
| | | @ApiOperation(value = "通过小区id查询用户") |
| | | public R<IPage<UserVO>> getUserInfoByDistrictIds(@RequestParam("districtIds") String districtIds |
| | | , @RequestParam(value = "building", required = false) String building |
| | | , @RequestParam(value = "unit", required = false) String unit |
| | | , @RequestParam(value = "name", required = false) String name |
| | | , Query query) { |
| | | IPage<User> pages = userService.getUserInfoByDistrictIds(districtIds, building, unit, name, Condition.getPage(query)); |
| | | return R.data(UserWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | @GetMapping("/getUserInfoByPropertyCompanyId") |
| | | @ApiOperation(value = "通过机构查询物业公司人员", notes = "propertyCompanyId") |
| | | public R getUserInfoByPropertyId(@RequestParam("propertyCompanyId") String propertyCompanyId,@RequestParam("roleId") String roleId) { |
| | | return R.data(userService.getUserInfoByPropertyId(propertyCompanyId,roleId)); |
| | | public R getUserInfoByPropertyId(@RequestParam("propertyCompanyId") String propertyCompanyId, @RequestParam("roleId") String roleId) { |
| | | return R.data(userService.getUserInfoByPropertyId(propertyCompanyId, roleId)); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @GetMapping("/getPoliceUser") |
| | | @ApiOperation(value = "通过经纬度查询最近的民警人员") |
| | | public R getPoliceUser(@RequestParam("longitude") String longitude, @RequestParam(value = "latitude") String latitude,@RequestParam(value = "houseCode",required = false) String houseCode) { |
| | | return R.data(userService.getPoliceUser(longitude, latitude,houseCode)); |
| | | public R getPoliceUser(@RequestParam("longitude") String longitude, @RequestParam(value = "latitude") String latitude, @RequestParam(value = "houseCode", required = false) String houseCode) { |
| | | return R.data(userService.getPoliceUser(longitude, latitude, houseCode)); |
| | | } |
| | | |
| | | } |