| 
					
				 | 
			
			
				@@ -1,11 +1,16 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.fs.app.controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.common.core.domain.R; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.fs.complaint.domain.FsComplaint; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.complaint.domain.FsComplaintCategory; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.fs.complaint.dto.ComplaintQueryDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.complaint.dto.SubmitComplaintDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.fs.complaint.dto.UpdateComplaintDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.complaint.mapper.FsComplaintCategoryMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.complaint.service.FsComplaintService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.fs.complaint.vo.ComplaintVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.Api; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import io.swagger.annotations.ApiOperation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -40,5 +45,41 @@ public class FsComplaintController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fsComplaintService.submitComplaint(dto); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return R.ok(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 分页查询投诉列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param queryDTO 查询条件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 投诉列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation("分页查询投诉列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/list") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public R getComplaintList(@RequestBody ComplaintQueryDTO queryDTO) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<FsComplaint> list = fsComplaintService.getComplaintPage(queryDTO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return R.ok().put("data", list); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 获取投诉详情 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param id 投诉ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 投诉详情 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation("获取投诉详情") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @GetMapping("/{id}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public R getComplaintDetail(@PathVariable Long id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ComplaintVO complaint = fsComplaintService.getComplaintById(id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return R.ok().put("data", complaint); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 修改投诉信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param id 投诉ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param dto 修改参数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 结果 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation("修改投诉信息") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PutMapping("/{id}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public R updateComplaint(@PathVariable Long id, @RequestBody UpdateComplaintDTO dto) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fsComplaintService.updateComplaint(id, dto); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return R.ok(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |