|
|
@@ -46,16 +46,16 @@ public class UasEmployeeListener {
|
|
|
/**
|
|
|
* uas人员资料反审核,禁用企业微信通讯录人员
|
|
|
*/
|
|
|
- @UasEventListener(caller = "Employeemanager", operation = "RESAUDIT")
|
|
|
- public void onEmployeeUnAudit(UasEvent event) {
|
|
|
- if (!addrBookSdk.enabled() || !event.getMaster().equals(DataCenter.INSTANCE.getUsername())) {
|
|
|
- return;
|
|
|
- }
|
|
|
- Employee employee = employeeService.getById(Integer.parseInt(event.getKey().toString()));
|
|
|
- if (null != employee && null != employee.getEm_qywx() && !addrBookSdk.isReadonly()) {
|
|
|
- addrBookSdk.updateUser(new UpdateUserReq().userId(employee.getEm_qywx()).enable(false));
|
|
|
- }
|
|
|
- }
|
|
|
+// @UasEventListener(caller = "Employeemanager", operation = "RESAUDIT")
|
|
|
+// public void onEmployeeUnAudit(UasEvent event) {
|
|
|
+// if (!addrBookSdk.enabled() || !event.getMaster().equals(DataCenter.INSTANCE.getUsername())) {
|
|
|
+// return;
|
|
|
+// }
|
|
|
+// Employee employee = employeeService.getById(Integer.parseInt(event.getKey().toString()));
|
|
|
+// if (null != employee && null != employee.getEm_qywx() && !addrBookSdk.isReadonly()) {
|
|
|
+// addrBookSdk.updateUser(new UpdateUserReq().userId(employee.getEm_qywx()).enable(false));
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* uas人员资料删除,删除企业微信通讯录人员
|