Merge branch 'mark' of e.coding.net:rosydev/jx-callback into mark
This commit is contained in:
@@ -2528,9 +2528,10 @@ func GetVendorStoreSkuPrice(ctx *jxcontext.Context, vendorIDs []int, skuID int,
|
||||
taskFunc := func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
||||
vendorStoreID := batchItemList[0].(string)
|
||||
var (
|
||||
inStoreSkuList []*partner.StoreSkuInfo
|
||||
storeDetail *dao.StoreDetail
|
||||
inStoreSku = &partner.StoreSkuInfo{}
|
||||
inStoreSkuList []*partner.StoreSkuInfo
|
||||
storeDetail *dao.StoreDetail
|
||||
inStoreSku = &partner.StoreSkuInfo{}
|
||||
outStoreSkuList []*partner.StoreSkuInfo
|
||||
)
|
||||
db := dao.GetDB()
|
||||
skuNameList, err := dao.GetSkus(db, []int{skuID}, nil, nil, nil)
|
||||
@@ -2549,7 +2550,12 @@ func GetVendorStoreSkuPrice(ctx *jxcontext.Context, vendorIDs []int, skuID int,
|
||||
inStoreSku.SkuID = skuID
|
||||
}
|
||||
inStoreSkuList = append(inStoreSkuList, inStoreSku)
|
||||
outStoreSkuList, err := handler.GetStoreSkusBareInfo(ctx, v, task, 0, vendorStoreID, inStoreSkuList)
|
||||
storeDetail2, err := dao.GetStoreDetailByVendorStoreID(db, vendorStoreID, vendorID)
|
||||
if storeDetail2 != nil {
|
||||
outStoreSkuList, err = handler.GetStoreSkusBareInfo(ctx, v, task, storeDetail2.ID, vendorStoreID, inStoreSkuList)
|
||||
} else {
|
||||
outStoreSkuList, err = handler.GetStoreSkusBareInfo(ctx, v, task, 0, vendorStoreID, inStoreSkuList)
|
||||
}
|
||||
if storeDetail != nil {
|
||||
if len(outStoreSkuList) == 0 {
|
||||
data := DataVendorStoreSkuPrice{
|
||||
|
||||
Reference in New Issue
Block a user