|
@ -1,9 +1,7 @@
|
|
|
package com.yihu.wlyy.web.patient.specialist;
|
|
|
|
|
|
import com.yihu.wlyy.entity.specialist.PatientDiseaseServer;
|
|
|
import com.yihu.wlyy.entity.specialist.TeamDiseaseRelation;
|
|
|
import com.yihu.wlyy.service.specialist.SpecialistService;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import com.yihu.wlyy.web.WeixinBaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
@ -14,16 +12,13 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* Created by Trick on 2018/7/3.
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/patient/specialist", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
@Api(description = "患者端-专病管理")
|
|
|
public class PatientSpecialistController extends BaseController{
|
|
|
public class PatientSpecialistController extends WeixinBaseController{
|
|
|
|
|
|
@Autowired
|
|
|
private SpecialistService specialistService;
|
|
@ -81,7 +76,7 @@ public class PatientSpecialistController extends BaseController{
|
|
|
@ApiOperation(value = "医生审核")
|
|
|
public String agreeSpecialistTeam(String state,String relationCode,String remark,Long mesId)throws Exception {
|
|
|
try {
|
|
|
return write(200, "获取成功", "data", specialistService.agreeSpecialistTeam( state, relationCode, remark, mesId));
|
|
|
return write(200, "获取成功", "data", specialistService.agreeSpecialistTeam(getAccessToken(),state, relationCode, remark, mesId));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "请求失败");
|