test
This commit is contained in:
@@ -432,6 +432,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
|||||||
if err != nil || len(skus) == 0 {
|
if err != nil || len(skus) == 0 {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if vendorID == model.VendorIDJDShop && storeID == model.JdShopMainStoreID2 {
|
||||||
|
globals.SugarLogger.Debugf("syncStoreSkuNew", utils.Format4Output(skus, false))
|
||||||
|
}
|
||||||
if len(excludeSkuIDs) > 0 {
|
if len(excludeSkuIDs) > 0 {
|
||||||
excludeSkuMap := jxutils.IntList2Map(excludeSkuIDs)
|
excludeSkuMap := jxutils.IntList2Map(excludeSkuIDs)
|
||||||
var skus2 []*dao.StoreSkuSyncInfo
|
var skus2 []*dao.StoreSkuSyncInfo
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package dao
|
package dao
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"sort"
|
"sort"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -153,8 +152,6 @@ func getStoreDetail(db *DaoDB, storeID, vendorID int, vendorStoreID, vendorOrgCo
|
|||||||
if vendorID == model.VendorIDJDShop && vendorOrgCode == "" {
|
if vendorID == model.VendorIDJDShop && vendorOrgCode == "" {
|
||||||
sql += " AND t2.vendor_org_code = 1"
|
sql += " AND t2.vendor_org_code = 1"
|
||||||
}
|
}
|
||||||
fmt.Println(sql)
|
|
||||||
fmt.Println(sqlParams)
|
|
||||||
if err = GetRow(db, &storeDetail, sql, sqlParams...); err == nil {
|
if err = GetRow(db, &storeDetail, sql, sqlParams...); err == nil {
|
||||||
storeDetail.PricePercentagePackObj = PricePercentagePack2Obj(storeDetail.PricePercentagePackStr)
|
storeDetail.PricePercentagePackObj = PricePercentagePack2Obj(storeDetail.PricePercentagePackStr)
|
||||||
storeDetail.FreightDeductionPackObj = FreightDeductionPack2Obj(storeDetail.FreightDeductionPackStr)
|
storeDetail.FreightDeductionPackObj = FreightDeductionPack2Obj(storeDetail.FreightDeductionPackStr)
|
||||||
|
|||||||
Reference in New Issue
Block a user