| | |
| | | List<String> columns = new ArrayList<>(); |
| | | Interpreter interpreter = new Interpreter(); |
| | | interpreter.eval(javaCode); |
| | | interpreter.set("params", params.toJSONString()); |
| | | interpreter.set("params", params); |
| | | interpreter.set("queryServiceDAOImpl",queryServiceDAOImpl); |
| | | JSONObject results = JSONObject.parseObject(interpreter.eval("execute(params,queryServiceDAOImpl)").toString()); |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | public String execute(String paramStr, IQueryServiceDAO queryServiceDAOImpl) { |
| | | public String execute(JSONObject params, IQueryServiceDAO queryServiceDAOImpl) { |
| | | JSONObject paramOut = new JSONObject(); |
| | | JSONObject params = JSONObject.parseObject(paramStr); |
| | | |
| | | List sqlParams = new ArrayList(); |
| | | String sql = "select \n" + |
| | |
| | | td = hasInTd(tds, dataObj); |
| | | |
| | | if (td == null) { |
| | | td = new JSONObject(); |
| | | td = new JSONObject(true); |
| | | td.put("员工", dataObj.get("员工")); |
| | | tds.add(td); |
| | | } |
| | |
| | | |
| | | public interface ReportExecute { |
| | | |
| | | String execute(String params,IQueryServiceDAO queryServiceDAOImpl); |
| | | String execute(JSONObject params,IQueryServiceDAO queryServiceDAOImpl); |
| | | } |