Skip to content

Commit

Permalink
【功能优化】商城:秒杀装修重构(PC端)
Browse files Browse the repository at this point in the history
  • Loading branch information
YunaiV committed Sep 9, 2024
1 parent 783f019 commit 19c4a5c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,5 @@ public CommonResult<List<SeckillActivityRespVO>> getCombinationActivityListByIds
List<ProductSpuRespDTO> spuList = productSpuApi.getSpuList(convertList(activityList, SeckillActivityDO::getSpuId));
return success(SeckillActivityConvert.INSTANCE.convertList(activityList, productList, spuList));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,4 @@ public class SeckillActivityRespVO extends SeckillActivityBaseVO {
@Schema(description = "拼团金额,单位:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
private Integer seckillPrice; // 从 products 获取最小 price 读取


}
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public interface SeckillActivityService {
/**
* 获得拼团活动列表
*
* @param ids 拼团活动 ids
* @param ids 拼团活动编号数组
* @return 拼团活动的列表
*/
List<SeckillActivityDO> getSeckillActivityListByIds(Collection<Long> ids);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cn.iocoder.yudao.module.trade.service.price.calculator;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.collection.ListUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import cn.iocoder.yudao.framework.common.util.number.MoneyUtils;
Expand Down Expand Up @@ -146,7 +147,7 @@ private List<TradePriceCalculateRespBO.OrderItem> filterMatchActivityOrderItems(
return filterList(result.getItems(),
orderItem -> CollUtil.contains(rewardActivity.getProductScopeValues(), orderItem.getCategoryId()));
}
return List.of();
return ListUtil.of();
}

/**
Expand Down

0 comments on commit 19c4a5c

Please sign in to comment.