src/main/resources/mapper/otc/OtcOrderDao.xml
@@ -99,4 +99,15 @@ select sum(total_amount) from otc_order where member_id=#{memberId} and status = 3 </select> <select id="selectByMemberIdAndTargetId" resultType="com.xcong.excoin.modules.otc.vo.ChatOrderVo"> select * from otc_order where ((member_id=#{memberId} and opposite_member_id=#{targetId}) or (member_id=#{targetId} and opposite_member_id=#{memberId})) and status in (1,2) order by create_time desc </select> </mapper>