Pārlūkot izejas kodu

Merge branch 'master' into pre

zoujiajian 2 gadi atpakaļ
vecāks
revīzija
084b95f199

+ 1 - 1
netflix-service/src/main/java/com/cyksj/service/corp/CorpCustomerAcquisitionLinkService.java

@@ -23,5 +23,5 @@ public interface CorpCustomerAcquisitionLinkService extends IService<CorpCustome
     /**
      * 同步值班客服
      */
-    void syncDutyLinkUrl();
+    void syncDutyLinkUrl() throws Exception;
 }

+ 2 - 2
netflix-service/src/main/java/com/cyksj/service/corp/impl/CorpCustomerAcquisitionLinkServiceImpl.java

@@ -134,7 +134,7 @@ public class CorpCustomerAcquisitionLinkServiceImpl extends ServiceImpl<CorpCust
     }
 
     @Override
-    public void syncDutyLinkUrl() {
+    public void syncDutyLinkUrl() throws Exception {
         //获取目前可用值班客服
         List<SysCorpFollowRelate> sysCorpFollowRelates = sysCorpFollowRelateMapper.selectList(Wrappers.lambdaQuery(SysCorpFollowRelate.class)
                 .eq(SysCorpFollowRelate::getStatus, 1)
@@ -142,7 +142,7 @@ public class CorpCustomerAcquisitionLinkServiceImpl extends ServiceImpl<CorpCust
         List<String> userIds = sysCorpFollowRelates.stream().map((e) -> e.getId().toString()).collect(Collectors.toList());
         if (CollUtil.isNotEmpty(userIds)) {
             this.update(Wrappers.lambdaUpdate(CorpCustomerAcquisitionLink.class)
-                    .eq(CorpCustomerAcquisitionLink::getUserList, userIds)
+                    .set(CorpCustomerAcquisitionLink::getUserList, Jsons.toJson(userIds))
                     .eq(CorpCustomerAcquisitionLink::getIsDuty, 1));
         }
     }