Commit 0fd4c7441d0cbb0a871e1579fa5f995a385d5c6c

Authored by gengxiaokai
1 parent 6fe6161eb9

滦平分娩接口

Showing 3 changed files with 65 additions and 5 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/lpfy/IlpFyFmService.java View file @ 0fd4c74
  1 +package com.lyms.hospitalapi.lpfy;
  2 +
  3 +/**
  4 + * Created by Administrator on 2018/1/10.
  5 + */
  6 +public interface IlpFyFmService {
  7 +
  8 + public void queryFmPatient(String start,String end,String phone);
  9 +
  10 +}
platform-operate-api/src/main/java/com/lyms/hospitalapi/lpfy/LpfyFmService.java View file @ 0fd4c74
... ... @@ -34,7 +34,7 @@
34 34 * Created by Administrator on 2018/1/4.
35 35 */
36 36 @Service("lpfyFmService")
37   -public class LpfyFmService {
  37 +public class LpfyFmService implements IlpFyFmService {
38 38  
39 39 @Autowired
40 40 private PatientsService patientsService;
... ... @@ -108,6 +108,7 @@
108 108 }
109 109  
110 110  
  111 +
111 112 public void queryFmPatient(String start,String end,String phone) {
112 113  
113 114 String cloumns = " ID as ID,\n" +
... ... @@ -418,7 +419,7 @@
418 419 }
419 420 }else{
420 421 a=1;
421   - //乐陵服务器有分娩记录,但是在这边系统没有对应孕妇 取分娩信息建档儿童数据
  422 + //滦平服务器有分娩记录,但是在这边系统没有对应孕妇 取分娩信息建档儿童数据
422 423 List<String> names = buildBabyName(allList);
423 424  
424 425 Date dateTime = fmt.parse(allFm.getBABY_DELIVERY_TIME());
425 426  
... ... @@ -483,12 +484,10 @@
483 484 }
484 485 }
485 486 }
486   - DbUtils.closeQuietly(conn);
  487 +
487 488 } catch (Exception e) {
488 489 ExceptionUtils.catchException(e, "sql执行异常");
489 490 e.printStackTrace();
490   - } finally {
491   - DbUtils.closeQuietly(conn);
492 491 }
493 492 }
494 493  
... ... @@ -660,6 +659,21 @@
660 659 e.printStackTrace();
661 660 }
662 661 }
  662 +
  663 + public class saveFm implements Runnable{
  664 +
  665 + private List<Fm> list;
  666 +
  667 + public saveFm(List<Fm> list){
  668 + this.list=list;
  669 + }
  670 +
  671 + public void run(){
  672 +
  673 + }
  674 + }
  675 +
  676 +
663 677  
664 678 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/FmController.java View file @ 0fd4c74
  1 +package com.lyms.platform.operate.web.controller;
  2 +
  3 +import com.lyms.hospitalapi.dzfy.Fm;
  4 +import com.lyms.hospitalapi.lpfy.IlpFyFmService;
  5 +import com.lyms.platform.common.result.BaseResponse;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.stereotype.Controller;
  8 +import org.springframework.web.bind.annotation.RequestBody;
  9 +import org.springframework.web.bind.annotation.RequestMapping;
  10 +import org.springframework.web.bind.annotation.RequestMethod;
  11 +import org.springframework.web.bind.annotation.ResponseBody;
  12 +
  13 +import javax.servlet.http.HttpServletRequest;
  14 +import java.util.List;
  15 +
  16 +/**
  17 + * Created by Administrator on 2018/1/10.
  18 + */
  19 +@Controller
  20 +public class FmController {
  21 +
  22 + @Autowired
  23 + private IlpFyFmService lpfyFmService;
  24 +
  25 + @RequestMapping(method = RequestMethod.POST, value = "/saveFmData")
  26 + @ResponseBody
  27 + public BaseResponse saveLisData(@RequestBody List<Fm> models,
  28 + HttpServletRequest httpServletRequest){
  29 +
  30 + //lpfyFmService.saveFmData(models);
  31 +
  32 + return null;
  33 + }
  34 +
  35 +
  36 +}