From f755301cc1bc3899bc100afdd387d7b0dc8863bf Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 25 Oct 2022 10:01:53 +0800
Subject: [PATCH] 20221021

---
 src/main/resources/mapper/dapp/IgtOnHookPlanOrderDao.xml |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/mapper/dapp/IgtOnHookPlanOrderDao.xml b/src/main/resources/mapper/dapp/IgtOnHookPlanOrderDao.xml
index 3f66bab..c41cb6f 100644
--- a/src/main/resources/mapper/dapp/IgtOnHookPlanOrderDao.xml
+++ b/src/main/resources/mapper/dapp/IgtOnHookPlanOrderDao.xml
@@ -13,7 +13,6 @@
         update igt_on_hook_plan_order
         set
             ava_amount = ava_amount - #{amount},
-            profit = profit + #{profit}
         where
             id = #{id}
           and ava_amount - #{amount} <![CDATA[ >= ]]> 0
@@ -29,10 +28,9 @@
             limit 1
     </select>
 
-    <update id="addAvaAmountAddProfitById">
+    <update id="AddProfitById">
         update igt_on_hook_plan_order
         set
-            ava_amount = ava_amount + #{amount},
             profit = profit + #{profit}
         where
             id = #{id}
@@ -45,4 +43,11 @@
         where a.member_id = #{memberId}
     </select>
 
+    <select id="selectByCreateTime" resultType="cc.mrbird.febs.dapp.entity.IgtOnHookPlanOrder">
+        SELECT
+            a.*
+        FROM igt_on_hook_plan_order a
+        where and date_format(a.create_time, '%Y-%m-%d') = #{createTime}
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1