From a7c6abad7c9e59285542156c40081fa54e2df2de Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 20 Dec 2022 17:20:23 +0800 Subject: [PATCH] 20221220 1、每天两点会员星级保证金返还任务 2、每天两点半会员星级更新任务 --- src/main/resources/mapper/modules/MallMemberStarBuyMapper.xml | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/modules/MallMemberStarBuyMapper.xml b/src/main/resources/mapper/modules/MallMemberStarBuyMapper.xml index ec6c6ba..9cfe55b 100644 --- a/src/main/resources/mapper/modules/MallMemberStarBuyMapper.xml +++ b/src/main/resources/mapper/modules/MallMemberStarBuyMapper.xml @@ -2,4 +2,33 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="cc.mrbird.febs.mall.mapper.MallMemberStarBuyMapper"> + <select id="selectByStatus" resultType="cc.mrbird.febs.mall.entity.MallMemberStarBuy"> + select * + from mall_member_star_buy + where status = #{status} + </select> + + <update id="updateAvaAmountById"> + update mall_member_star_buy + set + ava_amount = #{avaAmount} + where + id = #{id} + </update> + + <update id="updateStatusById"> + update mall_member_star_buy + set + status = #{status} + where + id = #{id} + </update> + + <select id="selectByStatusAndMemberId" resultType="cc.mrbird.febs.mall.entity.MallMemberStarBuy"> + select * + from mall_member_star_buy + where status = #{status} + and member_id = #{memberId} + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.1