读取永辉excel
This commit is contained in:
@@ -335,8 +335,10 @@ func LoadExcelBinByYongHui(ctx *jxcontext.Context, reader io.Reader, isAsync, is
|
|||||||
} else {
|
} else {
|
||||||
costPrice = skuMap[spuCode].Price
|
costPrice = skuMap[spuCode].Price
|
||||||
}
|
}
|
||||||
|
if errMsg == "" {
|
||||||
_, _, _ = updateWeiMobGoods(costPrice, skuMap[spuCode].Price, skuList[0].Unit, isCompare, goodsDetail)
|
_, _, _ = updateWeiMobGoods(costPrice, skuMap[spuCode].Price, skuList[0].Unit, isCompare, goodsDetail)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//下架微盟商品
|
//下架微盟商品
|
||||||
retVal = []int64{goodsDetail.GoodsID}
|
retVal = []int64{goodsDetail.GoodsID}
|
||||||
@@ -358,7 +360,9 @@ func LoadExcelBinByYongHui(ctx *jxcontext.Context, reader io.Reader, isAsync, is
|
|||||||
for _, v := range batchItemList {
|
for _, v := range batchItemList {
|
||||||
int64Slice = append(int64Slice, v.(int64))
|
int64Slice = append(int64Slice, v.(int64))
|
||||||
}
|
}
|
||||||
|
if errMsg == "" {
|
||||||
PutAwayWeiMobSku(int64Slice)
|
PutAwayWeiMobSku(int64Slice)
|
||||||
|
}
|
||||||
return retVal, err
|
return retVal, err
|
||||||
}
|
}
|
||||||
taskParallel4 := tasksch.NewParallelTask("下架微盟商品", tasksch.NewParallelConfig().SetParallelCount(parallelCount).SetBatchSize(UpdateGoodsShelfStatusCount), ctx, taskFunc4, goodsIDListForPutAway)
|
taskParallel4 := tasksch.NewParallelTask("下架微盟商品", tasksch.NewParallelConfig().SetParallelCount(parallelCount).SetBatchSize(UpdateGoodsShelfStatusCount), ctx, taskFunc4, goodsIDListForPutAway)
|
||||||
|
|||||||
Reference in New Issue
Block a user