From 0ef2ea54b85d11f537a761e2028a40ec1ec1df1b Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 13 Feb 2023 15:55:31 +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