IDriverService.java
2.75 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
package com.ruoyi.driver.service;
import java.io.IOException;
import java.util.List;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.exception.file.InvalidExtensionException;
import com.ruoyi.common.global.Result;
import com.ruoyi.driver.domain.Driver;
import com.ruoyi.pojo.request.DriverRequestVo;
import com.ruoyi.pojo.request.DriverSignInRequestVo;
import com.ruoyi.pojo.request.FaceUpdateReqVo;
import com.ruoyi.pojo.response.DriverResponseVo;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* 驾驶员信息Service接口
*
* @author 古自健
* @date 2023-07-04
*/
public interface IDriverService
{
/**
* 查询驾驶员信息
*
* @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 ids 需要删除的驾驶员信息主键集合
* @return 结果
*/
public int deleteDriverByIds(Long[] ids);
/**
* 删除驾驶员信息信息
*
* @param id 驾驶员信息主键
* @return 结果
*/
public int deleteDriverById(Long id);
/**
* 批量导入员工信息
* @param driverList
*/
void insertDrivers(List<Driver> driverList);
AjaxResult getDriverSchedulingInfo(String schedulingDate,String jobCode);
AjaxResult getDriverSchedulingAll();
AjaxResult checkJobCode(Driver jobCode);
AjaxResult uploadImage(MultipartFile file) throws InvalidExtensionException, IOException;
void downloadHeadImage(String jobCode, HttpServletResponse response);
List<DriverResponseVo> getDrivers(DriverRequestVo driver);
AjaxResult faceRegistrationFeedback(String deviceId, List<String> jobCode);
void updateDriverByComputed();
Result updateFaceByJob(HttpServletRequest request, FaceUpdateReqVo vo);
void updateDriverSignInfo(DriverSignInRequestVo vo);
void updateDrivers(List<Driver> drivers);
/**
* 删除不存在的工号
* @param jobList
*/
void deleteNotEmptyJob(List<String> jobList);
/**
* 计算异常班次
*/
void computedExceptionScheduling();
}