|
@ -10,7 +10,6 @@ import com.yihu.wlyy.web.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.apache.commons.beanutils.BeanUtils;
|
|
|
import org.json.JSONArray;
|
|
|
import org.json.JSONObject;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@ -181,6 +180,19 @@ public class AdminTeamController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/team/members/{patient_code}", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "根据患者代码,获取医生团队信息")
|
|
|
public String getTeam(@PathVariable("patient_code") String patientCode) {
|
|
|
try {
|
|
|
Map<String, Object> team = teamService.getPatientSigningTeam(patientCode);
|
|
|
|
|
|
return write(200, "OK", "data", new JSONObject(team));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/teams/{team_id}/signing/count", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取团队医生的队内签约数量")
|
|
|
public String getDoctorSignPatientCount(@PathVariable("team_id") long teamId) {
|