|
@@ -939,10 +939,13 @@ func GetNotInvovedAmount(promotionId int64, orderId string) int64 {
|
|
|
beego.BeeLogger.Debug("GetNotInvovedAmount err=%s", err)
|
|
beego.BeeLogger.Debug("GetNotInvovedAmount err=%s", err)
|
|
|
return 0
|
|
return 0
|
|
|
}
|
|
}
|
|
|
- fmt.Println(results)
|
|
|
|
|
total := int64(0)
|
|
total := int64(0)
|
|
|
for _, item := range results {
|
|
for _, item := range results {
|
|
|
item_pd := product_model.GetProductById(item.ProductId, true)
|
|
item_pd := product_model.GetProductById(item.ProductId, true)
|
|
|
|
|
+
|
|
|
|
|
+ beego.BeeLogger.Error("GetNotInvovedAmount-results.productId-%d", item.ProductId)
|
|
|
|
|
+ beego.BeeLogger.Error("GetNotInvovedAmount-results.price-%d", item_pd.Price)
|
|
|
|
|
+
|
|
|
total += item.Nums * item_pd.Price
|
|
total += item.Nums * item_pd.Price
|
|
|
}
|
|
}
|
|
|
beego.BeeLogger.Error("GetNotInvovedAmount-total-%d", total)
|
|
beego.BeeLogger.Error("GetNotInvovedAmount-total-%d", total)
|