liuxiaolong
2019-05-06 f99bc8c6a1d10610373738edd7d0aa0181c81d99
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
package com.cloud.user.controller;
 
import com.alibaba.fastjson.JSONObject;
import com.cloud.model.common.Page;
import com.cloud.model.common.Result;
import com.cloud.model.sys.BbEmployee;
import com.cloud.user.filter.AuthNoneIgnore;
import com.cloud.user.service.BbEmployeeService;
import com.cloud.user.vo.BbEmployeeVO;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
 
import java.util.List;
import java.util.Map;
 
/**
 * 人员
 * 控制层
 */
@Api(value = "BbEmployeeController", description = "人员表操作控制层")
@RequestMapping("/data/api-u")
@RestController
public class BbEmployeeController {
 
    @Autowired
    private BbEmployeeService service;
        
    /**
     * 多人员导入 pl
     */
    @RequestMapping("/BbEmployee/upload")
    @ApiOperation(value = "add", notes = "多人员导入", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiImplicitParams({
         /*   @ApiImplicitParam(name = "files", value = "图片上传", required = true, dataType = "file", paramType = "body"),
            @ApiImplicitParam(name = "files", value = "图片上传", required = true, dataType = "long", paramType = "body"),
            @ApiImplicitParam(name = "files", value = "图片上传", required = true, dataType = "long", paramType = "body")*/
    })
    @AuthNoneIgnore
    public JSONObject add(MultipartFile[] files,Integer orgId,Integer officeId) {
        for (MultipartFile file : files) {
            System.out.println("上传的文件名是"+file.getOriginalFilename());
        }
        return service.addBbEmployee(files,orgId,officeId);
    }
        
    /**
     * 临时库的编辑回显
     * @author pl
     */
    @RequestMapping("/BbEmployee/toUpdate")
    @ApiOperation(value = "人员修改查询", notes = "根据用户id,orgId查询要修改的人员信息", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bean", value = "人员Employee实例", required = true, dataType = "BbEmployee", paramType = "body")
    })
    public Map<String,Object> toUpdate(BbEmployee bean) {
        return service.toUpdateBbEmployee(bean);
    }
 
