linwei
2024-01-24 06cfb877e693d328fdcaa497f0f2a6bb14e17435
src/main/java/org/springblade/modules/system/controller/UserController.java
@@ -182,7 +182,7 @@
   @PostMapping("/submit")
   @ApiOperationSupport(order = 4)
   @ApiOperation(value = "新增或修改", notes = "传入User")
   @PreAuth(RoleConstant.HAS_ROLE_ADMIN)
   @PreAuth("hasAnyRole('administrator', 'admin','wygly')")
   public R submit(@Valid @RequestBody User user) {
      CacheUtil.clear(USER_CACHE);
      return R.status(userService.submit(user));
@@ -390,9 +390,37 @@
    * 修改
    */
   @GetMapping("/getUserInfoByCode")
   @ApiOperation(value = "查询人员", notes = "houseCode")
   public R getUserInfoByCode(@RequestParam("houseCode") String houseCode, @RequestParam(value = "type",defaultValue = "2") String type) {
      return R.data(userService.getUserInfoByCode(houseCode,type));
   @ApiOperation(value = "查询物业人员/网格人员", notes = "houseCode")
   public R getUserInfoByCode(@RequestParam("houseCode") String houseCode, @RequestParam(value = "type", defaultValue = "2") String type) {
      return R.data(userService.getUserInfoByCode(houseCode, type));
   }
   /**
    * 通过小区id查询物业人员/网格人员
    */
   @GetMapping("/getUserInfoByDistrictId")
   @ApiOperation(value = "查询物业人员/网格人员", notes = "houseCode")
   public R getUserInfoByDistrictId(@RequestParam("districtId") String districtId, @RequestParam(value = "building", required = false) String building) {
      return R.data(userService.getUserInfoByDistrictId(districtId, building));
   }
   /**
    * 通过机构查询物业公司人员
    */
   @GetMapping("/getUserInfoByPropertyCompanyId")
   @ApiOperation(value = "通过机构查询物业公司人员", notes = "propertyCompanyId")
   public R getUserInfoByPropertyId(@RequestParam("propertyCompanyId") String propertyCompanyId) {
      return R.data(userService.getUserInfoByPropertyId(propertyCompanyId));
   }
   /**
    * 处理漏绑定的user_dept
    */
   @GetMapping("/handleUserDept")
   public R handleUserDept() {
      return R.data(userService.handleUserDept());
   }
}