Commit 43d3a7980be70f1ef5b135f8f3d173ef44d8f254
1 parent
4a7e74b728
Exists in
master
and in
6 other branches
快速测量
Showing 2 changed files with 13 additions and 6 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/ConnTools.java
View file @
43d3a79
| ... | ... | @@ -36,10 +36,17 @@ |
| 36 | 36 | private static String fmPassword = "LYMS"; |
| 37 | 37 | |
| 38 | 38 | |
| 39 | - private static String clDirverClassName = "oracle.jdbc.driver.OracleDriver"; | |
| 40 | - private static String clUrl = "jdbc:oracle:thin:@168.254.0.80:1521:jhemr"; | |
| 41 | - private static String clUser = "lyms"; | |
| 42 | - private static String clPassword = "lyms"; | |
| 39 | +// private static String clDirverClassName = "oracle.jdbc.driver.OracleDriver"; | |
| 40 | +// private static String clUrl = "jdbc:oracle:thin:@168.254.0.80:1521:jhemr"; | |
| 41 | +// private static String clUser = "lyms"; | |
| 42 | +// private static String clPassword = "lyms"; | |
| 43 | + | |
| 44 | + | |
| 45 | + private static String clDirverClassName = "com.mysql.jdbc.Driver"; | |
| 46 | + private static String clUrl = "jdbc:mysql://119.90.57.26:3306/platform?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8"; | |
| 47 | + private static String clUser = "platform"; | |
| 48 | + private static String clPassword = "platform123"; | |
| 49 | + | |
| 43 | 50 | |
| 44 | 51 | public static Connection makeHisConnection() { |
| 45 | 52 | Connection conn = null; |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MeasureInfoFacade.java
View file @
43d3a79
| ... | ... | @@ -408,7 +408,7 @@ |
| 408 | 408 | Connection conn = com.lyms.hospitalapi.qhdfy.ConnTools.makeClConnection(); |
| 409 | 409 | try { |
| 410 | 410 | QueryRunner queryRunner = new QueryRunner(); |
| 411 | - 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 " + | |
| 411 | + 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 " + | |
| 412 | 412 | " where ZJH='"+certNo+"' order by RYSJ desc ", new BeanListHandler<MeasurePatientInfo>(MeasurePatientInfo.class)); |
| 413 | 413 | if (CollectionUtils.isNotEmpty(list)) |
| 414 | 414 | { |
| ... | ... | @@ -438,7 +438,7 @@ |
| 438 | 438 | Connection conn = com.lyms.hospitalapi.qhdfy.ConnTools.makeClConnection(); |
| 439 | 439 | try { |
| 440 | 440 | QueryRunner queryRunner = new QueryRunner(); |
| 441 | - 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 " + | |
| 441 | + 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 " + | |
| 442 | 442 | " where 1 = 1 "+conditionSql+" order by RYSJ desc ", new BeanListHandler<MeasurePatientInfo>(MeasurePatientInfo.class)); |
| 443 | 443 | if (CollectionUtils.isNotEmpty(list)) |
| 444 | 444 | { |