|
@ -20,6 +20,8 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.json.JSONArray;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.MediaType;
|
|
@ -47,7 +49,7 @@ public class GcDoctorController extends BaseController {
|
|
|
@Autowired
|
|
|
private FamilyContractService familyContractService;
|
|
|
|
|
|
|
|
|
private Logger logger = LoggerFactory.getLogger(GcDoctorController.class);
|
|
|
@RequestMapping(value = "/doctor", method = RequestMethod.GET)
|
|
|
@ApiOperation("根据医生code查询医生信息")
|
|
|
public ResultOneModel<DoctorModel> doctor(
|
|
@ -106,7 +108,9 @@ public class GcDoctorController extends BaseController {
|
|
|
@ApiOperation("获取医生所属团队")
|
|
|
public ResultListModel<AdminTeamModel> doctors(
|
|
|
) {
|
|
|
List<AdminTeam> teams = adminTeamService.getDoctorTeams(getUID());
|
|
|
logger.info("getUID:"+getUID());
|
|
|
System.out.println("getUID:"+getUID());
|
|
|
List<AdminTeam> teams = adminTeamService.getDoctorTeams(getUID());//hxmD201703150222"
|
|
|
List<AdminTeamModel> adminTeamModelList = new ArrayList<>();
|
|
|
if (teams != null && teams.size() > 0) {
|
|
|
teams.stream().forEach(one -> {
|