| | |
| | | import com.kidgrow.usercenter.model.SysDoctor; |
| | | import com.kidgrow.usercenter.service.ISysDoctorService; |
| | | import com.kidgrow.usercenter.vo.SysDoctorDto; |
| | | import com.kidgrow.usercenter.vo.SysDoctorVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * |
| | | * @Description: |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-02 18:32:36 <br> |
| | |
| | | SysDoctor model = sysDoctorService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 判断用户名是否管理员 |
| | | */ |
| | |
| | | public ResultBody findById(@RequestParam String userName) { |
| | | return sysDoctorService.userIsAdmin(userName); |
| | | } |
| | | |
| | | /** |
| | | * 根据 Map 查询 |
| | | */ |
| | |
| | | List<SysDoctor> models = sysDoctorService.findByMap(map); |
| | | return ResultBody.ok().data(models).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据SysDoctor当做查询条件进行查询 |
| | | */ |
| | |
| | | boolean v= sysDoctorService.delete(id); |
| | | if(v) { |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | else { |
| | | } else { |
| | | return ResultBody.failed().msg("删除失败"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 状态 |
| | | */ |
| | |
| | | } |
| | | return sysDoctorService.enable(params); |
| | | } |
| | | |
| | | /** |
| | | * 设为管理 |
| | | */ |
| | |
| | | public ResultBody setAdmin(@RequestBody Map<String, Object> params) { |
| | | return sysDoctorService.setAdminDoctor(params); |
| | | } |
| | | |
| | | /** |
| | | * 统计医生的数量 |
| | | * |
| | | * @param datatype 业务类型 |
| | | * 0 自注册医生 |
| | | * 1 签约医生 |
| | |
| | | int counts= sysDoctorService.chartDoctor(datatype); |
| | | return ResultBody.ok().data(counts).msg("数据获取成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据SysDoctor当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据SysDoctor当做查询条件进行查询") |
| | | @PostMapping("/queryDoctorToC") |
| | | public ResultBody queryDoctorToC(@RequestBody Map<String, Object> sysDoctor) { |
| | | List<SysDoctor> model = sysDoctorService.queryDoctorByC(sysDoctor); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | } |