补订单

This commit is contained in:
suyl
2021-07-07 09:34:45 +08:00
parent 88c1aa2e5e
commit 43638334fc

View File

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