Commit a2e7a8e6 by 徐高华

test

parent f0ccc5dd
...@@ -4,9 +4,11 @@ import java.util.List; ...@@ -4,9 +4,11 @@ import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.logging.log4j.LogManager;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSON;
import com.gic.api.base.commons.BasePageInfo; import com.gic.api.base.commons.BasePageInfo;
import com.gic.api.base.commons.Page; import com.gic.api.base.commons.Page;
import com.gic.commons.util.EntityUtil; import com.gic.commons.util.EntityUtil;
...@@ -22,6 +24,7 @@ import com.github.pagehelper.PageHelper; ...@@ -22,6 +24,7 @@ import com.github.pagehelper.PageHelper;
@Service("hmLinkChatService") @Service("hmLinkChatService")
public class HmLinkChatServiceImpl implements HmLinkChatService { public class HmLinkChatServiceImpl implements HmLinkChatService {
private static org.apache.logging.log4j.Logger log = LogManager.getLogger(HmLinkChatService.class);
@Autowired @Autowired
private HmLinkChatMapper hmLinkChatMapper; private HmLinkChatMapper hmLinkChatMapper;
...@@ -32,6 +35,7 @@ public class HmLinkChatServiceImpl implements HmLinkChatService { ...@@ -32,6 +35,7 @@ public class HmLinkChatServiceImpl implements HmLinkChatService {
@Override @Override
public int save(Long linkId, List<HmLinkChatDTO> list) { public int save(Long linkId, List<HmLinkChatDTO> list) {
log.info("保存群链接={}",JSON.toJSONString(list));
List<HmLinkChatDTO> updateList = list.stream().filter(dto -> null != dto.getLinkChatId()) List<HmLinkChatDTO> updateList = list.stream().filter(dto -> null != dto.getLinkChatId())
.collect(Collectors.toList()); .collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(updateList)) { if (CollectionUtils.isNotEmpty(updateList)) {
......
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