From 7ee09e68650793192e8eb37801adeb9d24418f55 Mon Sep 17 00:00:00 2001 From: liquanyu Date: Fri, 3 Aug 2018 17:04:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=A6=E7=9A=87=E5=B2=9B=E5=88=86=E5=A8=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyFmService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyFmService.java b/platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyFmService.java index a356bb7..985e985 100644 --- a/platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyFmService.java +++ b/platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyFmService.java @@ -931,13 +931,13 @@ public class QhdfyFmService { // Date startTime = DateUtil.addMonth(new Date(),-8); // String start = fmt.format(startTime); - Connection conn = ConnTools.makeFmConnection(); + Connection conn = ConnTools.makeClConnection(); QueryRunner queryRunner = new QueryRunner(); if(idCardNo != null){ try{ FmPatInfo patInfo = null; - String sql = "SELECT syxh,hzxm as name,sfzh as cardNo,sex as sex,birth,lxrdh as phone, blh FROM THIS4_BASY WHERE sfzh = '"+idCardNo+"'"; + String sql = "SELECT PATIENT_ID as syxh FROM LYMS WHERE ZJH = '"+idCardNo+"'"; List infoList = queryRunner.query(conn,sql,new BeanListHandler(FmPatInfo.class)); if(CollectionUtils.isNotEmpty(infoList)){ patInfo = infoList.get(0); @@ -945,7 +945,7 @@ public class QhdfyFmService { String cloumns = " SYXH as syxh,\n" + " YEXH as yexh,\n" + " JLRQ as jlrq,\n" + - " CSRQ as csrq,\n" + + " JLRQ as csrq,\n" + " SSRQ as ssrq,\n" + "SSJ as ssj,\n" + "yexb as yexb,\n" + @@ -979,7 +979,7 @@ public class QhdfyFmService { " SRKS as srks,\n" + " JSZ as jsz"; - String sql1="select "+cloumns+" from JHMK_FMJL_LYMS where JSZ is not null and SC is not null and TZ is not null and SYXH='"+patInfo.getSyxh()+"'"; + String sql1="select "+cloumns+" from FMJL where JSZ is not null and SC is not null and TZ is not null and SYXH='"+patInfo.getSyxh()+"'"; List duoTaiList = queryRunner.query(conn,sql1 , new BeanListHandler(FmItem.class)); -- 1.8.3.1