Commit afb6c694 by 徐高华

log

parent 55af838f
......@@ -382,11 +382,13 @@ public class GroupChatHmServiceImpl implements GroupChatHmService {
@Override
public void updateLinkCount(String wxEnterpriseId, List<Long> chatHmIdList) {
logger.info("更新活码链接数1={},{}",wxEnterpriseId,chatHmIdList);
if (CollectionUtils.isNotEmpty(chatHmIdList)) {
Set<Long> set = new HashSet<>(chatHmIdList);
List<HmLinkChatDTO> linkGroup = this.hmLinkChatService.getLinkCountForHm(wxEnterpriseId,
new ArrayList<>(set));
List<Long> allList = linkGroup.stream().map(dto -> dto.getLinkChatId()).collect(Collectors.toList());
logger.info("更新活码链接数2={},{}",wxEnterpriseId,allList);
linkGroup.forEach(dto -> {
Long hmId = dto.getChatHmId();
int count = dto.getLinkCount();
......@@ -394,6 +396,7 @@ public class GroupChatHmServiceImpl implements GroupChatHmService {
});
for (Long id : chatHmIdList) {
if (!allList.contains(id)) {
logger.info("更新活码链接数3={},{}",wxEnterpriseId,id);
this.groupChatHmMapper.updateLinkCount(id, 0);
}
}
......
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