| | |
| | | select |
| | | a.* |
| | | from mall_money_flow a |
| | | left join mall_member b on a.rt_member_id=b.id |
| | | <where> |
| | | 1=1 and a.status = 2 |
| | | a.status is not NULL |
| | | <if test="record.inOrOut == 3"> |
| | | and a.amount > 0 |
| | | </if> |
| | |
| | | where a.order_no = #{rechargeNo} and a.member_id = #{memberId} |
| | | </select> |
| | | |
| | | <select id="selectOneByOrderNoAndMemberIdAndRtMemberId" resultType="cc.mrbird.febs.mall.entity.MallMoneyFlow"> |
| | | select a.* from mall_money_flow a |
| | | where a.order_no = #{rechargeNo} and a.member_id = #{memberId} and a.rt_member_id = @{rtMemberId} |
| | | </select> |
| | | |
| | | <select id="selectAmountByFlowtypeAndType" resultType="java.math.BigDecimal"> |
| | | select ifnull(sum(a.amount),0) from mall_money_flow a |
| | | <where> |