|
@@ -17,6 +17,10 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
|
import java.net.URLEncoder;
|
|
|
+import java.sql.Connection;
|
|
|
+import java.sql.DriverManager;
|
|
|
+import java.sql.PreparedStatement;
|
|
|
+import java.sql.ResultSet;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
|
|
@@ -339,4 +343,51 @@ public class InquiryInfoController {
|
|
|
return url;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 数据服务模式
|
|
|
+ * @param pushJoinVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/getDataService")
|
|
|
+ @SysLogger("getDataService")
|
|
|
+ public String getDataService(PushJoinVO pushJoinVO){
|
|
|
+ //大病历推送
|
|
|
+
|
|
|
+ //首程推送
|
|
|
+
|
|
|
+ //化验辅检静态知识
|
|
|
+
|
|
|
+ //开单合理性
|
|
|
+
|
|
|
+ //查看检验检查报告静态知识
|
|
|
+
|
|
|
+ //查阅报告危急值提醒
|
|
|
+ String username = "root";// 数据库用户名
|
|
|
+ String password = "langtong";// 数据库密码
|
|
|
+ String driver = "oracle.jdbc.driver.OracleDriver";//驱动
|
|
|
+ String url="jdbc:oracle:thin:@192.168.3.177:1521:orcl";//数据库地址
|
|
|
+ Connection conn = null;
|
|
|
+ try {
|
|
|
+ Class.forName(driver);
|
|
|
+ conn = (Connection) DriverManager.getConnection(url, username, password);
|
|
|
+ String sql = "";
|
|
|
+
|
|
|
+ PreparedStatement pst = null;
|
|
|
+ pst = (PreparedStatement) conn.prepareStatement(sql);
|
|
|
+ ResultSet rs = pst.executeQuery();
|
|
|
+ while(rs.next()){
|
|
|
+ System.out.println(rs.getString("count"));
|
|
|
+ }
|
|
|
+ rs.close();
|
|
|
+ pst.close();
|
|
|
+ conn.close();
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
+ String code = mrFacade.createMr(pushJoinVO);
|
|
|
+ String url =
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
}
|