From 2cb74791e51cc16f406fe22db8ddcfa61054559a Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 11 Nov 2019 13:58:56 +0800 Subject: [PATCH] =?UTF-8?q?OnOrderComments=E4=B8=AD=E6=89=BE=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E8=AE=A2=E5=8D=95=E6=97=B6=EF=BC=8C=E8=A6=81=E7=94=A8?= =?UTF-8?q?GetStoreDetailByVendorStoreID=E6=9D=A5=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=97=A8=E5=BA=97ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/order_comment.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/business/jxcallback/orderman/order_comment.go b/business/jxcallback/orderman/order_comment.go index d5dfcbe67..8560f8f40 100644 --- a/business/jxcallback/orderman/order_comment.go +++ b/business/jxcallback/orderman/order_comment.go @@ -107,6 +107,10 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) ( } else { orderComment.ConsigneeMobile = order.ConsigneeMobile } + } else { + if storeDetail, err := dao.GetStoreDetailByVendorStoreID(db, orderComment.VendorStoreID, orderComment.VendorID); err == nil { + orderComment.StoreID = storeDetail.ID + } } if orderComment.StoreID > 0 { comment2.Jxstoreid = utils.Int2Str(orderComment.StoreID)