| | |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | /** |
| | | * 判断用户名是否管理员 |
| | | */ |
| | | @ApiOperation(value = "判断用户名是否管理员") |
| | | @GetMapping("/userName") |
| | | public ResultBody findById(@RequestParam String userName) { |
| | | return sysDoctorService.userIsAdmin(userName); |
| | | } |
| | | /** |
| | | * 根据 Map 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | |
| | | } |
| | | return ResultBody.failed().msg(errMsg.toString()); |
| | | } else { |
| | | boolean v= sysDoctorService.saveOrUpdateSer(sysDoctor,request,user); |
| | | |
| | | if(v) { |
| | | return ResultBody.ok().data(sysDoctor).msg("保存成功"); |
| | | } |
| | | else { |
| | | return ResultBody.failed().msg("保存失败"); |
| | | } |
| | | return sysDoctorService.saveOrUpdateSer(sysDoctor,request,user); |
| | | } |
| | | } |
| | | |