ソースを参照

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

xdd 1 週間 前
コミット
bff194c592

+ 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);