sync jds2
This commit is contained in:
@@ -414,7 +414,11 @@ func isSkuLockTimeValid(sku *dao.StoreSkuSyncInfo) bool {
|
|||||||
func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag int, isFull bool, vendorID, storeID int, nameIDs, skuIDs, excludeSkuIDs []int, useVendorPriceDirectly, isContinueWhenError bool) (err error) {
|
func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag int, isFull bool, vendorID, storeID int, nameIDs, skuIDs, excludeSkuIDs []int, useVendorPriceDirectly, isContinueWhenError bool) (err error) {
|
||||||
globals.SugarLogger.Debugf("syncStoreSkuNew causeFlag:%d", causeFlag)
|
globals.SugarLogger.Debugf("syncStoreSkuNew causeFlag:%d", causeFlag)
|
||||||
db := dao.GetDB()
|
db := dao.GetDB()
|
||||||
storeDetail, err := dao.GetStoreDetail(db, storeID, vendorID, "")
|
var vendorOrgCode string
|
||||||
|
if vendorID == model.VendorIDJDShop && storeID == model.JdShopMainStoreID2 {
|
||||||
|
vendorOrgCode = "2"
|
||||||
|
}
|
||||||
|
storeDetail, err := dao.GetStoreDetail(db, storeID, vendorID, vendorOrgCode)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ const (
|
|||||||
JdShopMainVendorStoreID = "999999"
|
JdShopMainVendorStoreID = "999999"
|
||||||
JdShopMainVendorStoreID2 = "9999999"
|
JdShopMainVendorStoreID2 = "9999999"
|
||||||
JdShopMainStoreID = 102919
|
JdShopMainStoreID = 102919
|
||||||
|
JdShopMainStoreID2 = 100000
|
||||||
|
|
||||||
VendorStoreTel = "18011597879"
|
VendorStoreTel = "18011597879"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user