OnOrderComments中找不到订单时,要用GetStoreDetailByVendorStoreID来更新门店ID

This commit is contained in:
gazebo
2019-11-11 13:58:56 +08:00
parent 71b01c44f9
commit 2cb74791e5

View File

@@ -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)