订单查询修改
This commit is contained in:
@@ -596,8 +596,6 @@ func GetOrdersByCreateTime(db *DaoDB, fromDateParm, toDateParm time.Time, vendor
|
|||||||
FROM goods_order a
|
FROM goods_order a
|
||||||
JOIN order_sku b ON a.vendor_order_id = b.vendor_order_id
|
JOIN order_sku b ON a.vendor_order_id = b.vendor_order_id
|
||||||
WHERE a.order_created_at BETWEEN ? and ?
|
WHERE a.order_created_at BETWEEN ? and ?
|
||||||
AND b.earning_price <> 0
|
|
||||||
AND b.store_sub_id = 0
|
|
||||||
`
|
`
|
||||||
sqlParams := []interface{}{
|
sqlParams := []interface{}{
|
||||||
fromDateParm,
|
fromDateParm,
|
||||||
@@ -620,7 +618,6 @@ func UpdateOrderSkuEariningPrice(db *DaoDB, actStoreSku2 *model.ActStoreSku2, fr
|
|||||||
AND tt1.order_created_at BETWEEN ? and ?
|
AND tt1.order_created_at BETWEEN ? and ?
|
||||||
SET t1.earning_price = ?,t1.store_sub_id = ?
|
SET t1.earning_price = ?,t1.store_sub_id = ?
|
||||||
WHERE t1.store_sub_id = 0
|
WHERE t1.store_sub_id = 0
|
||||||
AND t1.earning_price <> 0
|
|
||||||
`
|
`
|
||||||
sqlParams := []interface{}{
|
sqlParams := []interface{}{
|
||||||
actStoreSku2.VendorID,
|
actStoreSku2.VendorID,
|
||||||
|
|||||||
Reference in New Issue
Block a user