| | |
| | | */ |
| | | @ApiOperation(value = "用户查询列表") |
| | | @GetMapping("/users/HDoctorusers") |
| | | public ResultBody hospitalDoctorList(@RequestParam Long hospitalId, Long departmentId) { |
| | | public ResultBody hospitalDoctorList(@RequestParam Long hospitalId, Long departmentId,boolean isIncluddel) { |
| | | if (StringUtils.isNotBlank(hospitalId.toString()) && StringUtils.isNotBlank(departmentId.toString())) { |
| | | return appUserService.hospitalDoctorList(hospitalId, departmentId); |
| | | return appUserService.hospitalDoctorList(hospitalId, departmentId,isIncluddel); |
| | | } else { |
| | | return ResultBody.failed("查询参数有误"); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PutMapping(value = "/users/updateusertel") |
| | | public ResultBody updateUserTel(@RequestParam Map<String, Object> params) { |
| | | public ResultBody updateUserTel(@RequestParam Map<String, Object> params,@LoginUser SysUser sysUser) { |
| | | String oldTel = MapUtils.getString(params, "oldTel"); |
| | | if (oldTel==null){ |
| | | return ResultBody.failed("请输入原账号"); |
| | | } |
| | | if(!sysUser.getUsername().equals(oldTel)){ |
| | | return ResultBody.failed("请输入正确的原账号"); |
| | | } |
| | | return appUserService.updateUserTel(params); |
| | | } |
| | | |