From dfd80c77abd68b95a8fc1e832d36d6f756083e04 Mon Sep 17 00:00:00 2001 From: puhanshu <a9236326> Date: 星期五, 05 八月 2022 13:26:44 +0800 Subject: [PATCH] bug修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwPatrolRecordServiceImpl.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/ComSwPatrolRecordServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwPatrolRecordServiceImpl.java index d922778..e497c51 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwPatrolRecordServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwPatrolRecordServiceImpl.java @@ -254,8 +254,10 @@ .eq(ComSwPatrolRecordReportDO::getPatrolRecordId, patrolRecordId)); if (null != comSwPatrolRecordReportDO) { if (comSwPatrolRecordVO.getIsHiddenDanger().equals(ComSwPatrolRecordVO.isOk.yes)) { - if (null != comSwDangerReportDAO.selectById(comSwPatrolRecordReportDO.getReportId())) { + ComSwDangerReportDO comSwDangerReportDO=comSwDangerReportDAO.selectById(comSwPatrolRecordReportDO.getReportId()); + if (null != comSwDangerReportDO) { comSwPatrolRecordVO.setDisplayButton(3); + comSwPatrolRecordVO.setDagerNo(comSwDangerReportDO.getDangerNo()); } else { comSwPatrolRecordVO.setDisplayButton(2); } -- Gitblit v1.7.1