From 2812309093cc6fd31a75d10f62bc52abb7588f56 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Mon, 06 Jan 2025 17:16:57 +0800 Subject: [PATCH] feat(mall): 后台活动列表添加分页和搜索功能 - 在 ActivityServiceImpl 中实现 getAdminListInPage 方法,支持分页和搜索 - 在 AdminActivityController 中添加 list 接口,返回分页数据 - 在 IActivityService 中定义 getAdminListInPage 接口 - 更新前端模板,根据活动状态控制按钮显示 --- src/main/resources/mapper/modules/MallMemberWalletMapper.xml | 36 ++++++++++++++++++++++++++++++++++-- 1 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml index 6036704..eaa443b 100644 --- a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml +++ b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml @@ -8,8 +8,40 @@ <update id="updateBalanceWithVersion"> update mall_member_wallet - set REVISION = REVISION + 1, + set revision = revision + 1, balance = #{record.balance} - where id=#{record.id} and REVISION=#{record.REVISION} + 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> + where id=#{record.id} and revision=#{record.revision} </update> </mapper> \ No newline at end of file -- Gitblit v1.9.1