From c7fe3fdd3f86fc71d73a256b481e550c8636cb28 Mon Sep 17 00:00:00 2001 From: tangxiaobao <303826152@qq.com> Date: 星期五, 17 九月 2021 16:26:18 +0800 Subject: [PATCH] lyq-修改调查问卷导出问题 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWorkGuideServiceImpl.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWorkGuideServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWorkGuideServiceImpl.java index cde44a3..38913b4 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWorkGuideServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWorkGuideServiceImpl.java @@ -159,7 +159,9 @@ if (!iPage.getRecords().isEmpty()) { iPage.getRecords().forEach(comActWorkGuideVO -> { ComActWorkGuideClassifyDO comActWorkGuideClassifyDO = comActWorkGuideClassifyDAO.selectById(comActWorkGuideVO.getClassify()); - comActWorkGuideVO.setClassifyName(comActWorkGuideClassifyDO.getClassifyName()); + if (comActWorkGuideClassifyDO != null) { + comActWorkGuideVO.setClassifyName(comActWorkGuideClassifyDO.getClassifyName()); + } }); } return R.ok(iPage); -- Gitblit v1.7.1