zyp 5 ngày trước cách đây
mục cha
commit
5077a934a2

+ 7 - 2
fs-service/src/main/java/com/fs/course/service/impl/FsUserCourseVideoServiceImpl.java

@@ -604,10 +604,11 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
         if(qwGroupChatUsers == null || qwGroupChatUsers.isEmpty()){
             return R.error("群参数异常");
         }
+        //修改成通过昵称匹配
         QwExternalContact qwExternalContact =
                 qwExternalContactMapper.selectOne(new QueryWrapper<QwExternalContact>()
                         .eq("user_id", qwGroupChat.getOwner())
-                        .eq("fs_user_id", param.getUserId())
+                        .eq("name", user.getNickName())
                         .eq("corp_id", param.getCorpId())
                         .eq("status",0));
         if(qwExternalContact==null){
@@ -642,8 +643,10 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
 
             log.setUpdateTime(new Date());
             //重粉逻辑
-            fsUserCompanyBindService.bindFsUser(param.getUserId(), qwExternalId, log.getLogId());
+            //
             courseWatchLogMapper.updateFsCourseWatchLog(log);
+            iSopUserLogsInfoService.updateSopUserInfoByExternalId(qwExternalId,param.getUserId());
+
 
         }else {
             //没绑定fsUser直接绑定fsUser
@@ -651,6 +654,8 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
             contact.setId(qwExternalId);
             contact.setFsUserId(param.getUserId());
             qwExternalContactMapper.updateQwExternalContact(contact);
+            iSopUserLogsInfoService.updateSopUserInfoByExternalId(qwExternalId,param.getUserId());
+
             FsUser fsUser = new FsUser();
             fsUser.setUserId(user.getUserId());
             fsUser.setIsAddQw(1);