| | |
| | | @ApiOperation(value = "根据用户名查询用户实体") |
| | | @Cacheable(value = "user", key = "#username") |
| | | public SysUser selectByUsername(@PathVariable String username) { |
| | | |
| | | return appUserService.selectByUsername(username); |
| | | } |
| | | |
| | |
| | | */ |
| | | @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); |
| | | } |
| | | |
| | |
| | | |
| | | return appUserService.findAppointUsers(Integer.parseInt(type)); |
| | | } |
| | | /** |
| | | * 检查该手机号是否注册 false 未注册 true已经注册 |
| | | */ |
| | | @GetMapping("users/isRegUser") |
| | | public ResultBody isRegUser(String userTel) { |
| | | |
| | | if(appUserService.phoneIsUsed(userTel)) |
| | | { |
| | | return ResultBody.ok().data(true); |
| | | } |
| | | return ResultBody.failed().data(false); |
| | | } |
| | | } |