Commit 7e9f419987f61b83db16f91b48b2f32cd8b046eb

Authored by gengxiaokai
1 parent a729dda72d

德州社保卡,银行卡查询lis报告

Showing 1 changed file with 5 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/dzfy/DzfyHisService.java View file @ 7e9f419
... ... @@ -457,12 +457,13 @@
457 457 public List<DzReplace> findAllVcCarddNo(String vcCardNo)
458 458 {
459 459 List<DzReplace> allCardNoList = new ArrayList<DzReplace>();
  460 + List<DzReplace> allNoList = new ArrayList<DzReplace>();
460 461 if (StringUtils.isNotBlank(vcCardNo))
461 462 {
462 463 System.out.println("vcCardNo = " + vcCardNo);
463 464 Connection conn = com.lyms.hospitalapi.dzfy.ConnTools.makeHisConnection();
464 465 QueryRunner queryRunner = new QueryRunner(true);
465   - String sql = "select id as id from zlhis.v_patientinfo where cardno = '"+vcCardNo+"'";
  466 + String sql = "select 病人ID as id from zlhis.v_cardinfo where 卡号 = '"+vcCardNo+"'";
466 467 try
467 468 {
468 469 List<DzReplace> hisDzReplaceList = queryRunner.query(conn,sql,new BeanListHandler<DzReplace>(DzReplace.class));
... ... @@ -470,6 +471,9 @@
470 471 {
471 472 String jzkSql = "select 病人ID as id,卡号 as cardNo,登记时间 as combTime from zlhis.jzkghjl where 病人ID = '"+hisDzReplaceList.get(0).getId()+"'";
472 473 allCardNoList = queryRunner.query(conn,jzkSql,new BeanListHandler<DzReplace>(DzReplace.class));
  474 + String noSql = "select 病人ID as id,卡号 as cardNo from zlhis.v_cardinfo where 病人ID = '"+hisDzReplaceList.get(0).getId()+"'";
  475 + allNoList = queryRunner.query(conn,noSql,new BeanListHandler<DzReplace>(DzReplace.class));
  476 + allCardNoList.addAll(allNoList);
473 477 System.out.println("vcCardNo list " + allCardNoList);
474 478 }
475 479 }