From bfbb03c514b9e60485ea13d5679e6af2e8aeb354 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 23 Nov 2022 09:44:23 +0800
Subject: [PATCH] 20221117

---
 src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml b/src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml
index 6d95d97..1076fef 100644
--- a/src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml
+++ b/src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml
@@ -46,9 +46,8 @@
     <select id="selectTotalProfitByMemberIdAndStateAndIsgoal" resultType="java.math.BigDecimal">
         SELECT
             ifnull(sum(a.profit),0)
-        FROM igt_on_hook_plan_order_item a
+        FROM igt_on_hook_plan_order a
         where  a.member_id = #{memberId}
-          and a.is_goal = #{isGoal}
           and a.state = #{state}
     </select>
 
@@ -89,7 +88,7 @@
         FROM igt_on_hook_plan_order_item a
         where a.order_id = #{orderId}
           and a.is_goal = #{isGoal}
-          and a.create_time &lt; #{endTime}
+          and a.id &lt; #{id}
         order by a.id desc
         limit 1
     </select>

--
Gitblit v1.9.1