    /**
     * 除了临时库其他的编辑回显
     * @author pl
     */
    @RequestMapping("/BbEmployee/anyThingToUpdate")
    @ApiOperation(value = "人员修改查询", notes = "根据用户id,orgId查询要修改的人员信息", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bean", value = "人员Employee实例", required = true, dataType = "BbEmployee", paramType = "body")
    })
    public Map<String,Object> anyThingToUpdate(BbEmployee bean) {
        return service.anyThingToUpdate(bean);
    }
 
 
    /**
     *检索提供人员信息查询接口  , 都是自家人,考勤 也稍稍 用一下 19-03-07
     * @author wp 19-01-12 新年伊始
     */
    @AuthNoneIgnore
    @RequestMapping("/BbEmployee/queryPersonSimpleInfoById")
    @ApiOperation(value = "检索提供人员信息查询", notes = "根据用户id查询人员简单信息", httpMethod = "POST",
            produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "personId", value = "人员Id", required = true, dataType = "string", paramType = "query")
    })
    public Map<String,Object> queryPersonSimpleInfoById(@RequestParam(required = true) String personId,
                                                        @RequestParam(required = false) Boolean delFlag){
        return service.queryPersonSimpleInfoById(personId,delFlag);
    }
        
    /**
     * 编辑
     * @author lp
     */
    @RequestMapping("/BbEmployee/update")
    @ApiOperation(value = "人员修改更新", notes = "根据用户id,orgId保存要修改的人员信息", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "beanVO", value = "人员Employee实例", required = true, dataType = "BbEmployee", paramType = "body")
    })
    public Result update(@RequestBody BbEmployeeVO beanVO) {
        try{
            service.updateBbEmployee(beanVO);
            return Result.custom("修改成功!",0,true,null);
        }catch (Exception e){
            e.printStackTrace();
        }
        return Result.custom("修改失败!",1,false,null);
    }
 
 
    /**
     * 临时库的保存  pl
     */
    @RequestMapping("/BbEmployee/editToSave")
    @ApiOperation(value = "临时库的保存", notes = "", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bean", value = "人员实例", required = true, dataType = "BbEmployee", paramType = "body"),
            @ApiImplicitParam(name = "isMerge", value = "有没有经过合并", required = true, dataType = "String", paramType = "body"),
            @ApiImplicitParam(name = "mergeFrom", value = "被合并人员的id", required = true, dataType = "String", paramType = "body"),
            @ApiImplicitParam(name = "roleIds", value = "设置的角色id,可设置多个,以逗号分隔,没设置可不传", required = false, dataType = "int", paramType = "body"),
    })
    public Result editToSave(BbEmployee bean, String isMerge, String mergeFrom, String roleIds) {
        //try{
            service.saveTemp(bean,isMerge,mergeFrom,roleIds);
            //service.deleteByIdFromTemp(bean.getId());
            return Result.custom("保存成功!",0,true,null);
        //}catch (Exception e){
        //    e.printStackTrace();
        //}
        //return Result.custom("保存失败!",1,false,null);
    }
 
    /**
     * 除了临时库以外的保存  pl
     */
    @RequestMapping("/BbEmployee/anyThingToSave")
    @ApiOperation(value = "anyThingToSave", notes = "除了临时库以外的保存", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bean", value = "人员实例", required = true, dataType = "BbEmployee", paramType = "body"),
            @ApiImplicitParam(name = "roleIds", value = "设置的角色id,可设置多个,以逗号分隔,没设置可不传", required = false, dataType = "int", paramType = "body"),
    })
    public Result anyThingToSave(BbEmployee bean,String roleIds) {
       // try{
        String msg = service.anyThingToSave(bean, roleIds);
        return Result.custom("保存成功,"+(msg != null?msg:""),0,true,null);
        //}catch (Exception e){
          //  e.printStackTrace();
        //}
        //return Result.custom("保存失败!",1,false,null);
    }
 
 
    /**
     * 多人员导入的保存  pl
     */
    @RequestMapping("/BbEmployee/uploadToSave")
    @ApiOperation(value = "uploadToSave", notes = "多人员导入的保存", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bean", value = "人员实例", required = true, dataType = "BbEmployee", paramType = "body"),
            @ApiImplicitParam(name = "isMerge", value = "有没有经过合并", required = true, dataType = "String", paramType = "body"),
            @ApiImplicitParam(name = "mergeFrom", value = "被合并人员的id", required = true, dataType = "String", paramType = "body"),
    })
    public Result uploadToSave(BbEmployee bean, String isMerge, String mergeFrom) {
            service.saveUpload(bean,isMerge,mergeFrom);
            return Result.custom("保存成功!",0,true,null);
//        }catch (Exception e){
//            e.printStackTrace();
//        }
//        return Result.custom("保存失败!",1,false,null);
    }
 
    /**
     * 单张图片的编辑  pl
     */
    @RequestMapping("/BbEmployee/singleEdit")
    @ApiOperation(value = "singleEdit", notes = "单张图片的编辑", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
   /* @ApiImplicitParams({
            @ApiImplicitParam(name = "file", value = "上传的图片", required = true, dataType = "file", paramType = "body"),
            @ApiImplicitParam(name = "exPersonId", value = "排除单人", required = false, dataType = "string", paramType = "body")
    })*/
    public JSONObject singleEdit(MultipartFile file,String exPersonId) {
 
        return service.singleEdit(file , exPersonId);
    }
 
    /**
     * 临时库编辑时删除
     * @author pl
     */
    @RequestMapping("/BbEmployee/deleteFromTemp")
    @ApiOperation(value = "临时库编辑时删除", notes = "根据用户id删除人员信息", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "人员ID", required = true, dataType = "String", paramType = "query"),
    })
    public Map<String,Object> deleteFromTemp(String id) {
        return service.deleteByIdFromTemp(id);
    }
 
    /**
     * 查询底库是否有重复的身份证号
     * @author pl
     */
    @RequestMapping("/BbEmployee/isRepeatIdCard")
    @ApiOperation(value = "查询底库是否有重复的身份证号", notes = "查询底库是否有重复的身份证号", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "人员id", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "cardId", value = "身份证号", required = true, dataType = "String", paramType = "query"),
    })
    public Map<String,Object> isRepeatIdCard(@RequestParam Map<String,Object> params) {
        return service.isRepeatIdCard(params);
    }
 
    /**
     * 列表
     * @author lp panlei-update-11月
     */
    @RequestMapping("/BbEmployee/list")
    @ApiOperation(value = "查询人员列表", notes = "根据用户id,orgId查询人员信息列表", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "选择的部门id/001-总库", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "start", value = "起始页", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "length", value = "条数", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "orgId", value = "分库orgId", required = false, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "groupInformation", value = "人员姓名 身份证号 学号,手机号,组织机构名称等组合信息", required = false, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "type", value = "人员类型-学生 教师 校外", required = false, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "distributionIds", value = "集群数组", required = false, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "phone", value = "电话号", required = false, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "delFlag", value = "是否查询已删除 true包含删除人员", required = false, dataType = "boolean", paramType = "query"),
            @ApiImplicitParam(name = "orgIds", value = "是否查询已删除 true包含删除人员", required = false, dataType = "list", paramType = "query")
            //    @ApiImplicitParam(name = "isAll", value = "是否查询所选部门下全部人员 0 代表查全部 1 查当前部门下", required = true, dataType = "String", paramType = "query")
    })
    @AuthNoneIgnore
    public Page<BbEmployee> findBbEmployees(@RequestBody Map<String, Object> params){
        return service.findBbEmployees(params);
    }
 
    /**
     * 根据人员id查询部门
     */
    @RequestMapping("/BbEmployee/findBbEmployeeByCurUser")
    @ApiOperation(value = "根据人员组织机构id查询下面所有机构的人员", notes = "根据人员组织机构id查询下面所有机构的人员", httpMethod ="GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "String", paramType = "query")
    })
    public List<BbEmployee> findBbEmployeeByCurUser(@RequestParam Map<String, Object> params){
        return service.findBbEmployeeList(params);
    }
