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));