|
@@ -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());
|