Przeglądaj źródła

去掉人员反审核的同步动作

yingp 5 lat temu
rodzic
commit
a67c6b17c2

+ 10 - 10
uas-office-qywx/src/main/java/com/usoftchina/uas/office/qywx/listener/UasEmployeeListener.java

@@ -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人员资料删除,删除企业微信通讯录人员