sync jds2

This commit is contained in:
苏尹岚
2020-11-19 16:39:39 +08:00
parent e25a6cf680
commit 47bba8385e
2 changed files with 6 additions and 1 deletions

View File

@@ -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) {
globals.SugarLogger.Debugf("syncStoreSkuNew causeFlag:%d", causeFlag)
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 {
return err
}

View File

@@ -66,6 +66,7 @@ const (
JdShopMainVendorStoreID = "999999"
JdShopMainVendorStoreID2 = "9999999"
JdShopMainStoreID = 102919
JdShopMainStoreID2 = 100000
VendorStoreTel = "18011597879"
)