补订单
This commit is contained in:
@@ -1926,6 +1926,11 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
if len(order.Skus) == 0 {
|
if len(order.Skus) == 0 {
|
||||||
if len(order2.Skus) > 0 {
|
if len(order2.Skus) > 0 {
|
||||||
for _, v := range order2.Skus {
|
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)
|
dao.CreateEntity(dao.GetDB(), v)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user