admin
2022-01-11 d1d0b4b9f4452fb6e9b6e39168f503d5b302c999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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);
}