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);
|
}
|