OnOrderComments中找不到订单时,要用GetStoreDetailByVendorStoreID来更新门店ID
This commit is contained in:
@@ -107,6 +107,10 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
|
|||||||
} else {
|
} else {
|
||||||
orderComment.ConsigneeMobile = order.ConsigneeMobile
|
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 {
|
if orderComment.StoreID > 0 {
|
||||||
comment2.Jxstoreid = utils.Int2Str(orderComment.StoreID)
|
comment2.Jxstoreid = utils.Int2Str(orderComment.StoreID)
|
||||||
|
|||||||
Reference in New Issue
Block a user