xiaoyong931011
2021-05-26 a0a9e797f1f482e18ea03a40beefa1f85a03faee
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}))