From c772a1d7194910153e1eb3c678880c1b2226c319 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 07 Jul 2021 17:09:50 +0800
Subject: [PATCH] 20210707

---
 gc-user/src/main/resources/mapper/user/OrderMapper.xml |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/gc-user/src/main/resources/mapper/user/OrderMapper.xml b/gc-user/src/main/resources/mapper/user/OrderMapper.xml
index 49052a2..76dbbc7 100644
--- a/gc-user/src/main/resources/mapper/user/OrderMapper.xml
+++ b/gc-user/src/main/resources/mapper/user/OrderMapper.xml
@@ -418,7 +418,7 @@
                 UNION
                 (
                     SELECT
-                        a.id orderId,
+                        a.order_no orderId,
                         a. STATUS STATUS,
                         '2' type,
                         '0' money,
@@ -588,4 +588,24 @@
             a.order_status != '6'
             and a.create_user_id = #{userId}
     </select>
+
+    <select id="selectListByOrderId" resultType="com.xzx.gc.user.vo.CategaryVo">
+        SELECT
+            b.title
+        FROM
+            xzx_order_item_info a
+                LEFT JOIN xzx_sys_environmental_info b ON a.item_type = b.item_type
+        where  a.order_id = #{orderId}
+          and a.weight >0
+        GROUP BY a.item_type
+    </select>
+
+    <select id="selectJHYListByOrderId" resultType="com.xzx.gc.user.vo.CategaryVo">
+        SELECT
+            a.title title
+        FROM
+            xzx_jhy_order_items a
+        WHERE
+          and a.order_no = #{orderId}
+    </select>
 </mapper>

--
Gitblit v1.9.1