Commit f0ccc5dd by 徐高华

链接

parent db7b0ec1
......@@ -32,7 +32,7 @@ public class HmLinkChatServiceImpl implements HmLinkChatService {
@Override
public int save(Long linkId, List<HmLinkChatDTO> list) {
List<HmLinkChatDTO> updateList = list.stream().filter(dto -> null != dto.getChatHmId())
List<HmLinkChatDTO> updateList = list.stream().filter(dto -> null != dto.getLinkChatId())
.collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(updateList)) {
List<Long> notDelIdList = updateList.stream().map(dto -> dto.getChatHmId()).collect(Collectors.toList());
......@@ -42,7 +42,7 @@ public class HmLinkChatServiceImpl implements HmLinkChatService {
this.hmLinkChatMapper.update(entity);
}
}
List<HmLinkChatDTO> addList = list.stream().filter(dto -> null != dto.getChatHmId())
List<HmLinkChatDTO> addList = list.stream().filter(dto -> null == dto.getLinkChatId())
.collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(addList)) {
for (HmLinkChatDTO dto : addList) {
......@@ -62,11 +62,10 @@ public class HmLinkChatServiceImpl implements HmLinkChatService {
Page<HmLinkChatDTO> retPage = PageHelperUtils.changePageHelperToCurrentPage(list, HmLinkChatDTO.class);
return retPage;
}
@Override
public List<HmLinkChatDTO> getLinkCountForHm(String wxEnterpriseId, List<Long> chatHmIdList) {
return this.hmLinkChatMapper.getLinkCountForHm(wxEnterpriseId, chatHmIdList) ;
public List<HmLinkChatDTO> getLinkCountForHm(String wxEnterpriseId, List<Long> chatHmIdList) {
return this.hmLinkChatMapper.getLinkCountForHm(wxEnterpriseId, chatHmIdList);
}
}
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