From 7f133cb8fc080b64ab8002b35f04b646f95a6abf Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 27 May 2021 16:37:38 +0800
Subject: [PATCH] Merge branch 'otc' of http://120.27.238.55:7000/r/exchange into otc

---
 src/main/java/com/xcong/excoin/modules/otc/dao/OtcOrderDao.java |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/otc/dao/OtcOrderDao.java b/src/main/java/com/xcong/excoin/modules/otc/dao/OtcOrderDao.java
index 99bc7b7..ca216ca 100644
--- a/src/main/java/com/xcong/excoin/modules/otc/dao/OtcOrderDao.java
+++ b/src/main/java/com/xcong/excoin/modules/otc/dao/OtcOrderDao.java
@@ -4,9 +4,12 @@
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.xcong.excoin.modules.otc.entity.OtcOrder;
+import com.xcong.excoin.modules.otc.vo.ChatOrderVo;
 import com.xcong.excoin.modules.otc.vo.OrderListVo;
 import org.apache.ibatis.annotations.Param;
+import org.web3j.abi.datatypes.Int;
 
+import java.math.BigDecimal;
 import java.util.List;
 
 public interface OtcOrderDao extends BaseMapper<OtcOrder> {
@@ -17,5 +20,23 @@
 
     int updateOrderStatusByOrderNo(@Param("status") Integer status, @Param("payName") String payName, @Param("orderNo") String orderNo);
 
-    OtcOrder selectOrderByOrderNoAndType(String orderNo, String orderType);
+    OtcOrder selectOrderByOrderNoAndType(@Param("orderNo") String orderNo, @Param("orderType") String orderType);
+
+    List<OtcOrder> selectOrderListWithStatusAndType(@Param("type") String orderType, @Param("status") Integer status);
+
+    Integer selectMemberCntForEntrust(@Param("entrustMemberId") Long entrustMemberId);
+
+    Integer selectTotalOrderCount(@Param("entrustMemberId") Long entrustMemberId, @Param("status") Integer status);
+
+    BigDecimal selectMemberAvgPayTime(@Param("memberId") Long memberId);
+
+    BigDecimal selectMemberAvgCoinTime(@Param("memberId") Long memberId);
+
+    List<OtcOrder> selectOrderListForUser(@Param("memberId") Long memberId, @Param("status") Integer status);
+
+    BigDecimal selectOrderTotalAmount(@Param("memberId") Long memberId);
+
+    List<ChatOrderVo> selectByMemberIdAndTargetId(@Param("memberId")Long memberId, @Param("targetId")long targetId);
+
+    List<ChatOrderVo> selectOneByMemberIdAndTargetId(@Param("memberId")Long memberId, @Param("targetId")long targetId);
 }

--
Gitblit v1.9.1