|
|
@@ -348,17 +348,19 @@ public class SysUserOrderAuthorServiceImpl implements ISysUserOrderAuthorService
|
|
|
public void quitUser() {
|
|
|
List<SysUser> userList=userMapper.selectUser();
|
|
|
Set<String> SapEmployeeIdList=userQuitMapper.selectAllUserSapEmployeeId();
|
|
|
- final Set<String> employList=SapEmployeeIdList.stream().map(String::toUpperCase).collect(Collectors.toSet());
|
|
|
- userList.forEach(sysUser -> {
|
|
|
- SysUserExt userExt=userExtMapper.selectSysUserExtById(sysUser.getUserId());
|
|
|
- if(userExt !=null){
|
|
|
- if (employList.contains(userExt.getSapEmployeeId().toUpperCase())) {
|
|
|
- sysUser.setQuit("2");
|
|
|
- userMapper.updateUser(sysUser);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
+ Set<String> employList=SapEmployeeIdList.stream().map(String::toUpperCase).collect(Collectors.toSet());
|
|
|
+ for (SysUser sysUser :userList
|
|
|
+ ) {
|
|
|
+ SysUserExt userExt = userExtMapper.selectSysUserExtById(sysUser.getUserId());
|
|
|
+ if (userExt != null) {
|
|
|
+ if(employList!=null && employList.size()>0){
|
|
|
+ if (employList.contains(userExt.getSapEmployeeId().toUpperCase())) {
|
|
|
+ sysUser.setQuit("2");
|
|
|
+ userMapper.updateUser(sysUser);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|