From 172f7410f5576a19b2380b5ec0da3de76ce37283 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 24 Feb 2023 11:56:38 +0800
Subject: [PATCH] 商品单位

---
 src/main/resources/mapper/modules/MallAgentRecordMapper.xml |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/modules/MallAgentRecordMapper.xml b/src/main/resources/mapper/modules/MallAgentRecordMapper.xml
index a9fb76e..5234f22 100644
--- a/src/main/resources/mapper/modules/MallAgentRecordMapper.xml
+++ b/src/main/resources/mapper/modules/MallAgentRecordMapper.xml
@@ -31,4 +31,15 @@
         GROUP BY a.id order by a.CREATED_TIME desc
     </select>
 
+    <update id="updateStateByMemberId">
+        update mall_agent_record
+        set state = 2
+        where member_id = #{memberId}
+    </update>
+
+    <delete id="deleteByMemberIdAndState">
+        delete from mall_agent_record
+        where member_id = #{memberId} and state = #{state}
+    </delete>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1