浏览代码

fix: 企微完课打标签空企微id跳过

xdd 1 周之前
父节点
当前提交
bff194c592
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      fs-service/src/main/java/com/fs/tag/service/impl/FsTagUpdateServiceImpl.java

+ 10 - 1
fs-service/src/main/java/com/fs/tag/service/impl/FsTagUpdateServiceImpl.java

@@ -131,8 +131,12 @@ public class FsTagUpdateServiceImpl implements FsTagUpdateService {
             task.setRetryCount(0);
             task.setQwExternalContactId(item.getQwExternalContactId());
             task.setQwUserId(item.getQwUserId());
-
             FsUserCourseVideo fsUserCourseVideo = courseVideoMap.get(task.getVideoId());
+            if(ObjectUtil.isNull(item.getQwUserId())){
+                log.error("qwUserId is null 已跳过");
+                continue;
+            }
+
             String corpId = qwUserCacheService.queryCorpIdByQwUserId(item.getQwUserId());
             if(StringUtils.isNotNull(corpId)){
                 task.setCorpId(corpId);
@@ -190,6 +194,11 @@ public class FsTagUpdateServiceImpl implements FsTagUpdateService {
             task.setQwExternalContactId(item.getQwExternalContactId());
             task.setQwUserId(item.getQwUserId());
             task.setLogType(1);
+            if(ObjectUtil.isNull(item.getQwUserId())){
+                log.error("qwUserId is null 已跳过");
+                continue;
+            }
+
             String corpId = qwUserCacheService.queryCorpIdByQwUserId(item.getQwUserId());
             if(StringUtils.isNotNull(corpId)){
                 task.setCorpId(corpId);