From e39d80c3ea8356882fe508f213caec02184fa64c Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Wed, 14 Jul 2021 15:00:54 +0800
Subject: [PATCH] add /distrib/headInfo
---
 gc-shop/src/main/resources/mapper/shop/JhyOrderItemsMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/gc-shop/src/main/resources/mapper/shop/JhyOrderItemsMapper.xml b/gc-shop/src/main/resources/mapper/shop/JhyOrderItemsMapper.xml
index b2a13fc..6a075a8 100644
--- a/gc-shop/src/main/resources/mapper/shop/JhyOrderItemsMapper.xml
+++ b/gc-shop/src/main/resources/mapper/shop/JhyOrderItemsMapper.xml
@@ -10,5 +10,18 @@
         WHERE a.order_id=#{orderId}
     </select>
 
+    <select id="selectJhyOrderItemListByOrderId" resultType="com.xzx.gc.shop.vo.JhyOrderItemsVo">
+        SELECT
+            a.*
+             ,IFNULL(case when d.item_unit = '台' then a.weight
+                          else 0 end, 0) recycleTai
+             ,IFNULL(case when d.item_unit = 'kg' then a.weight
+                          else 0 end, 0) recycleKg
+        FROM
+            xzx_jhy_order_items a
+                left join xzx_sys_environmental_info d on a.item_type = d.id
+        WHERE a.order_id=#{orderId}
+    </select>
+
 
 </mapper>
--
Gitblit v1.9.1