xiaoyong931011
2021-05-26 6033f6d92d6db0a62dd39b205abad049db3b6225
src/main/resources/mapper/otc/OtcOrderDao.xml
@@ -101,7 +101,14 @@
    </select>
    <select id="selectByMemberIdAndTargetId" resultType="com.xcong.excoin.modules.otc.vo.ChatOrderVo">
        select * from otc_order
        select
            order_no orderNo,
            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}))