|
@ -265,15 +265,25 @@ public class AdminTeamController extends BaseController {
|
|
|
@ApiOperation(value = "获取医生团队列表")
|
|
|
public String getDoctorTeams(@PathVariable("doctor_code") String doctorCode) {
|
|
|
try {
|
|
|
// List<AdminTeam> teamList = teamService.getDoctorTeams(doctorCode);
|
|
|
// return write(200, "OK", "data", new JSONArray(teamList));
|
|
|
return write(200, "OK", "data", teamService.getAdminTeams(doctorCode));
|
|
|
List<AdminTeam> teamList = teamService.getDoctorTeams(doctorCode);
|
|
|
return write(200, "OK", "data", new JSONArray(teamList));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/team/{doctor_code}/teamsLimit", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取医生团队列表(获取基位签约上线)")
|
|
|
public String getDoctorTeamLimit(@PathVariable("doctor_code") String doctorCode){
|
|
|
try {
|
|
|
return write(200, "OK", "data", teamService.getAdminTeams(doctorCode));
|
|
|
}catch (Exception e){
|
|
|
error(e);
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/team/members/{patient_code}", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "根据患者代码,获取医生团队信息")
|
|
|
public String getTeam(@PathVariable("patient_code") String patientCode) {
|