| | |
| | | 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; |
| | |
| | | |
| | | @Resource |
| | | private UserService userService; |
| | | |
| | | @Resource |
| | | private ComActDAO comActDAO; |
| | | |
| | | @Override |
| | | public R pageDangerReport(ComSwPatrolRecordPageDTO comSwPatrolRecordPageDTO) { |
| | |
| | | comSwDangerReportVO.setCreateName(comSwPatrolRecordDAO.getCreateName(comSwDangerReportVO.getCreateBy())); |
| | | } |
| | | |
| | | // 所属社区名称 |
| | | comSwDangerReportVO.setCommunityName(comActDAO.selectById(comSwDangerReportVO.getCommunityId()).getName()); |
| | | |
| | | // 查询指派人名称 |
| | | if (StringUtils.isNotEmpty(comSwDangerReportVO.getAssignPerson())) { |
| | | StringBuilder sb = new StringBuilder(); |