Merge remote-tracking branch 'origin/jdshop' into qidongsheng
This commit is contained in:
@@ -1064,11 +1064,9 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs
|
|||||||
for _, storeID := range storeIDs {
|
for _, storeID := range storeIDs {
|
||||||
// todo 可以考虑在需要更新价格再获取
|
// todo 可以考虑在需要更新价格再获取
|
||||||
storeDetail, err := dao.GetStoreDetail(dao.GetDB(), storeID, model.VendorIDJX)
|
storeDetail, err := dao.GetStoreDetail(dao.GetDB(), storeID, model.VendorIDJX)
|
||||||
if err != nil {
|
if err != nil || storeDetail == nil {
|
||||||
dao.Rollback(db)
|
continue
|
||||||
return nil, err
|
|
||||||
}
|
}
|
||||||
fmt.Println("test22222222222222222222222222222222222222222")
|
|
||||||
scaleFactor := float64(1)
|
scaleFactor := float64(1)
|
||||||
if isScale {
|
if isScale {
|
||||||
scaleFactor = 100 / float64(jxutils.ConstrainPayPercentage(storeDetail.PayPercentage))
|
scaleFactor = 100 / float64(jxutils.ConstrainPayPercentage(storeDetail.PayPercentage))
|
||||||
@@ -1310,7 +1308,6 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("test3333333333333333333333333333333333333333")
|
|
||||||
dao.Rollback(db)
|
dao.Rollback(db)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user