diff --git a/src/main/java/com/lq/cms/service/impl/WechatMessageServiceImpl.java b/src/main/java/com/lq/cms/service/impl/WechatMessageServiceImpl.java index 0705ab1..2571e52 100755 --- a/src/main/java/com/lq/cms/service/impl/WechatMessageServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/WechatMessageServiceImpl.java @@ -27,9 +27,9 @@ public class WechatMessageServiceImpl extends AdminBaseServiceImpl findAllWechatMessageVo(WechatMessageVo wechatMessageVo) { - List wechatMessageVoList = new ArrayList<>(); - List wechatMessageList = wechatMessageDao.findAllByWechatMessageVo(wechatMessageVo); + List wechatMessageList = wechatMessageDao.findAllByWechatMessageVo(wechatMessageVo); + List wechatMessageVoList = new ArrayList<>(wechatMessageList.size()); wechatMessageList.forEach(wechatMessage -> { WechatMessageVo wechatMessageVo1 = new WechatMessageVo(); BeanUtil.copyNotNull(wechatMessageVo1,wechatMessage);