diff --git a/business/jxcallback/orderman/orderman.go b/business/jxcallback/orderman/orderman.go index 23824ab64..2008f8be9 100644 --- a/business/jxcallback/orderman/orderman.go +++ b/business/jxcallback/orderman/orderman.go @@ -83,6 +83,8 @@ func addOrderOrWaybillStatus(status *model.OrderStatus, db *dao.DaoDB) (isDuplic status.ID = 0 status.Remark = utils.LimitUTF8StringLen(status.Remark, 255) created, _, err := db.Db.ReadOrCreate(status, "VendorOrderID", "VendorID", "OrderType", "Status", "VendorStatus", "StatusTime") + globals.SugarLogger.Debugf("=================created:%v", created) + globals.SugarLogger.Debugf("=================err:%v", err) if err == nil { if !created { isDuplicated = true @@ -99,6 +101,7 @@ func addOrderOrWaybillStatus(status *model.OrderStatus, db *dao.DaoDB) (isDuplic } else { dao.Commit(db, txDB) } + globals.SugarLogger.Debugf("=================isDuplicated:%v", isDuplicated) return isDuplicated, err }