| 
					
				 | 
			
			
				@@ -1,9 +1,16 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.qmrb.system.controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.io.IOException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.net.URLEncoder; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Arrays; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.stream.Collectors; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.alibaba.excel.EasyExcel; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.qmrb.system.pojo.query.UserPageQuery; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.qmrb.system.pojo.vo.MonthlyParkingRegistrationExcelVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.qmrb.system.pojo.vo.UserExportVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import jakarta.servlet.http.HttpServletResponse; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springdoc.core.annotations.ParameterObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.security.access.prepost.PreAuthorize; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -60,6 +67,18 @@ public class MonthlyParkingRegistrationController{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Page<MonthlyParkingRegistrationVO> result = monthlyParkingRegistrationService.getPage(queryParams); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return PageResult.success(result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Operation(summary = "导出登记信息列表", security = {@SecurityRequirement(name = "Authorization")}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @GetMapping("/_export") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public void exportUsers(MonthlyParkingRegistrationQuery queryParams, HttpServletResponse response) throws IOException { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        String fileName = "月租车登记信息列表.xlsx"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        response.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(fileName, "UTF-8")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<MonthlyParkingRegistrationExcelVO> registrationExcelVOS = monthlyParkingRegistrationService.exportList(queryParams); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        EasyExcel.write(response.getOutputStream(), MonthlyParkingRegistrationExcelVO.class).sheet("月租车登记信息列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .doWrite(registrationExcelVOS); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Operation(summary = "新增月租车登记信息表", security = {@SecurityRequirement(name = "Authorization")}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping 
			 |