This commit is contained in:
邹宗楠
2024-08-16 15:25:46 +08:00
parent ce8165d703
commit 6cdbf4fd4d
2 changed files with 7 additions and 13 deletions

View File

@@ -571,6 +571,7 @@ func (p *PurchaseHandler) DeleteStoreSkus(ctx *jxcontext.Context, storeID int, v
// UpdateStoreSkusStatus 批量更新商品上下架状态
func (p *PurchaseHandler) UpdateStoreSkusStatus(ctx *jxcontext.Context, vendorOrgCode string, storeID int, vendorStoreID string, storeSkuList []*partner.StoreSkuInfo, status int) (failedList []*partner.StoreSkuInfoWithErr, err error) {
globals.SugarLogger.Debugf("============vendorStoreID : %s", utils.Format4Output(vendorStoreID, false))
param := &request585.AlibabaWdkSkuUpdateRequest{}
updateSkuList := make([]domain585.AlibabaWdkSkuUpdateSkuDo, 0, 0)
api := getAPI(getStoreVendorOrgCode(storeID), storeID, vendorStoreID)
@@ -588,6 +589,7 @@ func (p *PurchaseHandler) UpdateStoreSkusStatus(ctx *jxcontext.Context, vendorOr
}
param.ParamList = &updateSkuList
globals.SugarLogger.Debugf("============vendorStoreID param: %s", utils.Format4Output(param, false))
result, err := api.UpdateStoreSku(param)
if err != nil {
globals.SugarLogger.Debugf("UpdateStoreSku Tao Vegetable err : %s", err.Error())