wjj 4 days ago
parent
commit
8d074073c7

+ 3 - 1
fs-service/src/main/java/com/fs/qw/service/impl/QwExternalContactServiceImpl.java

@@ -4746,12 +4746,14 @@ public class QwExternalContactServiceImpl extends ServiceImpl<QwExternalContactM
 
     @Override
     public R updateQwExternalContactBindUserId(QwExternalContact qwExternalContact) {
+        //获取原有的fsUserId 查询用户采集信息
+        QwExternalContact orgData = qwExternalContactMapper.selectQwExternalContactById(qwExternalContact.getId());
         QwExternalContact c = new QwExternalContact();
         c.setId(qwExternalContact.getId());
         c.setFsUserId(qwExternalContact.getFsUserId());
 //        adHtmlClickLogService.upload(c.getState(), AdUploadType.REGISTERED, e -> c.setUploadRegisterStatus(1));
         if (qwExternalContact.getFsUserId() != null) {
-            FsUserInformationCollection collection = fsUserInformationCollectionMapper.selectFsUserInformationCollectionByUserId(qwExternalContact.getFsUserId());
+            FsUserInformationCollection collection = fsUserInformationCollectionMapper.selectFsUserInformationCollectionByUserId(orgData.getFsUserId());
             if (collection != null) {
                 FsUserInformationCollection map = new FsUserInformationCollection();
                 map.setId(collection.getId());