puzhibing
2023-07-30 d02ea504ec952cdc920be3f7ddb6b79dccd24f56
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
package com.supersavedriving.driver.modular.system.dao;
 
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.supersavedriving.driver.modular.system.model.Revenue;
import com.supersavedriving.driver.modular.system.warpper.PerformanceRankingWarpper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
public interface RevenueMapper extends BaseMapper<Revenue> {
 
 
    /**
     * 获取司机总收入
     * @param driverId
     * @return
     * @throws Exception
     */
    Double queryTotalAmount(@Param("driverId") Integer driverId) throws Exception;
 
 
 
    /**
     * 获取司机佣金排行
     * @param time
     * @param dayType
     * @return
     */
    List<PerformanceRankingWarpper> queryDriverRank(@Param("type") Integer type, @Param("time") String time,
                                                    @Param("dayType") Integer dayType);
 
 
    /**
     * 获取代理商账户余额
     * @param companyId
     * @return
     */
    Double queryAgentBalance(@Param("companyId") Integer companyId);
 
 
    /**
     * 获取平台账户余额
     * @return
     */
    Double queryCompanyBalance();
}