This commit is contained in:
gazebo
2019-06-12 09:52:39 +08:00
parent 3fb6bba882
commit 13a384248b
3 changed files with 7 additions and 3 deletions

View File

@@ -221,7 +221,7 @@ func (c *OrderManager) SaveOrder(order *model.GoodsOrder, isAdjust bool, db *dao
shop_price, vendor_price, sale_price, weight, sku_type, promotion_type, order_created_at) VALUES`
params := []interface{}{}
for _, sku := range order.Skus {
sql += "(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?),"
sql += "(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?),"
// 有时不是通过京西平台建立的SKU不范围要超过
skuID := 0
if sku.SkuID < math.MaxInt32 {