From e59e24ee6b64f143df8318ce38c91e13364c0bcf Mon Sep 17 00:00:00 2001
From: Hentua <wangdoubleone@gmail.com>
Date: Tue, 06 Jun 2023 17:10:05 +0800
Subject: [PATCH] fix

---
 src/main/resources/mapper/modules/MallOrderInfoMapper.xml |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
index 8316f7d..0056296 100644
--- a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
+++ b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
@@ -127,6 +127,10 @@
             <result property="price" column="price" />
             <result property="amount" column="amount" />
             <result property="isNormal" column="is_normal" />
+            <result property="staticMulti" column="static_multi" />
+            <result property="goodsLevel" column="goods_level" />
+            <result property="normalPer" column="normal_per" />
+            <result property="normalBonus" column="normal_bonus" />
         </collection>
     </resultMap>
 
@@ -184,7 +188,11 @@
             b.cnt,
             b.price,
             b.amount,
-            b.is_normal
+            b.is_normal,
+            b.static_multi,
+            b.goods_level,
+            b.normal_per,
+            b.normal_bonus
         from mall_order_info a
              inner join mall_order_item b on a.id=b.order_id
         where a.id=#{id}
@@ -311,4 +319,13 @@
             #{item}
         </foreach>
     </select>
+
+    <select id="selectScoreOrderListInDate" resultType="cc.mrbird.febs.mall.entity.MallOrderInfo">
+        select * from mall_order_info orderInfo
+            inner join mall_order_item orderItem on orderInfo.id=orderItem.order_id
+            inner join mall_goods goodsInfo on orderItem.goods_id=goodsInfo.ID and goodsInfo.goods_type = 2 and goodsInfo.id=#{goodsId}
+        where orderInfo.order_time >= #{startDate}
+            and orderInfo.order_time &lt;= #{endDate}
+            and orderInfo.status in (2,3,4,5)
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1