Commit 6a732d095c3169eef49fcc7ba3027938b38edcc1

Authored by liquanyu
1 parent c66734e634

快速测量

Showing 1 changed file with 8 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MeasureInfoFacade.java View file @ 6a732d0
... ... @@ -407,7 +407,8 @@
407 407 public boolean isZyRange(String certNo)
408 408 {
409 409 Connection conn = com.lyms.hospitalapi.qhdfy.ConnTools.makeClConnection();
410   - try {
  410 + try
  411 + {
411 412 QueryRunner queryRunner = new QueryRunner();
412 413 List<MeasurePatientInfo> list = queryRunner.query(conn, " select ZJH as certNo,XM as userName,NL as age,XB as sex, SJH as phone,INP_NO as zyNo,VISIT_ID as visitId,PATIENT_ID as patientId,DZ as address,RYSJ as inDate,CYSJ as outDate from lyms " +
413 414 " where ZJH='"+certNo+"' order by RYSJ desc ", new BeanListHandler<MeasurePatientInfo>(MeasurePatientInfo.class));
... ... @@ -421,7 +422,9 @@
421 422 catch (Exception e)
422 423 {
423 424 ExceptionUtils.catchException(e,"查询基本信息出错");
424   - }finally {
  425 + }
  426 + finally
  427 + {
425 428 DbUtils.closeQuietly(conn);
426 429 }
427 430 return false;
... ... @@ -473,7 +476,9 @@
473 476 catch (Exception e)
474 477 {
475 478 ExceptionUtils.catchException(e,"查询基本信息出错");
476   - }finally {
  479 + }
  480 + finally
  481 + {
477 482 DbUtils.closeQuietly(conn);
478 483 }
479 484 return result;