puzhibing
2023-06-30 f58cca364b731eac2d60a440ffaa804be3cd43fd
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
package com.stylefeng.guns.modular.system.dao;
 
import com.stylefeng.guns.modular.system.controller.resp.PerformanceTableResp;
import com.stylefeng.guns.modular.system.controller.resp.RevenueExpenditureResp;
import com.stylefeng.guns.modular.system.model.TRevenue;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * <p>
 * 收入记录 Mapper 接口
 * </p>
 *
 * @author stylefeng
 * @since 2023-03-13
 */
@Mapper
public interface TRevenueMapper extends BaseMapper<TRevenue> {
 
    /**
     * 获取列表
     * @param startTime
     * @param endTime
     * @param code
     * @param businessType
     * @param payType
     * @param driverName
     * @param roleType
     * @param objectId
     * @return
     */
    List<RevenueExpenditureResp> getPageList(@Param("startTime") String startTime, @Param("endTime")String endTime, @Param("code")String code,
                                             @Param("businessType")Integer businessType, @Param("payType")Integer payType, @Param("driverName")String driverName,
                                             @Param("roleType")Integer roleType, @Param("objectId")Integer objectId);
 
    /**
     *
     * @param code
     * @param type
     * @return
     */
    RevenueExpenditureResp commissionOrBalanceDetail(@Param("code")String code, @Param("type")Integer type);
 
    /**
     * 业绩排名,收入佣金
     * @param agentId
     * @param type
     * @param monthDate
     * @return
     */
    List<PerformanceTableResp> getDataStatisticsIncomeOrCommission(@Param("agentId")Integer agentId,@Param("type") Integer type, @Param("monthDate")String monthDate);
 
    /**
     * 业绩排名,收入佣金(广东)
     * @param ids
     * @param type
     * @param monthDate
     * @return
     */
    List<PerformanceTableResp> getDataStatisticsIncomeOrCommissionByIds(@Param("ids")List<Integer> ids, @Param("type") Integer type, @Param("monthDate")String monthDate);
}