From 382c9fa680114b16e5b6f1fef834f4be3268cd35 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期一, 26 十二月 2022 18:09:53 +0800
Subject: [PATCH] fix: 群消息查询

---
 src/main/java/com/example/jz/controller/CauseController.java |   30 ++++++++++++++++++------------
 1 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/src/main/java/com/example/jz/controller/CauseController.java b/src/main/java/com/example/jz/controller/CauseController.java
index 39e636c..8ba9def 100644
--- a/src/main/java/com/example/jz/controller/CauseController.java
+++ b/src/main/java/com/example/jz/controller/CauseController.java
@@ -73,6 +73,12 @@
         return R.ok(causeService.getCauserListByCondition(cause, status, size, current));
     }
 
+    @ApiOperation(httpMethod = "GET", value = "妗堜欢鍙�-妗堜欢褰曞叆-妗堜欢褰曞叆鍒楄〃")
+    @GetMapping("/getCause")
+    @ApiResponse(message = "鎵ц鎴愬姛", code = 200)
+    public R getCause(String cause, Integer status, Integer size, Integer current,Integer id) {
+        return R.ok(causeService.getCauserListByCondition(cause, status, size, current,id));
+    }
     @ApiOperation(httpMethod = "GET", value = "妗堜欢鍙�-妗堜欢褰曞叆-璐熻矗浜烘煡璇�")
     @GetMapping("/getManagerList")
     @ApiResponse(message = "鎵ц鎴愬姛", code = 200)
@@ -111,26 +117,26 @@
         return R.ok();
     }
 
+    @ApiOperation(httpMethod = "POST", value = "妗堜欢鍙�-妗堜欢褰曞叆-鎶ユ浜哄憳-鎶ユ浜哄厓瀵煎叆")
+    @PostMapping("/reporterUpload")
+    @ApiResponse(message = "鎵ц鎴愬姛", code = 200)
+    @SneakyThrows
+    public R uploadReporter(@RequestParam(value = "multipartFile") MultipartFile multipartFile,Integer causeId) {
+        causeService.loadFileReport(multipartFile,causeId);
+        return R.ok();
+    }
+
     @ApiOperation(httpMethod = "GET", value = "鏍规嵁缇ょ粍id鏌ヨ妗堜欢鍒嗛〉")
     @GetMapping("/getAllReportList")
     @ApiResponse(message = "鎵ц鎴愬姛", code = 200)
-    public R<IPage<ReportListVo>> get(Page<ReportListVo> page, ReportParamDto reportParamDto, Integer groupId) {
-        return R.ok(reportService.getPageByGroupId(page, reportParamDto, groupId));
+    public R<IPage<ReportListVo>> get(Page<ReportListVo> page, ReportParamDto reportParamDto, Integer causeId) {
+        return R.ok(reportService.getPageByGroupId(page, reportParamDto, causeId));
     }
 
     @ApiOperation(httpMethod = "POST", value = "娣诲姞浜哄憳")
     @PostMapping("/addReporter")
     @ApiResponse(message = "鎵ц鎴愬姛", code = 200)
-    public R<Boolean> get(AddReportDto addReportDto) {
-        if (addReportDto.getReporterName() == null || addReportDto.getReporterName().equals("")) {
-            return R.failed("鎶ユ浜哄憳涓嶈兘涓虹┖");
-        }
-        if (addReportDto.getMobile() == null || addReportDto.getMobile().equals("")) {
-            return R.failed("鎶ユ浜哄憳鐢佃瘽涓嶈兘涓虹┖");
-        }
-        if (addReportDto.getIdcard() == null || addReportDto.getIdcard().equals("")) {
-            return R.failed("鎶ユ浜哄憳韬唤璇佷笉鑳戒负绌�");
-        }
+    public R<Boolean> get(@RequestBody AddReportDto addReportDto) {
         return R.ok(causeService.addReportPeople(addReportDto));
     }
 

--
Gitblit v1.8.0