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/service/ComSwDangerReportService.java | 32 ++++++++++++++++++++++++-------- 1 files changed, 24 insertions(+), 8 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSwDangerReportService.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSwDangerReportService.java index c9bd748..9f75dc1 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSwDangerReportService.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSwDangerReportService.java @@ -1,16 +1,17 @@ package com.panzhihua.service_community.service; +import java.util.List; + import com.baomidou.mybatisplus.extension.service.IService; +import com.panzhihua.common.model.dtos.community.ComSwDangerReportEditDTO; import com.panzhihua.common.model.dtos.community.ComSwDangerReportHandleDTO; import com.panzhihua.common.model.dtos.community.ComSwDangerReportRectifyDTO; import com.panzhihua.common.model.dtos.community.ComSwPatrolRecordPageDTO; import com.panzhihua.common.model.vos.R; import com.panzhihua.service_community.model.dos.ComSwDangerReportDO; +import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestParam; - -import java.util.List; /** * @auther txb @@ -21,15 +22,27 @@ /** * 分页查询隐患报告 - * @param comSwPatrolRecordPageDTO 查询参数 + * + * @param comSwPatrolRecordPageDTO + * 查询参数 * @return 隐患报告分页集合 */ R pageDangerReport(ComSwPatrolRecordPageDTO comSwPatrolRecordPageDTO); /** + * 编辑隐患报告 editDangerReport 编辑隐患报告 + * @param comSwDangerReportEditDTO 编辑隐患报告参数 + * @return R 编辑结果 + * @author txb + * @date 2021/9/08 17:03 + */ + R editDangerReport(ComSwDangerReportEditDTO comSwDangerReportEditDTO); + + /** * 根据隐患报告id查询详情 * - * @param dangerReportId 隐患报告id + * @param dangerReportId + * 隐患报告id * @return 隐患报告详情查询结果 */ R detailDangerReport(Long dangerReportId); @@ -37,7 +50,8 @@ /** * 根据巡查记录id查询隐患报告详情 * - * @param patrolRecordId 巡查记录id + * @param patrolRecordId + * 巡查记录id * @return 隐患报告详情查询结果 */ R detailDangerReportByPrId(Long patrolRecordId); @@ -45,7 +59,8 @@ /** * 处理隐患报告 * - * @param comSwDangerReportHandleDTO 隐患报告处理参数 + * @param comSwDangerReportHandleDTO + * 隐患报告处理参数 * @return 处理结果 */ R handleDangerReport(ComSwDangerReportHandleDTO comSwDangerReportHandleDTO); @@ -53,7 +68,8 @@ /** * 整改隐患报告 * - * @param comSwDangerReportRectifyDTO 隐患报告整改参数 + * @param comSwDangerReportRectifyDTO + * 隐患报告整改参数 * @return 整改结果 */ R rectifyDangerReport(ComSwDangerReportRectifyDTO comSwDangerReportRectifyDTO); -- Gitblit v1.7.1