优化代码

master
星期八 5 years ago
parent fec9028b50
commit 32ba103dd2
  1. 4
      src/main/java/com/lq/cms/service/impl/WechatMessageServiceImpl.java

@ -27,9 +27,9 @@ public class WechatMessageServiceImpl extends AdminBaseServiceImpl<WechatMessage
@Override @Override
public List<WechatMessageVo> findAllWechatMessageVo(WechatMessageVo wechatMessageVo) { public List<WechatMessageVo> findAllWechatMessageVo(WechatMessageVo wechatMessageVo) {
List<WechatMessageVo> wechatMessageVoList = new ArrayList<>();
List<WechatMessage> wechatMessageList = wechatMessageDao.findAllByWechatMessageVo(wechatMessageVo);
List<WechatMessage> wechatMessageList = wechatMessageDao.findAllByWechatMessageVo(wechatMessageVo);
List<WechatMessageVo> wechatMessageVoList = new ArrayList<>(wechatMessageList.size());
wechatMessageList.forEach(wechatMessage -> { wechatMessageList.forEach(wechatMessage -> {
WechatMessageVo wechatMessageVo1 = new WechatMessageVo(); WechatMessageVo wechatMessageVo1 = new WechatMessageVo();
BeanUtil.copyNotNull(wechatMessageVo1,wechatMessage); BeanUtil.copyNotNull(wechatMessageVo1,wechatMessage);

Loading…
Cancel
Save