Commit 48f4b4b0 by guanzhenshan

修复冗余报表排序不了的问题

parent 4a0295e7
...@@ -441,6 +441,12 @@ namespace Bailun.DC.Services ...@@ -441,6 +441,12 @@ namespace Bailun.DC.Services
sqlparam.Add("code", warehousecode); sqlparam.Add("code", warehousecode);
} }
if (!string.IsNullOrEmpty(request.sort))
{
sql += " order by t1."+request.sort+" "+request.order;
}
var obj = cn.Page<dc_mid_warehouse_redundancy>(request.pageIndex, request.limit, sql, ref total,sqlparam); var obj = cn.Page<dc_mid_warehouse_redundancy>(request.pageIndex, request.limit, sql, ref total,sqlparam);
return obj.AsList(); return obj.AsList();
......
...@@ -225,6 +225,7 @@ ...@@ -225,6 +225,7 @@
for (var o in obj) { for (var o in obj) {
shtml += '<tr><td>' + obj[o].bailun_sku + '</td>'; shtml += '<tr><td>' + obj[o].bailun_sku + '</td>';
shtml += '<td>' + obj[o].productcount + '</td>'; shtml += '<td>' + obj[o].productcount + '</td>';
shtml += '<td>' + obj[o].amount_total + '</td>';
shtml += '<td>' + obj[o].yesterdaysale_count + '</td>'; shtml += '<td>' + obj[o].yesterdaysale_count + '</td>';
shtml += '<td>' + obj[o].yesterdaysale_amount + '</td>'; shtml += '<td>' + obj[o].yesterdaysale_amount + '</td>';
shtml += '<td>' + obj[o].sale_3d_avg + '</td>'; shtml += '<td>' + obj[o].sale_3d_avg + '</td>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment