zhibing.pu
2024-04-28 a661e711cebd9f0b684dc73ab732b239812f076f
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
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;
 
 
    /**
     * 获取给定日期范围的在线时长
     * @param driverId
     * @param assessment
     * @param start
     * @param end
     * @return
     */
    Integer querySumTime(Integer driverId, Integer assessment, Date start, Date end);
    
    
    /**
     * 定时检测司机是否连续接单
     */
    void deductionDuration();
}