You've already forked FrameTour-BE
fix(biz): 调整pLog图商品添加逻辑
- 将pLog图<景区打包>商品添加到列表末尾改为添加到列表开头 - 当puzzleList非空时才添加打包商品 - 确保打包商品始终显示在商品列表第一位
This commit is contained in:
@@ -133,11 +133,13 @@ public class PriceBiz {
|
||||
|
||||
case "PHOTO_LOG":
|
||||
// 从 template 表查询pLog模板
|
||||
goodsList.add(new SimpleGoodsRespVO(scenicId, "pLog图<景区打包>", productType));
|
||||
List<PuzzleTemplateEntity> puzzleList = puzzleTemplateMapper.list(scenicId, null, null);
|
||||
puzzleList.stream()
|
||||
.map(template -> new SimpleGoodsRespVO(template.getId(), template.getName(), productType))
|
||||
.forEach(goodsList::add);
|
||||
if (!puzzleList.isEmpty()) {
|
||||
goodsList.addFirst(new SimpleGoodsRespVO(scenicId, "pLog图<景区打包>", productType));
|
||||
}
|
||||
break;
|
||||
|
||||
case "RECORDING_SET":
|
||||
|
||||
Reference in New Issue
Block a user