From 540b80dd4c3b3fdecc56e12792b485cc111b5530 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期二, 10 九月 2024 14:03:38 +0800
Subject: [PATCH] 1.新增筛选:已加价/未加价2.新增“售价”字段,售价=底价+加价

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

diff --git a/src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml b/src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml
index 60a976a..e16fb0b 100644
--- a/src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml
+++ b/src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml
@@ -33,6 +33,16 @@
                 )
             )
         </if>
+        <if test="condition.isFee != null">
+        <choose>
+            <when test="condition.isFee == 'markup'">
+                AND sp.fee > 0
+            </when>
+            <otherwise>
+                AND (sp.fee is null or sp.fee = 0)
+            </otherwise>
+        </choose>
+        </if>
         ORDER BY f.id
     </select>
 
@@ -68,6 +78,16 @@
             )
             )
         </if>
+        <if test="condition.isFee != null">
+            <choose>
+                <when test="condition.isFee == 'markup'">
+                    AND sp.fee > 0
+                </when>
+                <otherwise>
+                    AND (sp.fee is null or sp.fee = 0)
+                </otherwise>
+            </choose>
+        </if>
         ORDER BY f.id
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3