From 2da858edbdda7f3be168f8f736ba2a9094513ef3 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 26 Oct 2022 11:33:50 +0800
Subject: [PATCH] 20221021

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

diff --git a/src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml b/src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml
index 54c7bf7..2a57252 100644
--- a/src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml
+++ b/src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml
@@ -33,5 +33,24 @@
           and a.state = #{state}
     </select>
 
+    <select id="selectByMemberIdAndBelongNum" resultType="cc.mrbird.febs.dapp.entity.IgtOnHookPlanOrderItem">
+        SELECT
+            a.*
+        FROM igt_on_hook_plan_order_item a
+        where
+              a.member_id = #{memberId}
+          and a.belong_num = #{recordNum}
+            limit 1
+    </select>
+
+    <select id="selectTotalProfitByMemberIdAndStateAndIsgoal" resultType="java.math.BigDecimal">
+        SELECT
+            ifnull(sum(a.profit),0)
+        FROM igt_on_hook_plan_order_item a
+        where  a.member_id = #{memberId}
+          and a.is_goal = #{isGoal}
+          and a.state = #{state}
+    </select>
+
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1