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();
|
}
|