package com.yeshi.fanli.dao.mybatis.order.dividents;
|
|
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.order.dividents.TeamDividentsSourceUser;
|
|
public interface TeamDividentsSourceUserMapper extends BaseMapper<TeamDividentsSourceUser> {
|
|
/**
|
* 根据日期与目标用户ID统计资金
|
* @Title: sumMoneyByUidAndDay
|
* @Description:
|
* @param uid
|
* @param day
|
* @return
|
* BigDecimal 返回类型
|
* @throws
|
*/
|
BigDecimal sumMoneyByTargetUidAndDayAndType(@Param("uid") Long uid, @Param("day") String day,@Param("type") Integer type);
|
|
|
/**
|
* 根据日期检索用户ID
|
* @Title: listTargetUidByDay
|
* @Description:
|
* @param day
|
* @param start
|
* @param count
|
* @return
|
* List<Long> 返回类型
|
* @throws
|
*/
|
List<Long> listTargetUidByDay(@Param("day") String day, @Param("start") long start, @Param("count") int count);
|
|
/**
|
* 根据日期查询目标用户ID
|
* @Title: countTargetUidByDay
|
* @Description:
|
* @param day
|
* @return
|
* long 返回类型
|
* @throws
|
*/
|
long countTargetUidByDay(@Param("day") String day);
|
|
/**
|
* 根据日期与源用户ID查询
|
* @Title: listBySourceUidAndDay
|
* @Description:
|
* @param sourceUid
|
* @param day
|
* @return
|
* List<TeamDividentsSourceUser> 返回类型
|
* @throws
|
*/
|
List<TeamDividentsSourceUser> listBySourceUidAndDay(@Param("sourceUid") Long sourceUid, @Param("day") String day);
|
|
/**
|
* 根据日期与源用户ID,目标用户ID查询
|
* @Title: selectBySourceUidAndDayAndUid
|
* @Description:
|
* @param sourceUid
|
* @param targetUid
|
* @param day
|
* @return
|
* TeamDividentsSourceUser 返回类型
|
* @throws
|
*/
|
TeamDividentsSourceUser selectBySourceUidAndDayAndUid(@Param("sourceUid") Long sourceUid,
|
@Param("targetUid") Long targetUid, @Param("day") String day);
|
|
TeamDividentsSourceUser selectBySourceUidAndDayAndUidAndTypeForUpdate(@Param("sourceUid") Long sourceUid,
|
@Param("targetUid") Long targetUid, @Param("day") String day,@Param("type") int type);
|
}
|