From 54088f46d91b55f1bfd7618abb78abb8ab3dd6b5 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 14 Dec 2025 00:07:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(biz):=20=E8=B0=83=E6=95=B4pLog=E5=9B=BE?= =?UTF-8?q?=E5=95=86=E5=93=81=E6=B7=BB=E5=8A=A0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将pLog图<景区打包>商品添加到列表末尾改为添加到列表开头 - 当puzzleList非空时才添加打包商品 - 确保打包商品始终显示在商品列表第一位 --- src/main/java/com/ycwl/basic/biz/PriceBiz.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/ycwl/basic/biz/PriceBiz.java b/src/main/java/com/ycwl/basic/biz/PriceBiz.java index 2ffa67a9..ca700b7b 100644 --- a/src/main/java/com/ycwl/basic/biz/PriceBiz.java +++ b/src/main/java/com/ycwl/basic/biz/PriceBiz.java @@ -133,11 +133,13 @@ public class PriceBiz { case "PHOTO_LOG": // 从 template 表查询pLog模板 - goodsList.add(new SimpleGoodsRespVO(scenicId, "pLog图<景区打包>", productType)); List 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":