|
@@ -1,16 +1,13 @@
|
|
|
package org.fouram.service;
|
|
|
|
|
|
-import java.util.List;
|
|
|
import java.util.concurrent.ExecutorService;
|
|
|
import java.util.concurrent.Executors;
|
|
|
|
|
|
import org.fouram.constants.WebConstants;
|
|
|
import org.fouram.core.base.service.BaseService;
|
|
|
-import org.fouram.core.plugin.weixin.cp.util.WXCpMessageUtil;
|
|
|
import org.fouram.core.util.DateUtil;
|
|
|
import org.fouram.core.util.LoggerUtil;
|
|
|
import org.fouram.dto.output.SyncWeixinUserOutput;
|
|
|
-import org.fouram.entity.SapUser;
|
|
|
import org.fouram.enums.DelFlagEnum;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -65,15 +62,15 @@ public class SyncSapUserToWxService extends BaseService {
|
|
|
// NORMAL数据更新同步企业微信
|
|
|
sapUserService.updateAllNormalSyncWxResult();
|
|
|
// 发送禁用企业微信账号信息
|
|
|
- this.sendQuitUserMsg();
|
|
|
+// this.sendQuitUserMsg();
|
|
|
WebConstants.CACHE.remove(WebConstants.CACHE_SYNC_SAP);
|
|
|
}
|
|
|
|
|
|
// 发送禁用企业微信账号信息
|
|
|
- private void sendQuitUserMsg() throws Exception {
|
|
|
- List<SapUser> unableSapUsers = sapUserService.selectPrimaryListByDelFlag(DelFlagEnum.UNABLE.getCode());
|
|
|
- if (unableSapUsers.size() > 0) {
|
|
|
- WXCpMessageUtil.sendQuitUserMsg("离职用户" + unableSapUsers.size() + "个,请确认");
|
|
|
- }
|
|
|
- }
|
|
|
+// private void sendQuitUserMsg() throws Exception {
|
|
|
+// List<SapUser> unableSapUsers = sapUserService.selectPrimaryListByDelFlag(DelFlagEnum.UNABLE.getCode());
|
|
|
+// if (unableSapUsers.size() > 0) {
|
|
|
+// WXCpMessageUtil.sendQuitUserMsg("离职用户" + unableSapUsers.size() + "个,请确认");
|
|
|
+// }
|
|
|
+// }
|
|
|
}
|