| | |
| | | /** |
| | | * 设为管理 |
| | | */ |
| | | @ApiOperation(value = "修改状态") |
| | | @ApiOperation(value = "设为管理员") |
| | | @PostMapping("setadmin") |
| | | public ResultBody setAdmin(@RequestBody Map<String, Object> params) { |
| | | return sysDoctorService.setAdminDoctor(params); |
| | | } |
| | | |
| | | /** |
| | | * 统计医生的数量 |
| | | * @param datatype 业务类型 |
| | | * 0 自注册医生 |
| | | * 1 签约医生 |
| | | * 2 医答医生 |
| | | * 3 C端医生 |
| | | * 4 H端医生 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "统计医生的数量") |
| | | @GetMapping("chartDoctor") |
| | | public ResultBody chartDoctor(int datatype) { |
| | | int counts= sysDoctorService.chartDoctor(datatype); |
| | | return ResultBody.ok().data(counts).msg("数据获取成功"); |
| | | } |
| | | } |