|
|
@@ -1,6 +1,7 @@
|
|
|
package com.cyksj.web.controller.manage.corp;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
+import com.cyksj.common.util.Jsons;
|
|
|
import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
import com.cyksj.mapper.corp.CorpFollowMapper;
|
|
|
@@ -79,13 +80,17 @@ public class CorpCustomerAcquistionLinkController {
|
|
|
SearchResult<CorpCustomerAcquisitionLink> search = beanSearcher.search(CorpCustomerAcquisitionLink.class, MapUtils.flatBuilder(request.getParameterMap()).build());
|
|
|
|
|
|
search.getDataList().forEach(e->{
|
|
|
- List<String> userStrList = corpFollowMapper.selectList(Wrappers.lambdaQuery(CorpFollow.class)
|
|
|
- .in(CorpFollow::getUserid, e.getUserList())).stream().map(CorpFollow::getName).collect(Collectors.toList());
|
|
|
- e.setUserStrList(userStrList);
|
|
|
+ try {
|
|
|
+ List<String> userStrList = corpFollowMapper.selectList(Wrappers.lambdaQuery(CorpFollow.class)
|
|
|
+ .in(CorpFollow::getUserid, Jsons.parseList(e.getUserList(),String.class))).stream().map(CorpFollow::getName).collect(Collectors.toList());
|
|
|
+ e.setUserStrList(userStrList);
|
|
|
+
|
|
|
+ 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);
|
|
|
+ } catch (Exception ex) {
|
|
|
+ }
|
|
|
|
|
|
- List<String> tagStrList = corpTagMapper.selectList(Wrappers.lambdaQuery(CorpTag.class)
|
|
|
- .in(CorpTag::getId, e.getTags())).stream().map(CorpTag::getName).collect(Collectors.toList());
|
|
|
- e.setTagStrList(tagStrList);
|
|
|
CorpWelcomeTemplate corpWelcomeTemplate = corpWelcomeTemplateMapper.selectById(e.getMsgId());
|
|
|
if (corpWelcomeTemplate != null) {
|
|
|
e.setMsgName(corpWelcomeTemplate.getName());
|