|
@ -5,6 +5,7 @@ import java.util.Map;
|
|
|
|
|
|
import com.yihu.wlyy.service.app.sign.FamilyContractService;
|
|
import com.yihu.wlyy.service.app.sign.FamilyContractService;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
import org.json.JSONObject;
|
|
@ -22,7 +23,7 @@ import com.yihu.wlyy.util.CommonUtil;
|
|
import com.yihu.wlyy.web.BaseController;
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
|
|
|
@Controller
|
|
@Controller
|
|
@RequestMapping(value = "/doctor/team",method = {RequestMethod.GET,RequestMethod.POST})
|
|
|
|
|
|
@RequestMapping(value = "/doctor/team")
|
|
@Api(description = "医生签约团队")
|
|
@Api(description = "医生签约团队")
|
|
public class SignTeamController extends BaseController {
|
|
public class SignTeamController extends BaseController {
|
|
|
|
|
|
@ -43,6 +44,7 @@ public class SignTeamController extends BaseController {
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "teamListCount", method = RequestMethod.GET)
|
|
@RequestMapping(value = "teamListCount", method = RequestMethod.GET)
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
|
@ApiOperation("查询医生所有的团队數目")
|
|
public String teamListCount() {
|
|
public String teamListCount() {
|
|
try {
|
|
try {
|
|
JSONObject json = new JSONObject();
|
|
JSONObject json = new JSONObject();
|
|
@ -63,6 +65,7 @@ public class SignTeamController extends BaseController {
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "teamList", method = RequestMethod.GET)
|
|
@RequestMapping(value = "teamList", method = RequestMethod.GET)
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
|
@ApiOperation("查询醫生所有的团队")
|
|
public String teamList() {
|
|
public String teamList() {
|
|
try {
|
|
try {
|
|
JSONObject json = new JSONObject();
|
|
JSONObject json = new JSONObject();
|
|
@ -82,8 +85,9 @@ public class SignTeamController extends BaseController {
|
|
* @param team 行政团队标识
|
|
* @param team 行政团队标识
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "info")
|
|
|
|
|
|
@RequestMapping(value = "info",method = {RequestMethod.POST,RequestMethod.GET})
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
|
@ApiOperation("查询指定医生的基本信息接口")
|
|
public String info(@RequestParam(required = true, value = "doctor") String doctor,
|
|
public String info(@RequestParam(required = true, value = "doctor") String doctor,
|
|
@RequestParam(required = false, value = "team") String team) {
|
|
@RequestParam(required = false, value = "team") String team) {
|
|
try {
|
|
try {
|
|
@ -141,6 +145,7 @@ public class SignTeamController extends BaseController {
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "doctors", method = RequestMethod.GET)
|
|
@RequestMapping(value = "doctors", method = RequestMethod.GET)
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
|
@ApiOperation("查询团队中健康管理师或全科医生")
|
|
public String getTeamDoctors(
|
|
public String getTeamDoctors(
|
|
String type,
|
|
String type,
|
|
Integer page,
|
|
Integer page,
|
|
@ -165,6 +170,7 @@ public class SignTeamController extends BaseController {
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "teamdoctors", method = RequestMethod.GET)
|
|
@RequestMapping(value = "teamdoctors", method = RequestMethod.GET)
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
|
@ApiOperation("查询医生团队中的某个类别医生")
|
|
public String getTeamDoctorsByType(String type, Integer page,
|
|
public String getTeamDoctorsByType(String type, Integer page,
|
|
Integer pageSize) {
|
|
Integer pageSize) {
|
|
try {
|
|
try {
|
|
@ -183,6 +189,7 @@ public class SignTeamController extends BaseController {
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "teamDoctorsAndAdminTeamDoctors", method = RequestMethod.GET)
|
|
@RequestMapping(value = "teamDoctorsAndAdminTeamDoctors", method = RequestMethod.GET)
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
|
@ApiOperation("求助页面需要的医生查找")
|
|
public String getTeamDoctorsAndAdminTeamDoctors(Long teamId) {
|
|
public String getTeamDoctorsAndAdminTeamDoctors(Long teamId) {
|
|
try {
|
|
try {
|
|
Map<String, List<Doctor>> doctors = drHealthTeamService.getTeamDoctorsAndAdminTeamDoctors("64de930c-5b15-11e6-8344-fa163e8aee56", teamId);
|
|
Map<String, List<Doctor>> doctors = drHealthTeamService.getTeamDoctorsAndAdminTeamDoctors("64de930c-5b15-11e6-8344-fa163e8aee56", teamId);
|