Commit 0d6d166e57142a97e725feb7d8de580809f69f96

Authored by gengxiaokai
1 parent 44334a2952

新增诸城妇幼更换就诊卡方法

Showing 2 changed files with 33 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/zcfy/ConnTools.java View file @ 0d6d166
1 1 package com.lyms.hospitalapi.zcfy;
2 2  
  3 +import java.sql.Connection;
  4 +import java.sql.DriverManager;
  5 +import java.sql.SQLException;
  6 +
3 7 /**
4 8 * Created by Administrator on 2017/12/18.
5 9 */
6 10 public class ConnTools {
  11 +
  12 + private static String hisDirverClassName = "oracle.jdbc.driver.OracleDriver";
  13 + private static String hisUrl = "jdbc:oracle:thin:@192.168.30.103:1521:crds3db";
  14 + private static String hisUser = "lyms1";
  15 + private static String hisPassword = "lyms";
  16 +
  17 + public static Connection makeHisConnection() {
  18 + Connection conn = null;
  19 + try {
  20 + Class.forName(hisDirverClassName);
  21 + } catch (ClassNotFoundException e) {
  22 + e.printStackTrace();
  23 + }
  24 + try {
  25 + conn = DriverManager.getConnection(hisUrl, hisUser, hisPassword);
  26 + } catch (SQLException e) {
  27 + e.printStackTrace();
  28 + }
  29 + return conn;
  30 + }
  31 +
7 32 }
platform-operate-api/src/main/java/com/lyms/hospitalapi/zcfy/DzfyHisService.java View file @ 0d6d166
  1 +package com.lyms.hospitalapi.zcfy;
  2 +
  3 +/**
  4 + * Created by Administrator on 2017/12/18.
  5 + */
  6 +public class DzfyHisService {
  7 +
  8 +}