From 75d8b0ad39a7eb04f72ef8654dbb895322f07cfd Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 21 Oct 2025 13:41:42 +0800
Subject: [PATCH] feat(ai): 新增会员答题分页及详情查询功能 - 在 AiMemberAnswerMapper 中新增 getAnswerPage 方法及对应 XML 查询语句 - 新增 ApiMemberAnswerPageDto 和 ApiMemberAnswerPageVo 用于分页查询参数和返回结果 - 在 AiMemberAnswerService 及其实现类中添加 getAnswerPage 方法 - 在 AiMemberService 及其实现类中新增 answerPage 和 answerInfo 接口实现 - 新增 ApiMemberAnswerInfoDto 和 ApiMemberAnswerInfoVo 用于答题详情接口参数和响应 - 在 ApiMemberController 中增加 /answerPage 和 /answerInfo两个 POST 接口 - 优化 AiMemberTeamPracticeVo,增加 memberUuid 字段 - 统一导入包路径,简化代码结构

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

diff --git a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml
index cc3b0b8..1d58ac3 100644
--- a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml
+++ b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml
@@ -13,10 +13,38 @@
         where id=#{record.id} and revision=#{record.revision}
     </update>
 
+    <update id="updateCommissionWithVersion">
+        update mall_member_wallet
+        set revision = revision + 1,
+            commission = #{record.commission}
+        where id=#{record.id} and revision=#{record.revision}
+    </update>
+
     <update id="updateBalanceWithId">
         update mall_member_wallet
         set revision = revision + 1,
             balance = #{record.balance}
         where id=#{record.id}
     </update>
+
+    <update id="updateAmountWithVersion">
+        update mall_member_wallet
+        set revision = revision + 1
+        <if test="record.balance != null">
+            , balance = #{record.balance}
+        </if>
+        <if test="record.score != null">
+            , score = #{record.score}
+        </if>
+        <if test="record.prizeScore != null">
+            , prize_score = #{record.prizeScore}
+        </if>
+        <if test="record.commission != null">
+            , commission = #{record.commission}
+        </if>
+        <if test="record.totalScore != null">
+            , total_score = #{record.totalScore}
+        </if>
+        where id=#{record.id} and revision=#{record.revision}
+    </update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1