【功能优化】商城:秒杀装修重构(PC端)

This commit is contained in:
YunaiV 2024-09-09 09:16:56 +08:00
parent 783f019366
commit 19c4a5c961
4 changed files with 4 additions and 3 deletions

View File

@ -115,4 +115,5 @@ public class SeckillActivityController {
List<ProductSpuRespDTO> spuList = productSpuApi.getSpuList(convertList(activityList, SeckillActivityDO::getSpuId));
return success(SeckillActivityConvert.INSTANCE.convertList(activityList, productList, spuList));
}
}

View File

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

View File

@ -142,7 +142,7 @@ public interface SeckillActivityService {
/**
* 获得拼团活动列表
*
* @param ids 拼团活动 ids
* @param ids 拼团活动编号数组
* @return 拼团活动的列表
*/
List<SeckillActivityDO> getSeckillActivityListByIds(Collection<Long> ids);

View File

@ -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();
}
/**