package com.xcong.excoin.modules.coin.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.coin.entity.*; import com.xcong.excoin.modules.coin.parameter.vo.ZhiyaInfoVo; import com.xcong.excoin.modules.coin.parameter.vo.ZhiyaRewardVo; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; public interface ZhiYaRecordDao extends BaseMapper { long getOrderCountByToday(@Param("now")String now, @Param("tomorrow") String tomorrow); ZhiYaRecordEntity selectByMemberIdAndOrderStatus(@Param("memberId")Long memberId,@Param("orderStatus") Integer orderStatus); ZhiYaRecordEntity selectByIdAndMemberId(@Param("id") Long id,@Param("memberId")Long memberId); List selectByMemberId(@Param("memberId")Long memberId); IPage selectByMemberIdInPage(Page page, @Param("record") ZhiYaEntity zhiya); IPage selectZhiyaRewardByMemberIdInPage(Page page, @Param("record") ZhiyaRewardEntity zhiyaRewardEntity); List selectZhiYaRewardByStatueAndTime(@Param("orderStatus")int i, @Param("now")Date date); Long selectTotalGusdByStatueAndTime(@Param("orderStatus")int i, @Param("now")Date date); ZhiYaTeam selectZhiyaTeamRecordByMemberId(@Param("memberId")Long id); List selectZhiyaTeamRecordByMemberIdAndOrderNo(@Param("orderNo")String orderNo, @Param("memberId")Long memberId,@Param("now")Date date); // void selectZhiYaRewardByStatueAndTime(@Param("orderStatus")int i, @Param("now")Date date); Long selectSumZhiyaCntByMemberIdAndOrderStatus(@Param("memberId")Long memberId,@Param("orderStatus") Integer orderStatus); Long selectSumRewardCntByMemberId(@Param("memberId")Long zhiShuMemberId); IPage selectZhiyaRewardTypeToByMemberIdInPage(Page page, @Param("record")ZhiyaRewardEntity zhiyaRewardEntity); }