|  |  |  | @ -10,6 +10,7 @@ import com.glxp.api.admin.res.PageSimpleResponse; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.admin.service.basic.BasicUnitMaintainService; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.admin.service.basic.CorpExportLogService; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.admin.thread.BasicGenExcelService; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.admin.thread.BasicGenJsonService; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.admin.util.CustomUtil; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.common.enums.ResultEnum; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.common.res.BaseResponse; | 
			
		
	
	
		
			
				
					|  |  |  | @ -35,6 +36,8 @@ public class CorpExportLogController { | 
			
		
	
		
			
				
					|  |  |  |  |     CorpExportLogService corpExportLogService; | 
			
		
	
		
			
				
					|  |  |  |  |     @Resource | 
			
		
	
		
			
				
					|  |  |  |  |     private BasicUnitMaintainService basicUnitMaintainService; | 
			
		
	
		
			
				
					|  |  |  |  |     @Resource | 
			
		
	
		
			
				
					|  |  |  |  |     private BasicGenJsonService basicGenJsonService;; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @GetMapping("/udiwms/corps/exportLog/filter") | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse filter(FilterUdiEpLogRequest filterUdiEpLogReques, | 
			
		
	
	
		
			
				
					|  |  |  | @ -103,7 +106,7 @@ public class CorpExportLogController { | 
			
		
	
		
			
				
					|  |  |  |  |     //往来单位导出生成Excel,并创建生成记录
 | 
			
		
	
		
			
				
					|  |  |  |  |     @PostMapping("/udiwms/corps/importLog/export") | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse excelDownload(@RequestBody CorpsExportRequest corpsExportRequest) { | 
			
		
	
		
			
				
					|  |  |  |  |         String fileName = "D:\\udiwms\\exportFile\\" + "往来单位信息导出" + System.currentTimeMillis() + ".xls"; | 
			
		
	
		
			
				
					|  |  |  |  |         String fileName = "D:\\udiwms\\exportFile\\" + "往来单位信息导出" + System.currentTimeMillis() + ".json"; | 
			
		
	
		
			
				
					|  |  |  |  |         CorpExportLogEntity corpExportLogEntity = new CorpExportLogEntity(); | 
			
		
	
		
			
				
					|  |  |  |  |         corpExportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_PROCESS); | 
			
		
	
		
			
				
					|  |  |  |  |         String genKey = CustomUtil.getId(); | 
			
		
	
	
		
			
				
					|  |  |  | @ -111,10 +114,11 @@ public class CorpExportLogController { | 
			
		
	
		
			
				
					|  |  |  |  |         corpExportLogEntity.setFilePath(fileName); | 
			
		
	
		
			
				
					|  |  |  |  |         corpExportLogEntity.setUpdateTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |  |         corpExportLogEntity.setDlCount(0); | 
			
		
	
		
			
				
					|  |  |  |  |         corpExportLogEntity.setType(BasicProcessStatus.EXPORT_EXCEL); | 
			
		
	
		
			
				
					|  |  |  |  |         corpExportLogEntity.setType(BasicProcessStatus.EXPORT_JSON); | 
			
		
	
		
			
				
					|  |  |  |  |         corpExportLogService.insertCorpExportLog(corpExportLogEntity); | 
			
		
	
		
			
				
					|  |  |  |  |         basicGenExcelService.exportCorp(genKey, corpsExportRequest); | 
			
		
	
		
			
				
					|  |  |  |  |         return ResultVOUtils.success("后台正在导出生成excel文件,请稍后刷新查看!"); | 
			
		
	
		
			
				
					|  |  |  |  |         //basicGenExcelService.exportCorp(genKey, corpsExportRequest);
 | 
			
		
	
		
			
				
					|  |  |  |  |         basicGenJsonService.exportCorp(genKey, corpsExportRequest); | 
			
		
	
		
			
				
					|  |  |  |  |         return ResultVOUtils.success("后台正在导出生成Json文件,请稍后刷新查看!"); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     //往来单位上传SMP,并创建生成记录
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |