package com.yeshi.fanli.dao.mybatis.redpack;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import com.yeshi.fanli.dao.BaseMapper;
|
import com.yeshi.fanli.entity.redpack.RedPackExchange;
|
|
public interface RedPackExchangeMapper extends BaseMapper<RedPackExchange> {
|
|
/**
|
* 查询提现信息
|
* @param start
|
* @param count
|
* @param key
|
* @param state
|
* @return
|
*/
|
List<RedPackExchange> query(@Param("start")Integer start, @Param("count") Integer count,
|
@Param("key") String key, @Param("state") Integer state);
|
|
Long count(@Param("key") String key, @Param("state") Integer state);
|
|
|
/**
|
* 统计各个状态
|
* @param uid
|
* @return
|
*/
|
Long countByUidAndState(@Param("uid") long uid, @Param("state") Integer state);
|
|
|
/**
|
* 统计状态金额
|
* @param uid
|
* @return
|
*/
|
BigDecimal countMoneyByUidAndState(@Param("uid") Long uid, @Param("state") Integer state);
|
|
/**
|
* 统计当日提现次数
|
* @param uid
|
* @return
|
*/
|
long countTodayByUid(@Param("uid") Long uid);
|
|
}
|