NutzCN Logo
问答 程序执行到这里就不在执行了,也不报错,求大神指导
发布于 1940天前 作者 wx_83guhtuq258kc8pmuovn 1253 次浏览 复制 上一个帖子 下一个帖子
标签:
[DEBUG] 2019-07-24 20:21:14,293 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.
[DEBUG] 2019-07-24 20:21:15,471 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/platform/cust/order/editUser/cb98483c016c4f22b6ceffd16fc3177d : CustOrderController.editUser(CustOrderController.java:120)
[DEBUG] 2019-07-24 20:21:15,471 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'custOrderController'<class cn.wizzer.app.web.modules.controllers.platform.cust.CustOrderController>
[DEBUG] 2019-07-24 20:21:15,473 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT * FROM cust_order  WHERE id=?
    |                                1 |
    |----------------------------------|
    | cb98483c016c4f22b6ceffd16fc3177d |
  For example:> "SELECT * FROM cust_order  WHERE id='cb98483c016c4f22b6ceffd16fc3177d'"
[DEBUG] 2019-07-24 20:21:15,481 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/platform/cust/order/editUser/cb98483c016c4f22b6ceffd16fc3177d 10ms

    @At
    @Ok("json:full")
    @RequiresPermissions("platform.cust.order")
    public Object userData(@Param("orderid") String orderid, @Param("username") String username, @Param("country") String country, @Param("field") String field, @Param("language") String language, @Param("person") String person, @Param("length") int length, @Param("start") int start, @Param("draw") int draw, @Param("::order") List<DataTableOrder> order, @Param("::columns") List<DataTableColumn> columns){
        String sql = "select a.* from cust_user a, cust_user_order b where a.id=b.userId";
        if (!Strings.isBlank(orderid)){
            sql += "amd b.orderid='" + orderid +"'";
        }
        if (!Strings.isBlank(username)){
            sql += "and a.username like '%" + username +"%'";
        }
        String s = sql;
        if (order != null && order.size() > 0) {
            for (DataTableOrder o : order) {
                DataTableColumn col = columns.get(o.getColumn());
                s += "order by a." + Sqls.escapeSqlFieldValue(col.getData()).toString() + " " + o.getDir();
            }
        }
        return orderService.data(length, start, draw, Sqls.create(sql), Sqls.create(s));
    }
            "ajax": {
                "url": "${base}/platform/cust/order/selectData",
                "type": "post",
                "data": function (d) {
                    d.orderid = $('#orderid').val();
                    d.username = $('#username').val();
                }
            },

[DEBUG] 2019-07-24 20:25:55,193 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) - '/platform/cust/order/selectuser' >> (CustOrderController.java:149).selectUser : void | @Ok(beetl:/platform/cust/order/selectUser.html) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
8 回复

正常应该是能检索东西,但是我到这里就不执行了,也不报错

没登录,302重定向了

Chrome按F12看服务器响应了什么

就没有进入口方法吧

报了一个这个错。。

jquery.dataTables.js:549 Uncaught TypeError: Cannot read property 'style' of undefined
    at _fnCalculateColumnWidths (jquery.dataTables.js:549)
    at _fnInitialise (jquery.dataTables.js:456)
    at Object.success (jquery.dataTables.js:764)
    at j (jquery-1.11.1.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.1.min.js:2)
    at x (jquery-1.11.1.min.js:4)
    at XMLHttpRequest.b (jquery-1.11.1.min.js:4)

看服务器响应了什么

到这里报错就没再响应了。。。

添加回复
请先登陆
回到顶部