Commit f34c7820 by 徐高华

parent 88913038
......@@ -5,6 +5,7 @@ import java.util.HashSet;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -97,7 +98,7 @@ public class GroupChatHmServiceImpl implements GroupChatHmService {
dto.setChatHmCode("HM10" + hmid);
List<Long> chatidList = dto.getChatIdList() ;
List<TabGroupChat> chatList = this.groupChatMapper.listByIdSet(new HashSet<>(chatidList));
List<String> wxChatidList = chatList.stream().map(item -> item.getWxChatId()).collect(Collectors.toList());
List<String> wxChatidList = chatList.stream().filter(item->StringUtils.isNotBlank(item.getWxChatIdDk())).map(item -> item.getWxChatIdDk()).collect(Collectors.toList());
logger.info("企微群id={}", wxChatidList);
AddJoinWayDTO joinDTO = new AddJoinWayDTO();
joinDTO.setScene(2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment