守价订单生成
This commit is contained in:
@@ -1412,7 +1412,7 @@ func GetSupplySupportStoreSkus(db *DaoDB, fromDate, toDate time.Time, fromStoreI
|
||||
return getSupplySupportStoreSkusResult, err
|
||||
}
|
||||
|
||||
func GetPriceDefendOrder(db *DaoDB, vendorOrderID string, storeIDs, skuIDs, issues []int, defendPrice, isBuyNowPrice, isSuccess int, userID string, beginAt, EndAt time.Time, isDesc bool) (priceDefendOrders []*model.PriceDefendOrder, err error) {
|
||||
func GetPriceDefendOrder(db *DaoDB, vendorOrderID string, storeIDs, skuIDs, issues []int, defendPrice, isBuyNowPrice, isSuccess, isPay int, userID string, beginAt, EndAt time.Time, isDesc bool) (priceDefendOrders []*model.PriceDefendOrder, err error) {
|
||||
sql := `
|
||||
SELECT a.*
|
||||
FROM price_defend_order a
|
||||
@@ -1452,6 +1452,10 @@ func GetPriceDefendOrder(db *DaoDB, vendorOrderID string, storeIDs, skuIDs, issu
|
||||
sql += " AND a.is_success = ?"
|
||||
sqlParams = append(sqlParams, isSuccess)
|
||||
}
|
||||
if isPay != -1 {
|
||||
sql += " AND a.is_pay = ?"
|
||||
sqlParams = append(sqlParams, isPay)
|
||||
}
|
||||
if userID != "" {
|
||||
sql += " AND b.user_id = ?"
|
||||
sqlParams = append(sqlParams, userID)
|
||||
|
||||
Reference in New Issue
Block a user