wuxw
2019-09-08 599453aa4944cd1d67e6a5894f3833b84ca2d36c
java110-service/src/main/java/com/java110/service/smo/impl/QueryServiceSMOImpl.java
@@ -12,11 +12,10 @@
import com.java110.common.log.LoggerEngine;
import com.java110.common.util.Assert;
import com.java110.common.util.StringUtil;
import com.java110.entity.service.DataQuery;
import com.java110.service.context.DataQuery;
import com.java110.entity.service.ServiceSql;
import com.java110.service.dao.IQueryServiceDAO;
import com.java110.service.smo.IQueryServiceSMO;
import javassist.ClassPool;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.ognl.Ognl;
import org.apache.ibatis.ognl.OgnlException;
@@ -183,20 +182,9 @@
            Interpreter interpreter = new Interpreter();
            interpreter.eval(javaCode);
           /* String param = "";
            for (String key : params.keySet()) {
                param += (params.getString(key) + ",");
            }
            if (param.endsWith(",")) {
                param = param.substring(0, param.length() - 1);
            }*/
            interpreter.set("dataQuery", dataQuery);
            dataQuery.setResponseInfo(DataTransactionFactory.createBusinessResponseJson(ResponseConstant.RESULT_CODE_SUCCESS,
                    "成功", JSONObject.parseObject(interpreter.eval("execute(" + dataQuery + ")").toString())));
                    "成功", JSONObject.parseObject(interpreter.eval("execute(dataQuery)").toString())));
        } catch (Exception e) {
            logger.error("数据交互异常:", e);
            throw new BusinessException(ResponseConstant.RESULT_CODE_INNER_ERROR, "数据交互异常," + e.getMessage());