zoujiajian 2 år sedan
förälder
incheckning
737f4810e9

+ 7 - 0
netflix-dao/src/main/java/com/cyksj/model/entity/CorpCustomerAcquisitionLink.java

@@ -62,6 +62,13 @@ public class CorpCustomerAcquisitionLink extends BaseEntity {
     @DbIgnore
     private List<String> userStrList;
 
+    /**
+     * 客服选择
+     */
+    @TableField(exist = false)
+    @DbIgnore
+    private List<String> chooseDutyUserList;
+
     /**
      *  标签名称
      */

+ 7 - 0
netflix-web/src/main/java/com/cyksj/web/controller/manage/corp/CorpCustomerAcquistionLinkController.java

@@ -1,5 +1,6 @@
 package com.cyksj.web.controller.manage.corp;
 
+import cn.hutool.core.util.StrUtil;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.cyksj.common.util.Jsons;
 import com.cyksj.dto.Result;
@@ -85,6 +86,12 @@ public class CorpCustomerAcquistionLinkController {
                         .in(CorpFollow::getUserid, Jsons.parseList(e.getUserList(),String.class))).stream().map(CorpFollow::getName).collect(Collectors.toList());
                 e.setUserStrList(userStrList);
 
+                if (StrUtil.isNotEmpty(e.getChooseDutyUsers())) {
+                    List<String> dutyUserList = corpFollowMapper.selectList(Wrappers.lambdaQuery(CorpFollow.class)
+                            .in(CorpFollow::getUserid, Jsons.parseList(e.getChooseDutyUsers(), String.class))).stream().map(CorpFollow::getName).collect(Collectors.toList());
+                    e.setChooseDutyUserList(dutyUserList);
+                }
+
                 List<String> tagStrList = corpTagMapper.selectList(Wrappers.lambdaQuery(CorpTag.class)
                         .in(CorpTag::getId, Jsons.parseList(e.getTags(),Long.class))).stream().map(CorpTag::getName).collect(Collectors.toList());
                 e.setTagStrList(tagStrList);