From b3bc4f358434ec82f90eaa8b87f68b68a2652fa7 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期二, 22 十月 2024 15:08:17 +0800
Subject: [PATCH] fix: id

---
 src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml b/src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml
index e16fb0b..50062c8 100644
--- a/src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml
+++ b/src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml
@@ -16,7 +16,7 @@
         join t_flower_markup_sp sp on sp.flower_id = f.id and sp.partner_id = #{partnerId}
         left join t_supplier_info s on s.id = f.supplier_id
         left join t_flower_category c on f.category = c.id
-        WHERE f.deleted = 0 AND sp.fee > 0
+        WHERE f.deleted = 0
         <if test="condition.name != null and condition.name != ''">
             AND f.name LIKE concat('%', #{condition.name},'%')
         </if>
@@ -33,6 +33,9 @@
                 )
             )
         </if>
+        <if test="condition.supplierName != null and condition.supplierName != ''">
+            AND s.name LIKE concat('%', #{condition.supplierName},'%')
+        </if>
         <if test="condition.isFee != null">
         <choose>
             <when test="condition.isFee == 'markup'">

--
Gitblit v1.9.3