//
//    /**
//     * 列表
//     * @author lp panlei-update-11月
//     */
//    @RequestMapping("/BbEmployee/list1")
//    @ApiOperation(value = "查询人员列表", notes = "根据用户id,orgId查询人员信息列表", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "id", value = "选择的部门id", required = true, dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "start", value = "起始页", required = true, dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "length", value = "条数", required = true, dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "orgId", value = "分库orgId", required = true, dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "groupInformation", value = "人员姓名,身份证号,学号,分布集群设备等组合信息", required = true, dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "type", value = "人员类型-学生,教师,校外", required = true, dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "distributionIds", value = "集群数组", required = true, dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "phone", value = "电话号", required = false, dataType = "String", paramType = "query"),
//            //    @ApiImplicitParam(name = "isAll", value = "是否查询所选部门下全部人员 0 代表查全部 1 查当前部门下", required = true, dataType = "String", paramType = "query")
//    })
//    @AuthNoneIgnore
//    public Page<BbEmployee> findBbEmployees1(@RequestParam Map<String, Object> params) {
//        System.out.println(params);
//        return service.findBbEmployees(params);
//    }
    
    /**
     * 删除
     * @author lp panlei-update-11月
     */
    @RequestMapping("/BbEmployee/delete")
    @ApiOperation(value = "删除人员", notes = "根据用户id,orgId删除人员信息", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "人员ID", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "orgId", value = "分库orgId", required = false, dataType = "String", paramType = "query")
    })
    public Map<String,Object> delete(@RequestParam Map<String, Object> params) {
        return service.deleteById(params);
    }
 
    /**
     *获取某个组织下什么类型的成员
     * @author lp
     */
    @RequestMapping("/findOrgEmployeeByType")
    @ApiOperation(value = "获取某个组织下什么类型的成员", notes = "获取某个组织下什么类型的成员", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "组织ID", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "orgId", value = "分库orgId", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "type", value = "人员类型", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "start", value = "起始页", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "length", value = "条数", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "name", value = "查询姓名参数", required = true, dataType = "String", paramType = "query")
    })
    public Page<BbEmployee> findOrgEmployeeByType(@RequestParam Map<String, Object> params){
 
        return service.findOrgEmployeeByType(params);
    }
 
    /**
     * 获取访客被访人
     * @author lp
     */
    @RequestMapping("/BbEmployee/findOrgEmpInVisit")
    @ApiOperation(value = "获取某个组织下什么类型的成员", notes = "获取某个组织下什么类型的成员", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "机构id", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "type", value = "人员类型", required = false, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "start", value = "起始页", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "length", value = "条数", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "name", value = "查询姓名参数", required = false, dataType = "String", paramType = "query")
    })
    public Page<BbEmployee> findOrgEmpInVisit(@RequestParam Map<String, Object> params){
 
        return service.findOrgEmpInVisit(params);
    }
 
 
    /**
     * 获取人员表ID集合
     * @author lp
     * @param params
     * @return
     */
    @ApiOperation(value = "feign对外接口查询人员ID集合", notes = "feign对外接口查询人员ID集合", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "组织ID", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "orgId", value = "分库orgId", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "type", value = "人员类型", required = true, dataType = "String", paramType = "query"),
    })
    @RequestMapping("BbEmployee/feign/findOrgEmpIds")
    public List<Integer> findOrgEmpIds(@RequestParam Map<String, Object> params,@RequestParam("access_token") String access_token){
 
        return service.findOrgEmpIds(params);
    }
 
    /**
     * Fegin 获取某个组织人员表ID和头像的map集合
     * @author lp
     * @param params
     * @return
     */
    @ApiOperation(value = "feign获取人员表ID和头像的map集合",response = Map.class, responseContainer = "Map", notes = "feign对外接口查询人员ID集合", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "组织ID", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "orgId", value = "分库orgId", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "type", value = "人员类型", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "start", value = "起始页", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "length", value = "长度", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "searchName", value = "姓名", required = true, dataType = "String", paramType = "query")
    })
    @RequestMapping("BbEmployee/feign/findOrgEmpMap")
    public List<Map<String,Object>> findOrgEmpMap(@RequestParam Map<String, Object> params,@RequestParam("access_token") String access_token){
 
        return service.findOrgEmpMap(params);
    }
 
 
    /**
     * 获取某个组织人员信息
     *  @author lp panlei-update-11月
     * @param params
     * @return
     */
    @ApiOperation(value = "获取某个组织人员信息", notes = "获取某个组织人员信息", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "组织ID", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "orgId", value = "分库orgId", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "type", value = "人员类型", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "start", value = "起始页", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "length", value = "长度", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "searchName", value = "姓名", required = true, dataType = "String", paramType = "query")
    })
    @RequestMapping("BbEmployee/findEmpsByOrg")
    public Map<String,Object> findEmpsByOrg(@RequestParam Map<String, Object> params){
 
        return service.findEmpsByOrg(params);
    }
 
    /**
     * 获取人员表教师的id
     *  @author lp
     * @param params
     * @return
     */
    @ApiOperation(value = "feign获取人员表ID和头像的map集合", response = Map.class, responseContainer = "Map",notes = "feign对外接口查询人员ID集合", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "orgId", value = "分库orgId", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "type", value = "教师类型", required = true, dataType = "String", paramType = "query"),
    })
    @RequestMapping("BbEmployee/feign/findOrgTeaMap")
    public List<Map<String,Object>> findOrgTeaMap(@RequestParam Map<String, Object> params,@RequestParam("access_token") String access_token){
 
        return service.findOrgTeaMap(params);
    }
 
    /**
     * 根据id查询人员信息
     *  @author panlei
     * @param params
     * @return
     */
    @ApiOperation(value = "根据id查询人员信息", notes = "根据id查询人员信息", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            //@ApiImplicitParam(name = "orgId", value = "分库orgId", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "employeeId", value = "人员id", required = true, dataType = "String", paramType = "query"),
    })
    @RequestMapping("BbEmployee/feign/findEmpById")
    @AuthNoneIgnore
    public BbEmployee findEmpById(@RequestParam Map<String, Object> params){
 
        return service.findEmpById(params);
    }
 
    /**
     * 人员组织机构变更
     * @author lp
     * @param params
     * @return
     */
    @ApiOperation(value = "人员组织机构变更", notes = "人员组织机构变更", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "orgId", value = "分库orgId", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "employeeIds", value = "人员ids", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "officeId", value = "部门id", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "updateOfficeId", value = "修改后的部门id", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "updateOrgId", value = "修改后的组织机构id", required = true, dataType = "String", paramType = "query"),
    })
    @RequestMapping("/BbEmployee/updateOfficeId")
    public Result updateOfficeId(@RequestParam Map<String, Object> params){
        try{
            return Result.ok("操作成功", service.updateOfficeId(params));
        }catch (Exception e){
            e.printStackTrace();
            return Result.error(e);
        }
    }
 
    /**
     * 根据id查询人员信息和分布位置信息
     * @author panlei
     * @param params
     * @return
     */
    @ApiOperation(value = "根据id查询人员信息和分布位置信息", notes = "根据id查询人员信息和分布位置信息", httpMethod = "GET", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    @ApiImplicitParams({
            //@ApiImplicitParam(name = "orgId", value = "分库orgId", required = true, dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "employeeId", value = "人员id", required = true, dataType = "String", paramType = "query"),
    })
    @RequestMapping("BbEmployee/findLocationById")
    @AuthNoneIgnore
    public Map findLocationById(@RequestParam Map<String, Object> params){
 
        return service.findEmpAndLocationById(params);
    }
}