|
|
@@ -66,7 +66,6 @@ public class ADSyncService {
|
|
|
baseDao.updateByCondition("employee","em_adid='CN="+employee.getEm_name()+","+newOUPath+"'","em_code='"+employee.getEm_code()+"'");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}else if (!"生产序列--普工".equals(employee.getEm_emptype()) && !"其它人员".equals(employee.getEm_emptype())) {
|
|
|
Optional<HrOrg> orgOptional = orgList.stream().filter(org -> org.getOr_code().equals(employee.getOrcode())).findFirst();
|
|
|
if(orgOptional.isPresent()){
|
|
|
@@ -74,7 +73,6 @@ public class ADSyncService {
|
|
|
addUser(PinyinUtils.getCustomPinyin(employee.getEm_name()),employee.getEm_name(),ouPath,employee.getEm_password());
|
|
|
baseDao.updateByCondition("employee","em_adid='CN="+employee.getEm_name()+","+ouPath+"'","em_code='"+employee.getEm_code()+"'");
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|