Commit fc240ed5 authored by 黄奎's avatar 黄奎

统计修改

parent a9876bf8
......@@ -235,14 +235,6 @@ WHERE 1=1 AND OrderStatus IN(2,3,4,5,6)
}
StringBuilder builder = new StringBuilder();
// builder.AppendFormat(@"
//SELECT A.GoodsName,Count(1) SaleCount,SUM(A.Final_Price) AS Income
//FROM rb_goods_orderdetail AS A LEFT JOIN rb_goods_order AS B ON A.OrderId=B.OrderId
//WHERE 1=1 AND A.GoodsId>0 {0}
//GROUP BY A.GoodsId,A.GoodsName
//ORDER BY COunt(1) DESC
//LIMIT 100
//", where);
if (string.IsNullOrWhiteSpace(query.OrderBy))
{
query.OrderBy = "Income desc";
......
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