Commit eae8bfffc71ddf3e5cd1cbce7b1d2d765ae419e5

Authored by liquanyu
1 parent 7b17e1e9de

东昌府lis

Showing 1 changed file with 12 additions and 13 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/lcdcf/LcdcfHisService.java View file @ eae8bff
... ... @@ -55,20 +55,18 @@
55 55 String time = DateUtil.getyyyy_MM_dd(new Date());
56 56 Connection connection = null;
57 57 try {
58   -// String sql = "select ID as id,就诊卡号 as vcCardNo,医嘱内容 as content,开嘱时间 as time,诊疗项目ID as itemId from v_check_items where 就诊卡号='"+vcCardNo+"' and 开嘱时间 like '"+time+"%'";
59   -// connection = ConnTools.makeHisConnection();
60   -// QueryRunner queryRunner = new QueryRunner(true);
61   -// List<HisCheckItems> hisCheckItems = queryRunner.query(connection,sql,new BeanListHandler<HisCheckItems>(HisCheckItems.class));
  58 + String sql = "select ID as id,就诊卡号 as vcCardNo,医嘱内容 as content,开嘱时间 as time,诊疗项目ID as itemId from v_check_items where 就诊卡号='"+vcCardNo+"' and 开嘱时间 like '"+time+"%'";
  59 + connection = ConnTools.makeHisConnection();
  60 + QueryRunner queryRunner = new QueryRunner(true);
  61 + List<HisCheckItems> hisCheckItems = queryRunner.query(connection,sql,new BeanListHandler<HisCheckItems>(HisCheckItems.class));
  62 +// List<HisCheckItems> hisCheckItems = new ArrayList<>();
  63 +// HisCheckItems item1 = new HisCheckItems();
  64 +// item1.setContent("血常规检查");
  65 +// hisCheckItems.add(item1);
  66 +// HisCheckItems item2 = new HisCheckItems();
  67 +// item2.setContent("尿常规检查");
  68 +// hisCheckItems.add(item2);
62 69  
63   - List<HisCheckItems> hisCheckItems = new ArrayList<>();
64   - HisCheckItems item1 = new HisCheckItems();
65   - item1.setContent("血常规检查");
66   - hisCheckItems.add(item1);
67   - HisCheckItems item2 = new HisCheckItems();
68   - item2.setContent("尿常规检查");
69   - hisCheckItems.add(item2);
70   -
71   -
72 70 StringBuffer sb = new StringBuffer();
73 71 if(CollectionUtils.isNotEmpty(hisCheckItems))
74 72 {
... ... @@ -89,6 +87,7 @@
89 87 }
90 88 } catch (Exception e) {
91 89 e.printStackTrace();
  90 + return "";
92 91 }
93 92 finally
94 93 {