From c7450a8e1724528046af3683d49eaf0a06785130 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期五, 30 七月 2021 14:02:02 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/test' into test --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSwDangerReportDAO.java | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSwDangerReportDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSwDangerReportDAO.java index 714dca3..445f6dd 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSwDangerReportDAO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSwDangerReportDAO.java @@ -1,8 +1,18 @@ package com.panzhihua.service_community.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.panzhihua.common.model.dtos.community.ComSwPatrolRecordPageDTO; +import com.panzhihua.common.model.vos.R; +import com.panzhihua.common.model.vos.community.ComSwDangerReportExcelVO; +import com.panzhihua.common.model.vos.community.ComSwDangerReportVO; +import com.panzhihua.common.model.vos.community.ComSwSafetyWorkRecordVO; import com.panzhihua.service_community.model.dos.ComSwDangerReportDO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; /** * @auther txb @@ -12,4 +22,26 @@ @Mapper public interface ComSwDangerReportDAO extends BaseMapper<ComSwDangerReportDO> { + /** + * 分页查询隐患报告 + * @param comSwPatrolRecordPageDTO 查询参数 + * @return 隐患报告分页集合 + */ + IPage<ComSwDangerReportVO> pageDangerReport(Page page, @Param("comSwPatrolRecordDTO") ComSwPatrolRecordPageDTO comSwPatrolRecordPageDTO); + + /** + * 根据隐患报告id查询详情 + * + * @param dangerReportId 隐患报告id + * @return 隐患报告详情查询结果 + */ + ComSwDangerReportVO detailDangerReport(@Param("dangerReportId") Long dangerReportId); + + /** + * 根据隐患报告id批量查询详情 + * + * @param dangerReportIds 隐患报告ids + * @return + */ + List<ComSwDangerReportExcelVO> exportDangerReport(@Param("dangerReportIds") List<Long> dangerReportIds); } -- Gitblit v1.7.1