فهرست منبع

去除POST请求限制

8 سال پیش
والد
کامیت
1d17c6d038
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      patient-co-wlyy/src/main/java/com/yihu/wlyy/web/doctor/team/SignTeamController.java

+ 3 - 2
patient-co-wlyy/src/main/java/com/yihu/wlyy/web/doctor/team/SignTeamController.java

@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.yihu.wlyy.entity.doctor.profile.Doctor;
@ -75,9 +76,9 @@ public class SignTeamController extends BaseController {
     * @param doctor 医生标识
     * @return
     */
    @RequestMapping(value = "info", method = RequestMethod.GET)
    @RequestMapping(value = "info")
    @ResponseBody
    public String info(String doctor) {
    public String info(@RequestParam(required = true,value = "doctor")String doctor) {
        try {
            Doctor temp = doctorInfoService.findDoctorByCode(doctor);
            if (temp != null) {