From 83621cb3f2f5d18868bd22cf484d374da79f43df Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 27 May 2019 11:53:57 +0800 Subject: [PATCH] =?UTF-8?q?-=20orderman=E4=B8=AD=E5=AF=B9=E4=BA=8E?= =?UTF-8?q?=E5=94=AE=E5=90=8E=E5=8D=95=E6=B2=A1=E6=9C=89=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?status=E7=9A=84=E7=8A=B6=E5=86=B5=EF=BC=8C=E6=A0=B9=E6=8D=AEord?= =?UTF-8?q?erStatus=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/order_afs.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/business/jxcallback/orderman/order_afs.go b/business/jxcallback/orderman/order_afs.go index 798cf8954..51d5abcb4 100644 --- a/business/jxcallback/orderman/order_afs.go +++ b/business/jxcallback/orderman/order_afs.go @@ -65,6 +65,12 @@ func (c *OrderManager) onAfsOrderNew(afsOrder *model.AfsOrder, orderStatus *mode return err } } else { + if afsOrder.VendorStatus == "" { + afsOrder.VendorStatus = orderStatus.VendorStatus + } + if afsOrder.Status == model.OrderStatusUnknown { + afsOrder.Status = orderStatus.Status + } if err = c.SaveAfsOrder(db, afsOrder, isAdjust); err != nil { return err }