From d448834784e996a3c35c90097c4e7b110899bed2 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Fri, 04 Jul 2025 14:02:02 +0800
Subject: [PATCH] feat(clothes): 添加订单管理功能

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

diff --git a/src/main/resources/mapper/modules/ClothesOrderMapper.xml b/src/main/resources/mapper/modules/ClothesOrderMapper.xml
index 7e48374..37a7688 100644
--- a/src/main/resources/mapper/modules/ClothesOrderMapper.xml
+++ b/src/main/resources/mapper/modules/ClothesOrderMapper.xml
@@ -11,7 +11,7 @@
             b.name as typeName,
             b.image as typeImage,
             a.goods_cnt as goodsCnt
-        from clothes_order_graft a
+        from clothes_order a
         left join clothes_type b on a.type_id = b.id
         <where>
             and a.member_id = #{record.memberId}
@@ -31,4 +31,60 @@
         order by a.CREATED_TIME desc
     </select>
 
+    <select id="selectOrderListInPage" resultType="cc.mrbird.febs.mall.vo.clothes.AdminClothesOrderListVo">
+        select
+        a.id as id,
+        a.type_id as typeId,
+
+        c.name as memberName,
+        b.name as typeName,
+        b.image as typeImage,
+
+        a.order_no as orderNo,
+        a.order_time as orderTime,
+        a.goods_cnt as goodsCnt,
+        a.status as status,
+        a.remark as remark,
+
+        a.pay_time as payTime,
+        a.pay_method as payMethod,
+        a.pay_order_no as payOrderNo,
+        a.pay_result as payResult,
+
+        a.delivery_state as deliveryState,
+
+        a.amount as amount,
+        a.discount_amount as discountAmount,
+        a.carriage as carriage,
+        a.real_amount as realAmount,
+        a.comment_state as commentState
+        from clothes_order a
+        left join clothes_type b on a.type_id = b.id
+        left join mall_member c on a.member_id = c.id
+
+        <where>
+            <if test="record != null">
+                <if test="record.payResult != null">
+                    and a.pay_result = #{record.payResult}
+                </if>
+                <if test="record.status != null">
+                    and a.status = #{record.status}
+                </if>
+                <if test="record.orderNo != null and record.orderNo != ''">
+                    and a.order_no like CONCAT('%', CONCAT(#{record.orderNo}, '%'))
+                </if>
+                <if test="record.name != null and record.name != ''">
+                    and c.name like CONCAT('%', CONCAT(#{record.name}, '%'))
+                </if>
+                <if test="record.startTime != null and record.startTime != ''">
+                    and a.order_time &gt;= #{record.startTime}
+                </if>
+                <if test="record.endTime != null and record.endTime != ''">
+                    and a.order_time &lt;= #{record.endTime}
+                </if>
+            </if>
+        </where>
+        order by a.created_time desc
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1