From 6c2e9ba62c418185361179e7014862c481f34e17 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 09 Mar 2022 14:22:09 +0800 Subject: [PATCH] conflect merge --- src/main/java/com/xcong/excoin/modules/otc/dao/OtcOrderDao.java | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 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 new file mode 100644 index 0000000..a71c727 --- /dev/null +++ b/src/main/java/com/xcong/excoin/modules/otc/dao/OtcOrderDao.java @@ -0,0 +1,46 @@ +package com.xcong.excoin.modules.otc.dao; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +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> { + + List<OtcOrder> selectOrderListUnFinish(@Param("memberId") Long memberId, @Param("entrustOrderId") Long entrustOrderId); + + IPage<OrderListVo> selectOrdderListInPage(@Param("record") OtcOrder order, Page<OrderListVo> page); + + int updateOrderStatusByOrderNo(@Param("status") Integer status, @Param("payName") String payName, @Param("orderNo") String orderNo); + + 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, @Param("type") String type); + + 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); + + int updateIsReturnByOrderNo(@Param("isReturn") Integer isReturn, @Param("orderNo") String orderNo); + + OtcOrder selectOrderUnEntrust(@Param("orderNo") String orderNo); +} -- Gitblit v1.9.1