|  |  |  | @ -182,51 +182,6 @@ public class SpsSyncDataController { | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @PostMapping("/sps/sync/busType/upload") | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse postAllBus(@RequestBody SpsSyncBusResponse spsSyncBusResponse, | 
			
		
	
		
			
				
					|  |  |  |  |                                    BindingResult bindingResult) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         if (bindingResult.hasErrors()) { | 
			
		
	
		
			
				
					|  |  |  |  |             return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage()); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         SystemParamConfigEntity systemParamConfigEntity = systemParamConfigService.selectByParamKey("sync_upstream_enable"); | 
			
		
	
		
			
				
					|  |  |  |  |         String key = gennerOrderUtils.getBusType(); | 
			
		
	
		
			
				
					|  |  |  |  |         BasicUploadStatusEntity basicUploadStatusEntity = new BasicUploadStatusEntity(); | 
			
		
	
		
			
				
					|  |  |  |  |         basicUploadStatusEntity.setId(key); | 
			
		
	
		
			
				
					|  |  |  |  |         basicUploadStatusEntity.setTaskId(spsSyncBusResponse.getTaskId()); | 
			
		
	
		
			
				
					|  |  |  |  |         basicUploadStatusEntity.setStartTime(DateUtil.getDateTime()); | 
			
		
	
		
			
				
					|  |  |  |  |         basicUploadStatusEntity.setIdDatas(ConstantStatus.SYNC_BUS_TYPE); | 
			
		
	
		
			
				
					|  |  |  |  |         basicUploadStatusEntity.setType(BasicProcessStatus.NEW_ALL_BUS); | 
			
		
	
		
			
				
					|  |  |  |  |         basicUploadStatusEntity.setRemark(spsSyncBusResponse.toString()); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         if (systemParamConfigEntity.getParamValue().equals("0")) {//上游不通
 | 
			
		
	
		
			
				
					|  |  |  |  |             String path = getPath(); | 
			
		
	
		
			
				
					|  |  |  |  |             String fileName = path + FileConstant.lowerWaitCopy_products + key + ".UpperIn"; | 
			
		
	
		
			
				
					|  |  |  |  |             String datas = JSON.toJSONString(spsSyncBusResponse); | 
			
		
	
		
			
				
					|  |  |  |  |             FileUtils.SaveFileAs(datas, fileName); | 
			
		
	
		
			
				
					|  |  |  |  |             basicUploadStatusEntity.setUpdateTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |  |             basicUploadStatusEntity.setEndTime(DateUtil.getDateTime()); | 
			
		
	
		
			
				
					|  |  |  |  |             basicUploadStatusEntity.setTransportType(BasicProcessStatus.FILE_TYPE); | 
			
		
	
		
			
				
					|  |  |  |  |             basicUploadStatusEntity.setCacheFilePath(fileName); | 
			
		
	
		
			
				
					|  |  |  |  |             basicUploadStatusEntity.setStatus(Constant.SYNC_STATUS_SUCCESS); | 
			
		
	
		
			
				
					|  |  |  |  |             basicUploadService.insertDownloadStatus(basicUploadStatusEntity); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             return ResultVOUtils.success("文件上传成功,已保存,等待拷贝!"); | 
			
		
	
		
			
				
					|  |  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |  |             //上游通
 | 
			
		
	
		
			
				
					|  |  |  |  |             BaseResponse<String> response = spPostHttp.postAllBus(spsSyncBusResponse); | 
			
		
	
		
			
				
					|  |  |  |  |             basicUploadStatusEntity.setUpdateTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |  |             basicUploadStatusEntity.setEndTime(DateUtil.getDateTime()); | 
			
		
	
		
			
				
					|  |  |  |  |             basicUploadStatusEntity.setTransportType(BasicProcessStatus.INTERFACE_TYPE); | 
			
		
	
		
			
				
					|  |  |  |  |             if (response.getCode() == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |                 basicUploadStatusEntity.setStatus(Constant.SYNC_STATUS_SUCCESS); | 
			
		
	
		
			
				
					|  |  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |  |                 basicUploadStatusEntity.setStatus(Constant.SYNC_STATUS_FAIL); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             basicUploadService.insertDownloadStatus(basicUploadStatusEntity); | 
			
		
	
		
			
				
					|  |  |  |  |             return response; | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @PostMapping("sps/sync/schedule/upload") | 
			
		
	
	
		
			
				
					|  |  |  | 
 |