puzhibing
2023-06-30 f58cca364b731eac2d60a440ffaa804be3cd43fd
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
package com.agentdriving.driver.modular.system.service;
 
import com.baomidou.mybatisplus.service.IService;
import com.agentdriving.driver.modular.system.model.DriverWork;
import com.agentdriving.driver.modular.system.util.ResultUtil;
 
public interface IDriverWorkService extends IService<DriverWork> {
 
 
    /**
     * 上班操作
     * @param driverId
     * @return
     * @throws Exception
     */
    ResultUtil driverWork(Integer driverId) throws Exception;
 
 
    /**
     * 司机下班操作
     * @param driverId      司机id
     * @param onlineTime    在线时长(秒)
     * @return
     * @throws Exception
     */
    ResultUtil driverOffWork(Integer driverId, Long onlineTime) throws Exception;
 
 
    /**
     * 定时任务检查司机余额是否充足
     */
    void taskDriverOffWork();
}