zhibing.pu
2024-07-25 79fc712ed025069c1d21de230bdc95c74910288c
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
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();
}