package com.xcong.excoin.modules.contract.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.contract.entity.ContractOrderEntity; import com.xcong.excoin.modules.contract.parameter.dto.OrderListDto; import com.xcong.excoin.modules.contract.parameter.vo.OrderListVo; import org.apache.ibatis.annotations.Param; import java.math.BigDecimal; import java.util.List; /** * @author helius */ public interface ContractOrderDao extends BaseMapper { public IPage selectContractOrderInPage(Page page, @Param("record") ContractOrderEntity contractOrderEntity); public ContractOrderEntity selectOrderDetailByIdAndMemberId(@Param("id") Long id, @Param("memberId") Long memberId); List selectFollowOrderByMemberId(@Param("memberId") Long memberId); BigDecimal selectFollowOrderTotalProfitByMemberId(@Param("memberId") Long memberId); Integer selectFollowOrderCntForWinRate(@Param("memberId") Long memberId, @Param("type") Integer type); List selectWholeOpenOrderByOrderNo(@Param("orderNo") String orderNo); BigDecimal selectWholeFeeAmountByOrderNo(@Param("orderNo") String orderNo); int updateOrderProfitOrLessById(@Param("rewardAmount") BigDecimal rewardAmount, @Param("rewardRatio") BigDecimal rewardRatio, @Param("id") Long id); public BigDecimal getBurstUsdtByMemberId(@Param("memberId") Long memberId); public List selectFollowOrderListByMemberId(@Param("tradeMemberId")Long tradeMemberId); public String selectOrderNoByOrderIds(@Param("orderId")Long orderId); }