DriverMapper.java
2.61 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
package com.ruoyi.driver.mapper;
import java.util.List;
import java.util.Set;
import com.ruoyi.driver.domain.Driver;
import com.ruoyi.pojo.request.DriverRequestVo;
import com.ruoyi.pojo.response.DriverResponseVo;
import com.ruoyi.pojo.response.ResponseSchedulingDto;
import org.apache.ibatis.annotations.Param;
/**
* 驾驶员信息Mapper接口
*
* @author 古自健
* @date 2023-07-04
*/
public interface DriverMapper
{
/**
* 查询驾驶员信息
*
* @param id 驾驶员信息主键
* @return 驾驶员信息
*/
public Driver selectDriverById(Long id);
/**
* 查询驾驶员信息列表
*
* @param driver 驾驶员信息
* @return 驾驶员信息集合
*/
public List<Driver> selectDriverList(DriverRequestVo driver);
/**
* 新增驾驶员信息
*
* @param driver 驾驶员信息
* @return 结果
*/
public int insertDriver(Driver driver);
/**
* 修改驾驶员信息
*
* @param driver 驾驶员信息
* @return 结果
*/
public int updateDriver(Driver driver);
/**
* 删除驾驶员信息
*
* @param id 驾驶员信息主键
* @return 结果
*/
public int deleteDriverById(Long id);
/**
* 批量删除驾驶员信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDriverByIds(Long[] ids);
/**
* 批量
* @param driverList
*/
void saveDrivers(@Param("drivers") List<Driver> driverList);
/**
*
* @param jobCodes
* @return
*/
List<Driver> getNameByJobCode(@Param("jobCodes") Set<String> jobCodes);
/**
* 是否存在对应工号在数据库中
* @param jobCode
* @return
*/
Integer jobCodeIsEmpty(@Param("jobCode") String jobCode);
String getDriverImageByJobCode(@Param("jobCode") String jobCode);
List<Driver> getDrivers(Driver driver);
Driver getDriverInfoByJobCode(@Param("jobCode")String jobCode);
Integer insertDriverFace(@Param("deviceId") String deviceId, @Param("jobCodes")List<String> jobCodes);
void updateDriverByComputed(@Param("count")Integer count);
void updateSignStatusDriversByJobCodes(@Param("list") List<Driver> list);
void deleteDeviceIdAssociatedJobCode(@Param("jobCodes") List<String> jobCodes);
List<String> queryJobCodesIsExists(@Param("jobCodes") List<String> jobCodes);
void updateDriverInfoByJobCodes(@Param("drivers") List<Driver> drivers);
void saveScheduling(@Param("responseSchedulingDto") List<ResponseSchedulingDto> responseSchedulingDto);
}