liujie
2023-08-16 db7fa6a91b9534ac90e219b6f554c54c43c83a5a
driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/dao/RevenueMapper.java
@@ -2,6 +2,45 @@
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();
}