puzhibing
2023-06-27 4f8b61980b0db5995c16139d8eb9542b66da8a9f
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.supersavedriving.driver.modular.system.service;
 
import com.baomidou.mybatisplus.service.IService;
import com.supersavedriving.driver.modular.system.model.DriverWork;
import com.supersavedriving.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();
}