From d522a03566af549b9fabcf7e7d23c166f45c959e Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Fri, 25 Feb 2022 18:02:48 +0800 Subject: [PATCH] fix --- src/main/java/com/xcong/excoin/modules/coin/dao/ZhiYaRecordDao.java | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/coin/dao/ZhiYaRecordDao.java b/src/main/java/com/xcong/excoin/modules/coin/dao/ZhiYaRecordDao.java index 45f45be..71da7f4 100644 --- a/src/main/java/com/xcong/excoin/modules/coin/dao/ZhiYaRecordDao.java +++ b/src/main/java/com/xcong/excoin/modules/coin/dao/ZhiYaRecordDao.java @@ -1,13 +1,36 @@ 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.OrderCoinsEntity; +import com.xcong.excoin.modules.coin.entity.ZhiYaEntity; import com.xcong.excoin.modules.coin.entity.ZhiYaRecordEntity; +import com.xcong.excoin.modules.coin.entity.ZhiyaRewardEntity; +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<ZhiYaRecordEntity> { 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<ZhiyaInfoVo> selectByMemberId(@Param("memberId")Long memberId); + + IPage<ZhiyaInfoVo> selectByMemberIdInPage(Page<ZhiyaInfoVo> page, @Param("record") ZhiYaEntity zhiya); + + IPage<ZhiyaRewardVo> selectZhiyaRewardByMemberIdInPage(Page<ZhiyaRewardVo> page, @Param("record") ZhiyaRewardEntity zhiyaRewardEntity); + + List<ZhiYaRecordEntity> selectZhiYaRewardByStatueAndTime(@Param("orderStatus")int i, @Param("now")Date date); + + Long selectTotalGusdByStatueAndTime(@Param("orderStatus")int i, @Param("now")Date date); + +// void selectZhiYaRewardByStatueAndTime(@Param("orderStatus")int i, @Param("now")Date date); } -- Gitblit v1.9.1