统计 sql语句 修改
This commit is contained in:
1 parent
1aa2567861
commit
fe39437968
2 files changed
+168
-40
No files matched your search
@@ -92,7 +92,7 @@ namespace KJD_Web.BLL.WXXD
|
||||
sb.Append("LEFT JOIN ( SELECT order_id,`status`,refund_amount,id FROM erp.`oms_wei_refund` WHERE id IN ( SELECT MAX(id) FROM erp.`oms_wei_refund` GROUP BY order_id)) AS C ON A.order_id = C.order_id ");
|
||||
sb.Append("WHERE A.create_time BETWEEN " + startTimestamp + " AND " + endTimestamp + " ");
|
||||
sb.Append("AND A.`status` > 10 ");
|
||||
sb.Append("AND B.shop_id IN (" + shop_ids + ") ");
|
||||
sb.Append("AND A.shop_id IN (" + shop_ids + ") ");
|
||||
sb.Append("ORDER BY A.create_time asc");
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
|
||||
Reference in new issue
Block a user