From 6d083b4d40b6df11ae6b946ac5d3a57878001a37 Mon Sep 17 00:00:00 2001 From: liquanyu Date: Sun, 31 Jul 2016 15:12:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=AD=95=E5=A6=87=E5=9F=BA?= =?UTF-8?q?=E6=9C=AC=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/BabyBookbuildingController.java | 14 +++++++++++++ .../operate/web/facade/BabyBookbuildingFacade.java | 24 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyBookbuildingController.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyBookbuildingController.java index 858d8c5..971579a 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyBookbuildingController.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyBookbuildingController.java @@ -209,6 +209,8 @@ public class BabyBookbuildingController extends BaseController { return babyBookbuildingFacade.sendBabyGuideSms(request); } + + /** * 获取小孩电子病历 * @@ -237,4 +239,16 @@ public class BabyBookbuildingController extends BaseController { return babyBookbuildingFacade.getBabyBase(babyId); } + + + /** + * 查询孕妇基本信息通过身份证号码 + * @param cardNo + * @return + */ + @RequestMapping(method = RequestMethod.GET, value = "/queryPatientBaseInfo") + @ResponseBody + public BaseResponse queryYunBaseInfo(@RequestParam(value = "cardNo", required = true) String cardNo) { + return babyBookbuildingFacade.queryYunBaseInfo(cardNo); + } } \ No newline at end of file diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java index c7b8fd0..76a6780 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java @@ -1150,4 +1150,28 @@ public class BabyBookbuildingFacade { } + /** + * 通过身份证号码查询孕妇的基本信息 + * @param cardNo + * @return + */ + public BaseResponse queryYunBaseInfo(String cardNo) { + PatientsQuery patientsQuery = new PatientsQuery(); + patientsQuery.setYn(YnEnums.YES.getId()); + Patients obj = null; + if (!StringUtils.isEmpty(cardNo)); + { + patientsQuery.setCardNo(cardNo); + List patients = yunBookbuildingService.queryPregnantWithQuery(patientsQuery); + if (CollectionUtils.isNotEmpty(patients)) + { + obj = patients.get(0); + } + } + BaseObjectResponse objectResponse = new BaseObjectResponse(); + objectResponse.setData(obj); + objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); + objectResponse.setErrormsg("成功"); + return objectResponse; + } } \ No newline at end of file -- 1.8.3.1