From 31b8c6fc8c13f6a6e04362801eec0fce85af7366 Mon Sep 17 00:00:00 2001 From: manailin <261030956@qq.com> Date: 星期四, 11 十一月 2021 08:54:04 +0800 Subject: [PATCH] Merge branch 'test' of http://gitlab.nhys.cdnhxx.com/root/zhihuishequ into test --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwDangerReportServiceImpl.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwDangerReportServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwDangerReportServiceImpl.java index 8352b86..7be2c3b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwDangerReportServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwDangerReportServiceImpl.java @@ -7,6 +7,7 @@ import javax.annotation.Resource; import com.panzhihua.common.model.dtos.community.ComSwDangerReportEditDTO; +import com.panzhihua.service_community.dao.ComActDAO; import com.panzhihua.service_community.model.dos.ComSwSafetyWorkRecordDO; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; @@ -56,6 +57,9 @@ @Resource private UserService userService; + + @Resource + private ComActDAO comActDAO; @Override public R pageDangerReport(ComSwPatrolRecordPageDTO comSwPatrolRecordPageDTO) { @@ -229,6 +233,9 @@ comSwDangerReportVO.setCreateName(comSwPatrolRecordDAO.getCreateName(comSwDangerReportVO.getCreateBy())); } + // 所属社区名称 + comSwDangerReportVO.setCommunityName(comActDAO.selectById(comSwDangerReportVO.getCommunityId()).getName()); + // 查询指派人名称 if (StringUtils.isNotEmpty(comSwDangerReportVO.getAssignPerson())) { StringBuilder sb = new StringBuilder(); -- Gitblit v1.7.1