| | |
| | | <!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> |