xiaoyong931011
2021-05-25 3341b7a0e2a8c719cf6eaf1591a721ec6b8e1fe4
src/main/resources/mapper/otc/OtcEntrustOrderDao.xml
@@ -13,9 +13,11 @@
            ,a.limit_max_amount max
            ,b.total_order_cnt orderCnt
            ,b.finish_ratio finishRatio
            ,d.payment_type payType
        from otc_entrust_order a
        left join otc_market_bussiness b on a.member_id=b.member_id
        left join member c on a.member_id=c.id
        left join member_payment_method d on a.member_id=d.member_id and d.is_defualt=1
        <where>
            a.status=1 and a.remain_coin_amount > 0
            <if test="record != null">
@@ -40,7 +42,7 @@
                and status != #{record.status}
            </if>
            <if test="record.status != null and record.status != 3">
                and status == #{record.status}
                and status = #{record.status}
            </if>
        </where>
    </select>
@@ -58,7 +60,7 @@
                and status != #{record.status}
            </if>
            <if test="record.status != null and record.status != 3">
                and status == #{record.status}
                and status = #{record.status}
            </if>
        </where>
        order by create_time desc