| | |
| | | <select id="selectSellListInPage" resultType="cc.mrbird.febs.mall.vo.ApiOrderSellVo"> |
| | | select a.* |
| | | from mall_product_sell a |
| | | where a.state = #{record.state} |
| | | and a.member_id = #{record.memberId} |
| | | where a.member_id = #{record.memberId} |
| | | order by a.CREATED_TIME desc |
| | | </select> |
| | | |
| | | <select id="selectTotalPerk" resultType="cc.mrbird.febs.mall.entity.MallProductBuy"> |
| | | select SUM(total_perk) from mall_product_buy |
| | | where state = 3 |
| | | GROUP BY member_id; |
| | | </select> |
| | | |
| | | <select id="selectTotalPerkByMemberId" resultType="java.math.BigDecimal"> |
| | | select SUM(total_perk) from mall_product_buy |
| | | where state = 3 and member_id = #{memberId} |
| | | </select> |
| | | |
| | | </mapper> |