mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 07:11:52 +08:00
【功能优化】商城:秒杀装修重构(PC端)
This commit is contained in:
parent
783f019366
commit
19c4a5c961
@ -115,4 +115,5 @@ public class SeckillActivityController {
|
||||
List<ProductSpuRespDTO> spuList = productSpuApi.getSpuList(convertList(activityList, SeckillActivityDO::getSpuId));
|
||||
return success(SeckillActivityConvert.INSTANCE.convertList(activityList, productList, spuList));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -57,5 +57,4 @@ public class SeckillActivityRespVO extends SeckillActivityBaseVO {
|
||||
@Schema(description = "拼团金额,单位:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
|
||||
private Integer seckillPrice; // 从 products 获取最小 price 读取
|
||||
|
||||
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ public interface SeckillActivityService {
|
||||
/**
|
||||
* 获得拼团活动列表
|
||||
*
|
||||
* @param ids 拼团活动 ids
|
||||
* @param ids 拼团活动编号数组
|
||||
* @return 拼团活动的列表
|
||||
*/
|
||||
List<SeckillActivityDO> getSeckillActivityListByIds(Collection<Long> ids);
|
||||
|
@ -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;
|
||||
@ -146,7 +147,7 @@ public class TradeRewardActivityPriceCalculator implements TradePriceCalculator
|
||||
return filterList(result.getItems(),
|
||||
orderItem -> CollUtil.contains(rewardActivity.getProductScopeValues(), orderItem.getCategoryId()));
|
||||
}
|
||||
return List.of();
|
||||
return ListUtil.of();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user