From 9c49529d95e86a9a9fcb48deb2faf513d5ed602a Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 28 May 2019 09:24:21 +0800 Subject: [PATCH] - debug mtwm afs order --- business/jxcallback/orderman/order_afs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxcallback/orderman/order_afs.go b/business/jxcallback/orderman/order_afs.go index 60eb5483d..75e65011a 100644 --- a/business/jxcallback/orderman/order_afs.go +++ b/business/jxcallback/orderman/order_afs.go @@ -308,6 +308,7 @@ func (c *OrderManager) UpdateAfsOrderFields(afsOrder *model.AfsOrder, fieldList } func (c *OrderManager) setAfsOrderID(db *dao.DaoDB, orderStatus *model.OrderStatus) { + globals.SugarLogger.Warnf("setAfsOrderID orderStatus:%v", utils.Format4Output(orderStatus, true)) if orderStatus.VendorOrderID == "" { index := 1 if afsOrderList, err2 := dao.GetAfsOrders(db, orderStatus.RefVendorID, orderStatus.RefVendorOrderID, ""); err2 == nil { @@ -320,6 +321,8 @@ func (c *OrderManager) setAfsOrderID(db *dao.DaoDB, orderStatus *model.OrderStat } } } + } else { + globals.SugarLogger.Warnf("setAfsOrderID err2:%v", err2) } orderStatus.VendorOrderID = composeAfsOrderID(orderStatus.RefVendorOrderID, index) }