刘韬 vor 2 Jahren
Ursprung
Commit
35358a2e47

+ 0 - 15
DataFusion/src/com/zskk/control/ViewController.java

@@ -71,21 +71,6 @@ public class ViewController extends Controller {
 		
 	}
 	
-	/**
-	 * 在被连接数据库执行sql语句
-	 */
-	public void postSql2() {
-		try {
-			DataService dService = ServiceFactory.getService(DataService.class);
-			String a =  dService.getReport2("11H971155");
-			this.renderText(a);
-		} catch (Exception e) {
-			// TODO: handle exception
-			this.renderText(e.toString());
-		}
-		
-	}
-	
 	
 	public void testConn() {
 		try {

+ 2 - 10
DataFusion/src/com/zskk/service/DataService.java

@@ -78,10 +78,10 @@ public class DataService {
     }
     
     /*
-     * 医院代收
+     * 获取前置机报告
      */
     public JSONObject getReport(String code) {
-    	String content = getWithUrl("http://192.168.31.10:874/df/view/executeSql?sqlstr=select * from reportinfo where 检查编号 = " + code);
+    	String content = getWithUrl("http://192.168.31.10:874/df/view/executeSql?sqlstr=select * from reportinfo where 检查编号 = '" + code + "'");
 		JSONArray jsonArray = JSON.parseArray(content);
 		if (jsonArray.size()>0) {
 			JSONObject jsonObject = null;
@@ -95,14 +95,6 @@ public class DataService {
 		
     }
     
-    /*
-     * 医院代收
-     */
-    public String getReport2(String code) {
-    	String content = getWithUrl("http://192.168.31.10:874/df/view/executeSql?sqlstr=select * from reportinfo where 检查编号 = '" + code+"'");
-		return content;
-		
-    }
     
     public static String postWithParameters(String url, Map<String, String> map) {