| | |
| | | </select> |
| | | |
| | | <select id="selectEntrustOrderByOrderType" resultType="com.xcong.excoin.modules.otc.entity.OtcEntrustOrder"> |
| | | select * from otc_entrust_order |
| | | select a.*, b.payment_type payType |
| | | from otc_entrust_order a |
| | | left join member_payment_method b on a.member_id=b.member_id and b.is_defualt=1 |
| | | <where> |
| | | <if test="record.orderType != null and record.orderType != ''" > |
| | | and order_type = #{record.orderType} |
| | | and a.order_type = #{record.orderType} |
| | | </if> |
| | | <if test="record.memberId != null"> |
| | | and member_id = #{record.memberId} |
| | | and a.member_id = #{record.memberId} |
| | | </if> |
| | | <if test="record.status != null and record.status == 3"> |
| | | and status != #{record.status} |
| | | and a.status != #{record.status} |
| | | </if> |
| | | <if test="record.status != null and record.status != 3"> |
| | | and status = #{record.status} |
| | | and a.status = #{record.status} |
| | | </if> |
| | | </where> |
| | | </select> |