|
@ -175,6 +175,22 @@ public class AdminTeamController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/team/{doctor_code}/team", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取团队长团队")
|
|
|
@ResponseBody
|
|
|
public String getLeaderTeam(@PathVariable("doctor_code") String doctorCode) {
|
|
|
try {
|
|
|
AdminTeam team = teamService.findByLeaderCode(doctorCode);
|
|
|
if(team == null){
|
|
|
return error(-2, "没有找到数据!");
|
|
|
}
|
|
|
return write(200, "OK", "data", new JSONObject(team));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/team/{doctor_code}/teams", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取医生团队列表")
|
|
|
public String getDoctorTeams(@PathVariable("doctor_code") String doctorCode) {
|