| 
					
				 | 
			
			
				@@ -1,12 +1,17 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.gree.mall.contest.controller.pc.goods; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+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.goods.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+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.goods.GoodsLogic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.contest.plus.entity.User; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.contest.utils.excel.ExcelUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+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; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -108,6 +113,32 @@ public class GoodsController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ZfireList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/list") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Operation(summary = "商品列表V2") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ResponseHelper<IPage<GoodsVO>> list( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @RequestBody ZfireParamBean zfireParamBean 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ) throws RemoteServiceException { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ZfireParamBean zfireParam = FieldUtils.supplyParam(zfireParamBean); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        IPage<GoodsVO> adminDeptVOIPage = goodsLogic.goodsList(new Page(zfireParam.getPageNum(), zfireParam.getPageSize()), zfireParam); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return ResponseHelper.success(adminDeptVOIPage, new TypeReference<GoodsVO>() {}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/list/export") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Operation(summary = "商品列表V2导出") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public void listExport( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @RequestBody ZfireParamBean zfireParamBean, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            HttpServletRequest request, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            HttpServletResponse response 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ZfireParamBean zfireParam = FieldUtils.supplyParam(zfireParamBean); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        IPage<GoodsVO> adminDeptVOIPage = goodsLogic.goodsList(new Page(zfireParam.getPageNum(), zfireParam.getPageSize()), zfireParam); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //3.导出 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        FieldUtils.exportData(adminDeptVOIPage.getRecords(), zfireParam.getExportFields(), request, response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping("/listbycategory") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Operation(summary = "商品详情") 
			 |