From 9c8f2d141e88b18c289523d4fa777bb55886525c Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 21 Jul 2025 14:49:27 +0800
Subject: [PATCH] fix(clothesType): 修复订单列表选择提示信息

---
 src/main/resources/mapper/modules/ClothesOrderMapper.xml |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/modules/ClothesOrderMapper.xml b/src/main/resources/mapper/modules/ClothesOrderMapper.xml
index 37a7688..b16c659 100644
--- a/src/main/resources/mapper/modules/ClothesOrderMapper.xml
+++ b/src/main/resources/mapper/modules/ClothesOrderMapper.xml
@@ -21,7 +21,7 @@
                         b.name like CONCAT('%', CONCAT(#{record.query}, '%')) or
                     )
                 </if>
-                <if test="record.status != null">
+                <if test="record.status != 0">
                     and (
                         a.status  = #{record.status}
                     )
@@ -64,7 +64,7 @@
 
         <where>
             <if test="record != null">
-                <if test="record.payResult != null">
+                <if test="record.payResult != null and record.payResult != ''">
                     and a.pay_result = #{record.payResult}
                 </if>
                 <if test="record.status != null">
@@ -87,4 +87,15 @@
         order by a.created_time desc
     </select>
 
+
+
+    <select id="selectOrderStatusCnt" resultType="java.util.Map">
+        select
+            a.status,
+            count(1) cnt
+        from clothes_order a
+        where a.del_flag=0 and a.member_id=#{memberId}
+        group by a.status
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1