| | |
| | | where a.order_no = #{record.orderNo} |
| | | order by a.CREATED_TIME desc |
| | | </select> |
| | | |
| | | <select id="selectMoneyFlowByMemberIdAndIsRetrun" resultType="cc.mrbird.febs.mall.entity.MallMoneyFlow"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | mall_money_flow a |
| | | WHERE |
| | | a.type = 26 |
| | | AND a.flow_type = 6 |
| | | AND a.is_return = #{isReturn} |
| | | AND a.member_id = #{memberId} |
| | | ORDER BY |
| | | a.created_time ASC |
| | | </select> |
| | | |
| | | <update id="updateRemarkById"> |
| | | update mall_money_flow |
| | | <set> |
| | | remark = #{remark} |
| | | </set> |
| | | WHERE id = #{id} |
| | | </update> |
| | | |
| | | <update id="updateRemarkAndIsReturnById"> |
| | | update mall_money_flow |
| | | <set> |
| | | remark = #{remark}, |
| | | is_return = 1 |
| | | </set> |
| | | WHERE id = #{id} |
| | | </update> |
| | | |
| | | <select id="selectByOrderNoAndMemberId" resultType="cc.mrbird.febs.mall.entity.MallMoneyFlow"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | mall_money_flow a |
| | | WHERE |
| | | a.type = 25 |
| | | AND a.flow_type = 5 |
| | | AND a.is_return = #{isReturn} |
| | | AND a.member_id = #{memberId} |
| | | AND a.order_no = #{orderNo} |
| | | ORDER BY |
| | | a.created_time ASC |
| | | </select> |
| | | </mapper> |