Helius
2021-05-27 9a968ba186af5280fcc29cc3eb04412eff204ba7
src/main/resources/mapper/otc/OtcOrderDao.xml
@@ -101,7 +101,15 @@
    </select>
    <select id="selectByMemberIdAndTargetId" resultType="com.xcong.excoin.modules.otc.vo.ChatOrderVo">
        select * from otc_order
        select
            order_no orderNo,
            member_id memberId,
            unit_price unitPrice,
            coin_amount usdtAmount,
            total_amount totalAmount,
            status status,
            order_type orderType
        from otc_order
        where ((member_id=#{memberId} and opposite_member_id=#{targetId})
            or
              (member_id=#{targetId} and opposite_member_id=#{memberId}))