aa
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"git.rosy.net.cn/jx-callback/business/jxcallback/orderman"
|
||||||
"net"
|
"net"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -1920,21 +1921,21 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
//补商品
|
//补商品
|
||||||
order, _ := partner.CurOrderManager.LoadOrder("2117511142000251", model.VendorIDJD)
|
//order, _ := partner.CurOrderManager.LoadOrder("2117511142000251", model.VendorIDJD)
|
||||||
handler := partner.GetPurchaseOrderHandlerFromVendorID(model.VendorIDJD)
|
//handler := partner.GetPurchaseOrderHandlerFromVendorID(model.VendorIDJD)
|
||||||
order2, _ := handler.GetOrder(order.VendorOrgCode, order.VendorOrderID, "")
|
//order2, _ := handler.GetOrder(order.VendorOrgCode, order.VendorOrderID, "")
|
||||||
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
|
// var shopPrice int64
|
||||||
if storeSkus, _ := dao.GetStoresSkusInfo(dao.GetDB(), []int{order.StoreID}, []int{v.SkuID}); len(storeSkus) > 0 {
|
// if storeSkus, _ := dao.GetStoresSkusInfo(dao.GetDB(), []int{order.StoreID}, []int{v.SkuID}); len(storeSkus) > 0 {
|
||||||
shopPrice = int64(storeSkus[0].Price)
|
// shopPrice = int64(storeSkus[0].Price)
|
||||||
v.ShopPrice = shopPrice
|
// v.ShopPrice = shopPrice
|
||||||
}
|
// }
|
||||||
dao.CreateEntity(dao.GetDB(), v)
|
// dao.CreateEntity(dao.GetDB(), v)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
//var (
|
//var (
|
||||||
// storeID = 100002
|
// storeID = 100002
|
||||||
// data string
|
// data string
|
||||||
@@ -1985,6 +1986,14 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
timeList := []string{
|
||||||
|
"2021-05-01 00:00:00",
|
||||||
|
"2021-06-01 00:00:00",
|
||||||
|
"2021-07-01 00:00:00",
|
||||||
|
}
|
||||||
|
for _, v := range timeList {
|
||||||
|
orderman.FixedOrderManager.AmendMissingOrders(ctx, []int{model.VendorIDEBAI}, 667112, utils.Str2Time(v), utils.Str2Time(v).AddDate(0, 1, 0), true, true)
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user