|
|
@ -3,6 +3,8 @@ package com.epmet.service.impl; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.redis.RedisKeys; |
|
|
|
import com.epmet.commons.tools.redis.RedisUtils; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.*; |
|
|
@ -47,6 +49,8 @@ public class StaffServiceImpl implements StaffService { |
|
|
|
private StaffTransferRecordService staffTransferRecordService; |
|
|
|
@Autowired |
|
|
|
private EpmetUserOpenFeignClient epmetUserOpenFeignClient; |
|
|
|
@Autowired |
|
|
|
private RedisUtils redisUtils; |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result<StaffsInAgencyResultDTO> getStaffInfoForHome(StaffsInAgencyFromDTO fromDTO) { |
|
|
@ -255,6 +259,11 @@ public class StaffServiceImpl implements StaffService { |
|
|
|
staffTransferRecordDTO.setAgencyId(fromDTO.getAgencyId()); |
|
|
|
staffTransferRecordDTO.setRemarks(fromDTO.getRemarks()); |
|
|
|
staffTransferRecordService.save(staffTransferRecordDTO); |
|
|
|
//2021.6.7 添加逻辑-人员调动删除token sun start
|
|
|
|
//8.清除可能存在的工作人员登陆token
|
|
|
|
String key = RedisKeys.getCpUserKey("gov", "wxmp", fromDTO.getStaffId()); |
|
|
|
redisUtils.delete(key); |
|
|
|
//2021.6.7 添加逻辑-人员调动删除token sun end
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|