| 
					
				 | 
			
			
				@@ -1,14 +1,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.gree.mall.contest.controller.pc.member; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import cn.hutool.core.lang.TypeReference; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.baomidou.mybatisplus.core.metadata.IPage; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.gree.mall.contest.annotation.ZfireList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.gree.mall.contest.bean.member.UserVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.contest.bean.user.UserApplyBean; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.contest.bean.user.UserWxBean; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.gree.mall.contest.bean.zfire.ZfireParamBean; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.contest.exception.RemoteServiceException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.contest.helper.ResponseHelper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.contest.logic.user.UserLogic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.contest.plus.entity.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.contest.utils.CommonUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.gree.mall.contest.utils.zfire.FieldUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.v3.oas.annotations.Operation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.v3.oas.annotations.Parameter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.v3.oas.annotations.tags.Tag; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -53,6 +58,30 @@ public class MemberController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return ResponseHelper.success(page); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ZfireList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/v2/page") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Operation(summary = "用户管理-列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ResponseHelper<IPage<UserVO>> list( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @RequestBody ZfireParamBean zfireParamBean 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        IPage<UserVO> page = userLogic.v2Page(zfireParamBean); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return ResponseHelper.success(page, new TypeReference<UserVO>() {}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/v2/page/export") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Operation(summary = "用户管理-导出") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public void listExport( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @RequestBody ZfireParamBean zfireParamBean, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            HttpServletRequest request, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            HttpServletResponse response 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //2.查询要导出的内容 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        IPage<UserVO> baseVOIPage = userLogic.v2Page(zfireParamBean); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //3.导出 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        FieldUtils.exportData(baseVOIPage.getRecords(), zfireParamBean.getExportFields(), request, response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping("/apply/page") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Operation(description = "业务员申请列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public ResponseHelper<Page<UserApplyBean>> applyPage(HttpServletRequest request, 
			 |