DriverMapper.java
3.36 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
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 com.ruoyi.pojo.vo.PeopleResponseVo;
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") List<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);
/**
* 获取已添加的考勤人员
* @param id
* @return
*/
List<PeopleResponseVo> queryAttendanceInfoById(@Param("id") Long id);
/**
* 获取所有可添加的考勤人员
* @return
*/
List<PeopleResponseVo> queryAttendanceInfoAll();
/**
* 删除不存在的工号
* @param list
*/
void deleteNotEmptyJob(List<String> list);
/**
* 获取已经存在的工号
* @param list
* @return
*/
List<String> queryEmptyJob(List<String> list);
void updateDriverBaseInfoByJobCodes(@Param("list") List<Driver> list,@Param("filterImage") Integer filterImage);
List<Driver> selectDriverListAll();
}