From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 20 五月 2025 23:48:08 +0800 Subject: [PATCH] 修改文件上传类型限制 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSwDangerReportDAO.java | 40 ++++++++++++++++++++++++++++++++++++++-- 1 files changed, 38 insertions(+), 2 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..f5af0bc 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,17 @@ package com.panzhihua.service_community.dao; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.panzhihua.service_community.model.dos.ComSwDangerReportDO; +import java.util.List; + import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +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.community.ComSwDangerReportExcelVO; +import com.panzhihua.common.model.vos.community.ComSwDangerReportVO; +import com.panzhihua.service_community.model.dos.ComSwDangerReportDO; /** * @auther txb @@ -12,4 +21,31 @@ @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