[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
}
]