| | |
| | | //JSONObject params = dataQuery.getRequestParams(); |
| | | Interpreter interpreter = new Interpreter(); |
| | | interpreter.eval(javaCode); |
| | | interpreter.set("params", new Object[]{params,queryServiceDAOImpl}); |
| | | //interpreter.set("queryServiceDAOImpl",queryServiceDAOImpl); |
| | | interpreter.set("params", params.toJSONString()); |
| | | interpreter.set("queryServiceDAOImpl",queryServiceDAOImpl); |
| | | return JSONObject.parseObject(interpreter.eval("execute(params,queryServiceDAOImpl)").toString()); |
| | | } catch (Exception e) { |
| | | logger.error("数据交互异常:", e); |
| | |
| | | |
| | | } |
| | | |
| | | public JSONObject execute(JSONObject params, IQueryServiceDAO queryServiceDAOImpl) { |
| | | public JSONObject execute(String paramStr, IQueryServiceDAO queryServiceDAOImpl) { |
| | | |
| | | JSONObject params = JSONObject.parseObject(paramStr); |
| | | |
| | | JSONObject paramOut = new JSONObject(); |
| | | JSONArray th = new JSONArray(); |
| | |
| | | |
| | | public interface ReportExecute { |
| | | |
| | | JSONObject execute(JSONObject params,IQueryServiceDAO queryServiceDAOImpl); |
| | | JSONObject execute(String params,IQueryServiceDAO queryServiceDAOImpl); |
| | | } |