刘韬 il y a 2 ans
Parent
commit
c97b7db751

+ 3 - 2
DataFusion/src/com/zskk/control/ViewController.java

@@ -26,6 +26,7 @@ import com.zskk.service.DataService;
 import com.zskk.service.ServiceFactory;
 import com.zskk.tools.ExecUtil;
 import com.zskk.tools.XmlHelper;
+import com.alibaba.fastjson.JSONObject;
 
 import okhttp3.FormBody;
 import okhttp3.MediaType;
@@ -61,8 +62,8 @@ public class ViewController extends Controller {
 	public void postSql() {
 		try {
 			DataService dService = ServiceFactory.getService(DataService.class);
-			String a =  dService.getWithUrl(this.getPara("sqlstr"));
-			this.renderText(a);
+			JSONObject a =  dService.getReport("11H971155");
+			this.renderJson(a);
 		} catch (Exception e) {
 			// TODO: handle exception
 			this.renderText(e.toString());

+ 1 - 1
DataFusion/src/com/zskk/service/DataService.java

@@ -81,7 +81,7 @@ public class DataService {
      * 医院代收
      */
     public JSONObject getReport(String code) {
-    	String content = getWithUrl("http://192.168.31.10:874/df/view/executeSql?sqlstr=select top 10 * 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) {
 //			return jsonArray,;