From 43638334fcb5ede52c6153d7a04b35605c97b332 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Wed, 7 Jul 2021 09:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/tempop/tempop.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 501c873ce..0c4e3d907 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1926,6 +1926,11 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { if len(order.Skus) == 0 { if len(order2.Skus) > 0 { for _, v := range order2.Skus { + var shopPrice int64 + if storeSkus, _ := dao.GetStoresSkusInfo(dao.GetDB(), []int{order.StoreID}, []int{v.SkuID}); len(storeSkus) > 0 { + shopPrice = int64(storeSkus[0].Price) + v.ShopPrice = shopPrice + } dao.CreateEntity(dao.GetDB(), v) } }