Commit ba10cf30 authored by liudong1993's avatar liudong1993

1

parent a9e327e0
......@@ -907,7 +907,7 @@ GROUP BY o.OrderId
SELECT o.OrderId,SUM(oc.Commission) FROM rb_goods_order o
INNER JOIN rb_goods_ordercommission oc on o.OrderId =oc.OrderId
WHERE o.MallBaseId ={mallBaseId} and o.OrderStatus in(2,3,4,5,6) and o.Recycled=2 and o.`Status`=0
and oc.UserId ={userId} and o.CreateDate >= '{startTime}' AND o.CreateDate <= '{endTime} 23:59:59'
and oc.UserId ={userId} and o.CreateDate >= '{startTime}' AND o.CreateDate <= '{endTime}'
GROUP BY o.OrderId)t";
var obj = ExecuteScalar(sql);
return obj != null ? Convert.ToInt32(obj) : 0;
......@@ -926,7 +926,7 @@ GROUP BY o.OrderId)t";
string sql = $@"SELECT SUM(oc.Commission) FROM rb_goods_order o
INNER JOIN rb_goods_ordercommission oc on o.OrderId =oc.OrderId
WHERE o.MallBaseId ={mallBaseId} and o.OrderStatus in(2,3,4,5,6) and o.Recycled=2 and o.`Status`=0
and oc.UserId ={userId} and o.CreateDate >= '{startTime}' AND o.CreateDate <= '{endTime} 23:59:59'";
and oc.UserId ={userId} and o.CreateDate >= '{startTime}' AND o.CreateDate <= '{endTime}'";
var obj = ExecuteScalar(sql);
return obj != null ? Convert.ToDecimal(obj) : 0;
}
......
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