package com.stylefeng.guns.modular.system.service;
|
|
import com.baomidou.mybatisplus.service.IService;
|
import com.stylefeng.guns.modular.system.model.DriverOnline;
|
|
import java.util.Date;
|
|
public interface IDriverOnlineService extends IService<DriverOnline> {
|
|
|
/**
|
* 添加数据
|
* @param driverId
|
* @throws Exception
|
*/
|
void addDriverOnline(Integer driverId) throws Exception;
|
|
|
void addDriverOnline1(Integer driverId) throws Exception;
|
|
|
/**
|
* 获取给定日期范围的在线时长
|
* @param driverId
|
* @param assessment
|
* @param start
|
* @param end
|
* @return
|
*/
|
Integer querySumTime(Integer driverId, Integer assessment, Date start, Date end);
|
|
|
/**
|
* 定时检测司机是否连续接单
|
*/
|
void deductionDuration();
|
|
|
/**
|
* 定时检测司机是否连续接单
|
*/
|
void deductionDuration1();
|
}
|