Commit 00be0180 by jianan

修改日程查询接口传参

parent 6d77130e
...@@ -31,6 +31,8 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -31,6 +31,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.Map;
@Controller @Controller
@RestController @RestController
@RequestMapping("/practitioner") @RequestMapping("/practitioner")
...@@ -517,12 +519,13 @@ public class PractitionerController { ...@@ -517,12 +519,13 @@ public class PractitionerController {
/** /**
* 根据经纪人id查询日程列表 * 根据经纪人id查询日程列表
* @param practitionerId 经纪人id * @param params
* @param trackDate 查询日期
* @return * @return
*/ */
@RequestMapping("/queryScheduleTrackList") @RequestMapping("/queryScheduleTrackList")
public Object queryScheduleTrackList(@RequestParam("practitionerId")Long practitionerId, @RequestParam("trackDate")String trackDate){ public Object queryScheduleTrackList(@RequestBody Map<String, String> params){
Long practitionerId = Long.parseLong(params.get("practitionerId")) ;
String trackDate = (String) params.get("trackDate");
JsonResult result = scheduleTrackService.queryScheduleTrackList(practitionerId, trackDate); JsonResult result = scheduleTrackService.queryScheduleTrackList(practitionerId, trackDate);
return result; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment