luoyb
2024-04-16 f7dd80d1383f406ba46c417a7c9a95181db94d1a
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
package cc.mrbird.febs.server.hr.service;
 
import cc.mrbird.febs.common.core.entity.system.DicItem;
import cc.mrbird.febs.common.core.exception.FebsException;
import cc.mrbird.febs.server.hr.entity.*;
 
import cc.mrbird.febs.common.core.entity.QueryRequest;
import cc.mrbird.febs.server.hr.entity.EmpDimissionLog;
import cc.mrbird.febs.server.hr.entity.EmpJobChange;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
 
import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import java.util.Map;
 
/**
 * name:EmpBaseinfo
 * package:cc.mrbird.febs.server.hr.controller
 * description:服务接口
 *
 * @author luoyibo
 * @date 2021-01-30 08:04:50
 * @since JDK1.8
 */
public interface IEmpBaseInfoService extends IService<EmpBaseInfo> {
    /**
     * 查询(分页)
     *
     * @param request     QueryRequest
     * @param empBaseInfo empBaseinfo
     * @return IPage<EmpBaseinfo>
     */
    IPage<EmpBaseInfo> findEmpBaseInfos(QueryRequest request, EmpBaseInfo empBaseInfo);
 
    /**
     * 智搜 查询(分页)
     *
     * @param request     QueryRequest
     * @param empBaseInfo empBaseinfo
     * @return IPage<EmpBaseinfo>
     */
    IPage<EmpBaseInfo> findZsEmpBaseInfos(QueryRequest request, EmpBaseInfo empBaseInfo);
 
 
    /**
     * 查询(所有)
     *
     * @param empBaseInfo empBaseInfo
     * @return List<EmpBaseinfo>
     */
    List<EmpBaseInfo> findEmpBaseInfos(EmpBaseInfo empBaseInfo);
 
    /**
     * 新增
     *
     * @param empBaseInfo empBaseInfo
     */
    void createEmpBaseInfo(EmpBaseInfo empBaseInfo);
 
    /**
     * 修改
     *
     * @param empBaseInfo empBaseInfo
     */
    void updateEmpBaseInfo(EmpBaseInfo empBaseInfo);
 
    /**
     * 删除
     *
     * @param empBaseInfo empBaseInfo
     */
    void deleteEmpBaseInfo(EmpBaseInfo empBaseInfo);
 
    /**
     * 根据Id批量逻辑删除记录
     * <p>
     * date 2021-01-28 10:48
     *
     * @param ids 待删除Id
     * @return void
     * @author: luoyibo
     */
    void logicDelEmpBaseInfo(String ids);
 
    /**
     * 人员编号唯一性检查
     * <p>
     * date 2021-02-03 22:32
     *
     * @param empBaseInfo 人员信息
     * @return boolean
     * @author: luoyibo
     */
    boolean verifyEmpNumb(EmpBaseInfo empBaseInfo);
 
    /**
     * 从暂存状态转成正式状态
     * <p>
     * date 2021-02-04 21:11
     *
     * @param ids 待转换记录Id
     * @return boolean
     * @author: luoyibo
     */
    boolean momentToNormal(String ids);
 
    /**
     * 获取指定人员信息
     * <p>
     * date 2021-02-17 08:12
     *
     * @param empBaseInfo 获取条件
     * @return cc.mrbird.febs.server.hr.entity.EmpBaseInfo
     * @author: luoyibo
     */
    EmpBaseInfo getEmpBaseInfo(EmpBaseInfo empBaseInfo);
 
    /**
     * @param s
     * @param btime
     * @param index 0 今天 1本周 2本月 3今年
     * @return
     */
    Map<String, Object> countBaseInfoList(String s, String btime, String index);
 
    IPage<EmpBaseInfo> baseInfoList(String index, String btime, String etime, String pageSize, String pageNum, String number, String name);
 
    IPage<EmpBaseInfo> baseInfoHeList(String index, String btime, String etime, String pageSize, String pageNum, String number, String name);
 
    IPage<EmpDimissionAttend> empBaseInfoCqList(String index, String btime, String etime, String pageSize, String pageNum, String number, String name);
 
    IPage<EmpLeaveInfo> empBaseInfoQjList(String index, String btime, String etime, String pageSize, String pageNum, String number, String name);
 
    IPage<EmpPhysicalExam> empBaseInfoTjList(String index, String btime, String etime, String pageSize, String pageNum, String number, String name);
 
    IPage<EmpLaborTrouble> empBaseInfoLzList(String index, String btime, String etime, String pageSize, String pageNum, String number, String name);
 
    IPage<EmpJobChange> empBaseInfoTgList(String index, String btime, String etime, String pageSize, String pageNum, String number, String name);
 
    IPage<EmpOccupational> empBaseInfoGsList(String index, String btime, String etime, String pageSize, String pageNum, String number, String name);
 
    IPage<EmpAccidentCases> empBaseInfoYwList(String index, String btime, String etime, String pageSize, String pageNum, String number, String name);
 
    IPage<EmpInsurance> empBaseInfoSbList(String index, String btime, String etime, String pageSize, String pageNum, String number, String name);
 
    IPage<EmpUnemployment> empBaseInfoSyjList(String index, String btime, String etime, String pageSize, String pageNum, String number, String name);
 
    IPage<EmpBadRecord> empBaseInfoBlList(String index, String btime, String etime, String pageSize, String pageNum, String number, String name);
 
    /**
     * 关闭员工档案
     * <p>
     * date 2021-02-18 12:54
     *
     * @param empDimissionLog
     * @return boolean
     * @author: luoyibo
     */
    boolean closeEmpArchives(EmpDimissionLog empDimissionLog);
 
    /**
     * 员工岗位变更
     * <p>
     * date 2021-02-18 20:32
     *
     * @param empJobChange 1
     * @return boolean
     * @author: luoyibo
     */
    boolean changeEmpJob(EmpJobChange empJobChange);
 
    /**
     * 导入员工
     *
     * @param listObject
     */
    void importEmpBaseInfo(List<List<Object>> listObject, List<String> returnList, List<DicItem> dicItems) throws FebsException;
 
    void getImage(String empId, HttpServletResponse response) throws Exception;
 
    /**
     * 增加在职员工信息
     * <p>
     * date 2021-03-03 00:06
     *
     * @param empBaseInfo 在职员工信息
     * @return cc.mrbird.febs.server.hr.entity.EmpBaseInfo
     * @author: luoyibo
     */
    EmpBaseInfo addInEmpBaseInfo(EmpBaseInfo empBaseInfo);
 
    Long getEmpIdByEmpNumb(String empNumb);
 
    EmpBaseInfo getEmpBaseInfoByEmpNumb(String empNumb);
 
    void exportEmpAll(HttpServletResponse response, EmpBaseInfo empBaseinfo) throws IOException;
 
    boolean verifyCertificateNumb(EmpBaseInfo empBaseInfo);
 
    List<EmpBaseInfo> listAll(QueryWrapper<EmpBaseInfo> wrapper);
 
    /**
     *
     * 更新人员工龄
     *
     * date 2022-03-13 09:45
     * @author: luoyibo
     * @return boolean
     */
    boolean updateSeniority();
 
    /**
     *
     * 更新人员年龄
     *
     * date 2022-03-13 09:47
     * @author: luoyibo
     * @param userId 1
     * @return boolean
     */
    boolean updateEmpAge(String userId);
    boolean updateDeptName();
}