订单预警

This commit is contained in:
苏尹岚
2019-12-23 18:12:03 +08:00
parent 758e0f23f2
commit a1bdf6cde3

View File

@@ -1329,6 +1329,10 @@ func OrderProfitWarning(order *model.GoodsOrder) {
if order == nil {
return
}
if order.TotalShopMoney == 0 {
globals.SugarLogger.Debugf("OrderProfitWarning TotalShopMoney=0 orderID:%s", order.VendorOrderID)
return
}
storeID = jxutils.GetShowStoreIDFromOrder(order)
storeDetail, err := dao.GetStoreDetail(db, storeID, order.VendorID)
if storeDetail != nil && err == nil {