Commit 7ee09e68650793192e8eb37801adeb9d24418f55

Authored by liquanyu
1 parent fcfdd7071f

秦皇岛分娩

Showing 1 changed file with 4 additions and 4 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyFmService.java View file @ 7ee09e6
... ... @@ -931,13 +931,13 @@
931 931 // Date startTime = DateUtil.addMonth(new Date(),-8);
932 932 // String start = fmt.format(startTime);
933 933  
934   - Connection conn = ConnTools.makeFmConnection();
  934 + Connection conn = ConnTools.makeClConnection();
935 935 QueryRunner queryRunner = new QueryRunner();
936 936 if(idCardNo != null){
937 937 try{
938 938  
939 939 FmPatInfo patInfo = null;
940   - String sql = "SELECT syxh,hzxm as name,sfzh as cardNo,sex as sex,birth,lxrdh as phone, blh FROM THIS4_BASY WHERE sfzh = '"+idCardNo+"'";
  940 + String sql = "SELECT PATIENT_ID as syxh FROM LYMS WHERE ZJH = '"+idCardNo+"'";
941 941 List<FmPatInfo> infoList = queryRunner.query(conn,sql,new BeanListHandler<FmPatInfo>(FmPatInfo.class));
942 942 if(CollectionUtils.isNotEmpty(infoList)){
943 943 patInfo = infoList.get(0);
... ... @@ -945,7 +945,7 @@
945 945 String cloumns = " SYXH as syxh,\n" +
946 946 " YEXH as yexh,\n" +
947 947 " JLRQ as jlrq,\n" +
948   - " CSRQ as csrq,\n" +
  948 + " JLRQ as csrq,\n" +
949 949 " SSRQ as ssrq,\n" +
950 950 "SSJ as ssj,\n" +
951 951 "yexb as yexb,\n" +
... ... @@ -979,7 +979,7 @@
979 979 " SRKS as srks,\n" +
980 980 " JSZ as jsz";
981 981  
982   - 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()+"'";
  982 + 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()+"'";
983 983  
984 984 List<FmItem> duoTaiList = queryRunner.query(conn,sql1
985 985 , new BeanListHandler<FmItem>(FmItem.class));