From 3468c100b9ef9747f5202c412a4ecbd4789d8a5d Mon Sep 17 00:00:00 2001
From: wzy <wzy19931122ai@163.com>
Date: Mon, 31 Oct 2022 22:37:08 +0800
Subject: [PATCH] fix
---
src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml b/src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml
index 48371de..145c095 100644
--- a/src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml
+++ b/src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml
@@ -89,7 +89,7 @@
FROM igt_on_hook_plan_order_item a
where a.order_id = #{orderId}
and a.is_goal = #{isGoal}
- and a.create_time < #{endTime}
+ and a.id < #{id}
order by a.id desc
limit 1
</select>
@@ -104,5 +104,18 @@
limit 1
</select>
+ <select id="selectTotalAmountByIDAndOrderId" resultType="java.math.BigDecimal">
+ SELECT
+ ifnull(sum(a.amount),0)
+ FROM igt_on_hook_plan_order_item a
+ <where>
+ a.order_id = #{orderId}
+ and a.id < #{end}
+ <if test="start != null">
+ and a.id > #{start}
+ </if>
+ </where>
+ </select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1