Commit ae5e9e22d28e8418db73f005fb95918ecda7090e

Authored by gengxiaokai
1 parent 5ac8ee76d3

秦皇岛冠新公卫接口

Showing 1 changed file with 6 additions and 4 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/QhdJbgwController.java View file @ ae5e9e2
... ... @@ -4,7 +4,9 @@
4 4 import org.apache.commons.lang.StringUtils;
5 5 import org.springframework.beans.factory.annotation.Autowired;
6 6 import org.springframework.stereotype.Controller;
  7 +import org.springframework.web.bind.annotation.RequestBody;
7 8 import org.springframework.web.bind.annotation.RequestMapping;
  9 +import org.springframework.web.bind.annotation.RequestMethod;
8 10 import org.springframework.web.bind.annotation.ResponseBody;
9 11  
10 12 import java.util.List;
11 13  
... ... @@ -20,11 +22,11 @@
20 22 private QhdJbgwInterface qhdJbgwInterface;
21 23  
22 24  
23   - @RequestMapping(value = "/qhd/ycdj")
  25 + @RequestMapping(method = RequestMethod.POST,value = "/qhd/ycdj")
24 26 @ResponseBody
25   - public List<Map<String,String>> qhdYcdj(String startDate,String endDate){
26   - if(StringUtils.isNotEmpty(startDate) && StringUtils.isNotEmpty(endDate)){
27   - return qhdJbgwInterface.getPatient(startDate,endDate);
  27 + public List<Map<String,String>> qhdYcdj(@RequestBody Map<String,String> map){
  28 + if(StringUtils.isNotEmpty(map.get("startDate")) && StringUtils.isNotEmpty(map.get("endDate"))){
  29 + return qhdJbgwInterface.getPatient(map.get("startDate"),map.get("endDate"));
28 30 }
29 31 return null;
30 32 }