package com.stylefeng.guns.modular.system.dao;
|
|
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
import com.stylefeng.guns.modular.system.model.DriverWork;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.Date;
|
import java.util.List;
|
|
public interface DriverWorkMapper extends BaseMapper<DriverWork> {
|
|
|
/**
|
* 获取司机最新上班数据(还未下班的)
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
DriverWork queryNewWork(@Param("driverId") Integer driverId, @Param("type") Integer type,
|
@Param("state") Integer state);
|
|
|
/**
|
* 获取在线时间大于time的数据,且当前为在线状态
|
* @param type
|
* @param time 小时
|
* @return
|
*/
|
List<DriverWork> query(@Param("type") Integer type, @Param("time") Integer time);
|
}
|