批量关注返回值修改

This commit is contained in:
苏尹岚
2020-01-10 17:44:47 +08:00
parent a79efa5b4c
commit df00de8ea2

View File

@@ -3031,8 +3031,7 @@ func FocusStoreSkusBySku(ctx *jxcontext.Context, skuBindInfos []*StoreSkuBindInf
func AutoFocusStoreSkusWithoutFocusForTopSkus(ctx *jxcontext.Context, isAsync, isContinueWhenError bool) (hint string, err error) {
db := dao.GetDB()
var (
skuBindInfoList []*StoreSkuBindInfo
result1 []interface{}
result1 []interface{}
)
storeList, err := dao.GetStoreList(db, nil, nil, "")
taskSeqFunc := func(task *tasksch.SeqTask, step int, params ...interface{}) (result interface{}, err error) {
@@ -3077,6 +3076,7 @@ func AutoFocusStoreSkusWithoutFocusForTopSkus(ctx *jxcontext.Context, isAsync, i
payPercentage = v.PayPercentage
}
if len(skuNameAndPlaceList) > 0 {
var skuBindInfoList []*StoreSkuBindInfo
for _, vv := range skuNameAndPlaceList {
if skuNameMap[vv.ID] != 0 {
priceReferList, err := dao.GetPriceReferSnapshotNoPage(db, []int{vv.CityCode}, nil, []int{vv.ID}, utils.Time2Date(time.Now().AddDate(0, 0, -1)))
@@ -3092,6 +3092,7 @@ func AutoFocusStoreSkusWithoutFocusForTopSkus(ctx *jxcontext.Context, isAsync, i
}
}
}
retVal = skuBindInfoList
}
return retVal, err
}