From 9d42afc9c2fd5ef2ba09b56ba3a5475801b9e4d5 Mon Sep 17 00:00:00 2001
From: Cui Zhi Feng <7426394+wuxixiaocui@user.noreply.gitee.com>
Date: 星期二, 29 十月 2024 11:34:34 +0800
Subject: [PATCH] 统计 商品管理 用户管理 订单管理

---
 src/main/resources/mapper/comment/FlowerCommentMapperCustom.xml |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/comment/FlowerCommentMapperCustom.xml b/src/main/resources/mapper/comment/FlowerCommentMapperCustom.xml
index 177bdb0..31cde27 100644
--- a/src/main/resources/mapper/comment/FlowerCommentMapperCustom.xml
+++ b/src/main/resources/mapper/comment/FlowerCommentMapperCustom.xml
@@ -61,7 +61,21 @@
             and c.show_flag = #{param.showFlag}
         </if>
 
-
+        <if test="param.orderNo != null and param.orderNo != ''">
+            and o.order_no like concat('%', #{param.orderNo}, '%')
+        </if>
+        <if test="param.flowerName != null and param.flowerName != ''">
+            and oi.flower_name like concat('%', #{param.flowerName}, '%')
+        </if>
+        <if test="param.commentGrade != null">
+            and c.comment_grade = #{param.commentGrade}
+        </if>
+        <if test="param.commentStartDate != null">
+            and DATE_FORMAT(c.create_time, '%Y-%m-%d') &gt;= #{param.commentStartDate}
+        </if>
+        <if test="param.commentEndDate != null">
+            and DATE_FORMAT(c.create_time, '%Y-%m-%d') &lt;= #{param.commentEndDate}
+        </if>
 
         order by c.create_time desc
 

--
Gitblit v1.9.3