NutzCN Logo
问答 页面跳转报 NOT Action match,求大神指点
发布于 1978天前 作者 wx_83guhtuq258kc8pmuovn 1555 次浏览 复制 上一个帖子 下一个帖子
标签:
[DEBUG] 2019-07-24 17:13:28,373 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) - Search mapping for [GET] path=/platform/cust/order/editUser/cb98483c016c4f22b6ceffd16fc3177d : NOT Action match
[DEBUG] 2019-07-24 17:13:28,397 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) - Search mapping for [GET] path=/platform/cust/order/editUser/cb98483c016c4f22b6ceffd16fc3177d : NOT Action match
    @At("editUser/?")
    @Ok("beetl:/platform/cust/order/editUser.html")
    @RequiresPermissions("platform.cust.order")
    public Object editUser(String orderId, HttpServletRequest req) {
        return orderService.fetch(orderId);
    }

    @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));
    }
 "columnDefs": [
                {
                    "render": function (data, type, row) {
                        return '<div class="btn-group"><button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">' +
                                '<i class="ti-settings"></i> <span class="ti-angle-down"></span></button><ul class="dropdown-menu" role="menu">' +
                                '<li><a href="${base}/platform/cust/order/detail/' + row.id + '" data-toggle="modal" data-target="#dialogDetail">查看</a></li>' +
                                '<li class="divider"></li>' +
                                '<li><a href="${base}/platform/cust/order/editUser/' + row.id + '" data-pjax>添加</a></li>'  +
                                '<li><a href="${base}/platform/cust/order/edit/' + row.id + '" data-pjax>修改</a></li>' +
                                '<li class="divider"></li>' +
                                '<li><a href="javascript:;" onclick="del(\'' + row.id + '\')">删除</a></li>' +
                                '</ul></div>';
                    },
                    "targets": 5
                }
            ]
5 回复

在启动日志里面找editUser的映射日志

找到了

[DEBUG] 2019-07-24 18:19:20,448 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) -    '/platform/cust/ordereditUser/?' >> (CustOrderController.java:120).editUser : Object     | @Ok(beetl:/platform/cust/order/editUser.html) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)

“/”这个咋没有。。。

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