xiaoyong931011
2021-05-26 6033f6d92d6db0a62dd39b205abad049db3b6225
20210526  聊天
2 files modified
11 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/otc/vo/ChatOrderVo.java 2 ●●● patch | view | raw | blame | history
src/main/resources/mapper/otc/OtcOrderDao.xml 9 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/otc/vo/ChatOrderVo.java
@@ -30,7 +30,7 @@
     */
    @ApiModelProperty(value = "数量")
    private BigDecimal coinAmount;
    private BigDecimal usdtAmount;
    /**
     * 总额
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}))