From 4883b58b83fc3be72179c321922417e771be4c19 Mon Sep 17 00:00:00 2001 From: baohanddd Date: Wed, 19 Oct 2016 18:41:48 +0800 Subject: [PATCH] update assconfig table name --- .../src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java b/platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java index 23e23f4..c5931cf 100644 --- a/platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java +++ b/platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java @@ -48,11 +48,11 @@ public class QhdfyHisService { List result = new ArrayList<>(); if (null != startDate) { Connection conn = ConnTools.makeLisConnection(); - QueryRunner queryRunner = new QueryRunner(); + QueryRunner queryRunner = new QueryRunner(true); try { PatientsQuery patientsQuery = new PatientsQuery(); - String sql = "select top 10000 申请号 as hospitalId,病人ID as patientFid,住院号 as patientHid,卡号 as vcCardNo,患者姓名 as name,性别 as sex,年龄 as age,申请科室代码 as deptCode,申请科室名称as deptName,申请医生代码 as applyDoctorCode,申请医生名称 as applyDoctorName,检查医生代码 as checkDoctorCode,检查医生名称 as checkDoctorName,报告发布时间 as publishTime from valllist_ex where 卡号 is not null and 报告发布时间>=? order by 申请号 desc"; - String subSql = "select top 1000 申请单号 as id,项目代码 as code,项目名称 as name,项目结果 as result,字符结果 as charResult,数字结果 as numberResult,高低标志 as flag,参考值 as ref,单位 as unit,结果类型 as result from valresult_ex where 申请单号='"; + String sql = "select top 10000 shenqinghao as hospitalId,bingrenid as patientFid,zhuyuanhao as patientHid,kahao as vcCardNo,huanzhexingming as name,xingbie as sex,nianling as age,shenqingkeshidaima as deptCode,shenqingkeshimingcheng as deptName,shenqingyishengdaima as applyDoctorCode,shenqingyishengmingcheng as applyDoctorName,jianchayishengdaima as checkDoctorCode,jianchayishengxingming as checkDoctorName,baogaofabushijian as publishTime from valllist_ex where kahao is not null and baogaofabushijian>=? order by shenqinghao desc"; + String subSql = "select top 1000 sheqingdanhao as id,xiangmudaima as code,xiangmumingcheng as name,xiangmujieguo as result,zifujieguo as charResult,shuzijieguo as numberResult,gaodibiaozhi as flag,cankaozhi as ref,danwei as unit,jieguoleixing as result from valresult_ex where sheqingdanhao='"; Object[] params = {startDate}; List list = queryRunner.query(conn, sql, new BeanListHandler(LisReport.class), params); if (list.size() > 0) { -- 1.8.3.1