Commit cecc6c8d21c75cef36ccf8ccf41685a4691b8800

Authored by landong2015

Merge remote-tracking branch 'origin/master'

Showing 1 changed file

platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java View file @ cecc6c8
... ... @@ -48,11 +48,11 @@
48 48 List<QhdfyLisReport> result = new ArrayList<>();
49 49 if (null != startDate) {
50 50 Connection conn = ConnTools.makeLisConnection();
51   - QueryRunner queryRunner = new QueryRunner();
  51 + QueryRunner queryRunner = new QueryRunner(true);
52 52 try {
53 53 PatientsQuery patientsQuery = new PatientsQuery();
54   - 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";
55   - 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 申请单号='";
  54 + 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";
  55 + 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='";
56 56 Object[] params = {startDate};
57 57 List<LisReport> list = queryRunner.query(conn, sql, new BeanListHandler<LisReport>(LisReport.class), params);
58 58 if (list.size() > 0) {