From 062031e137b3077bd0bacaaccbb5b9e54cc3b75a Mon Sep 17 00:00:00 2001
From: xin <1099200748@qq.com>
Date: Fri, 12 Sep 2025 21:18:53 +0800
Subject: [PATCH] 订单退单sql

---
 oying-system/src/main/resources/mapper/sh/OrderReturnMapper.xml |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/oying-system/src/main/resources/mapper/sh/OrderReturnMapper.xml b/oying-system/src/main/resources/mapper/sh/OrderReturnMapper.xml
index b32d489..b5bb2f5 100644
--- a/oying-system/src/main/resources/mapper/sh/OrderReturnMapper.xml
+++ b/oying-system/src/main/resources/mapper/sh/OrderReturnMapper.xml
@@ -124,8 +124,7 @@
                 or p.product_name like concat('%',#{blurry},'%')
                 or p.product_title like concat('%',#{blurry},'%')
                 or p.product_description like concat('%',#{blurry},'%')
-                or o.orderNum like concat('%',#{blurry},'%')
-                or o.order_describe like concat('%',#{blurry},'%')
+                or o.return_num like concat('%',#{blurry},'%')
                 or o.username like concat('%',#{blurry},'%')
                 or o.order_num like concat('%',#{blurry},'%'))
             </if>
@@ -171,7 +170,7 @@
     </select>
     <select id="countAll" resultType="java.lang.Long">
         select count(1) from (
-        select distinct o.*
+        select distinct o.*,
         p.product_code, p.product_barcode, p.product_name, p.product_title, p.product_description
         from ( select
         <include refid="Base_Column_List"/>

--
Gitblit v1.9.3