Commit a24d9343d5eca3a9ac0f594b94296939bb29c41a

Authored by liquanyu
1 parent 5e008403da

虚拟叫号

Showing 1 changed file with 37 additions and 37 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/whfy/VirtualCallService.java View file @ a24d934
... ... @@ -58,43 +58,43 @@
58 58 System.out.println("time="+ DateUtil.getyyyy_MM_dd_hms(new Date())+";code="+code+";deptName="+deptName+";doctorAccount="+doctorAccount+";doctorName="+doctorName
59 59 +";ip="+ip+";mac="+mac);
60 60  
61   - Connection conn = null;
62   - CallableStatement cs = null;
63   - try {
64   - conn = makeHisConnection();
65   - //1.1 普通登录
66   - //exec usp_mzhs_hsfzinterface '1','192.168.1.219','2052','儿科门诊','00','supervisor','D8-9E-F3-13-A5-86','0',@sex='男'
67   - cs = conn.prepareCall("{call usp_mzhs_hsfzinterface(?,?,?,?,?,?,?)}");
68   - cs.setString(1, "1");
69   - cs.setString(2, ip);
70   - cs.setString(3, code);
71   - cs.setString(4, deptName);
72   - cs.setString(5, doctorAccount);
73   - cs.setString(6, doctorName);
74   - cs.setString(7, mac);
75   - ResultSet rs = cs.executeQuery();
76   -
77   - int count = rs.getMetaData().getColumnCount();
78   - while (rs.next()) {
79   - for (int i = 1; i <= count; i++)
80   - {
81   - String columnName = rs.getMetaData().getColumnName(i);
82   - Object obj = rs.getObject(columnName);
83   - System.out.println("columName=" + columnName+ ";value="+obj);
84   - }
85   - }
86   -
87   - }
88   - catch (SQLException e)
89   - {
90   - ExceptionUtils.catchException(e, "callLogin exception");
91   - result.setErrorcode(ErrorCodeConstants.SYSTEM_ERROR);
92   - result.setErrormsg("登陆异常");
93   - return result;
94   - }
95   - finally {
96   - ConnTools.close(conn,cs);
97   - }
  61 +// Connection conn = null;
  62 +// CallableStatement cs = null;
  63 +// try {
  64 +// conn = makeHisConnection();
  65 +// //1.1 普通登录
  66 +// //exec usp_mzhs_hsfzinterface '1','192.168.1.219','2052','儿科门诊','00','supervisor','D8-9E-F3-13-A5-86','0',@sex='男'
  67 +// cs = conn.prepareCall("{call usp_mzhs_hsfzinterface(?,?,?,?,?,?,?)}");
  68 +// cs.setString(1, "1");
  69 +// cs.setString(2, ip);
  70 +// cs.setString(3, code);
  71 +// cs.setString(4, deptName);
  72 +// cs.setString(5, doctorAccount);
  73 +// cs.setString(6, doctorName);
  74 +// cs.setString(7, mac);
  75 +// ResultSet rs = cs.executeQuery();
  76 +//
  77 +// int count = rs.getMetaData().getColumnCount();
  78 +// while (rs.next()) {
  79 +// for (int i = 1; i <= count; i++)
  80 +// {
  81 +// String columnName = rs.getMetaData().getColumnName(i);
  82 +// Object obj = rs.getObject(columnName);
  83 +// System.out.println("columName=" + columnName+ ";value="+obj);
  84 +// }
  85 +// }
  86 +//
  87 +// }
  88 +// catch (SQLException e)
  89 +// {
  90 +// ExceptionUtils.catchException(e, "callLogin exception");
  91 +// result.setErrorcode(ErrorCodeConstants.SYSTEM_ERROR);
  92 +// result.setErrormsg("登陆异常");
  93 +// return result;
  94 +// }
  95 +// finally {
  96 +// ConnTools.close(conn,cs);
  97 +// }
98 98  
99 99 result.setErrorcode(ErrorCodeConstants.SUCCESS);
100 100 result.setErrormsg("登陆成功");