| 
					
				 | 
			
			
				@@ -1,53 +1,26 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.gree.mall.manager.controller.workerorder; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import cn.hutool.core.bean.BeanUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 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.manager.annotation.ApiNotAuth; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.annotation.ZfireList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.bean.admin.AdminUserCom; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.bean.es.OrderBaseEs; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.bean.listvo.param.WorkOrderZfireParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.bean.listvo.workorder.OrderBase2VO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.bean.listvo.workorder.OrderBaseVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.bean.workorder.OrderAddBean2DTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.bean.workorder.OrderAddBeanDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.bean.workorder.OrderSettleDetailBean; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.constant.Constant; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.enums.workorder.OrderFlagEnum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.es.OrderBaseEsRepository; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.exception.RemoteServiceException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.helper.ResponseHelper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.logic.common.CommonLogic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.logic.workorder.OrderBaseEsLogic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.logic.workorder.OrderBaseExcelLogic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.logic.workorder.OrderBaseLogic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.logic.workorder.OrderLogLogic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.plus.entity.PgOrderBase; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.plus.entity.PgOrderOperatorLog; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.plus.entity.PgOrderProduct; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.plus.entity.PgOrderWorker; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.gree.mall.manager.utils.excel.ExcelUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.zfire.bean.ZfireParamBean; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.gree.mall.manager.zfire.util.FieldUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.Api; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiOperation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import io.swagger.annotations.ApiParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import lombok.RequiredArgsConstructor; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import lombok.extern.slf4j.Slf4j; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.integration.redis.util.RedisLockRegistry; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.multipart.MultipartFile; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import javax.servlet.http.HttpServletRequest; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import javax.servlet.http.HttpServletResponse; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import javax.validation.Valid; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.io.FileWriter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.io.IOException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.concurrent.TimeUnit; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.concurrent.locks.Lock; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RequiredArgsConstructor 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Slf4j 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -87,6 +60,20 @@ public class ESOrderBaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         FieldUtils.exportData(orderBaseVOIPage, zfireParam.getExportFields(), request, response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/list/export2") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation(value = "固定列导出") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public synchronized void listExport2(@RequestBody WorkOrderZfireParam zfireParamBean, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        HttpServletRequest request, HttpServletResponse response) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //1.组装查询条件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ZfireParamBean zfireParam = FieldUtils.supplyParam(zfireParamBean); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //2.查询要导出的内容 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<OrderBaseVO> orderBaseVOIPage = orderBaseEsLogic.listExport(zfireParamBean,request); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //3.导出 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        FieldUtils.exportFixedOrderBaseData(orderBaseVOIPage, request, response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/status/count") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "按工单状态统计") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public ResponseHelper<List<Map<String,Object>>> countStatus( 
			 |