|  |  |  | @ -9,6 +9,8 @@ import com.glxp.api.req.collect.CollectOrderRequest; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.res.PageSimpleResponse; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.service.collect.IoCollectOrderService; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.util.IntUtil; | 
			
		
	
		
			
				
					|  |  |  |  | import lombok.extern.slf4j.Slf4j; | 
			
		
	
		
			
				
					|  |  |  |  | import org.apache.commons.lang3.exception.ExceptionUtils; | 
			
		
	
		
			
				
					|  |  |  |  | import org.jfree.util.Log; | 
			
		
	
		
			
				
					|  |  |  |  | import org.springframework.stereotype.Service; | 
			
		
	
		
			
				
					|  |  |  |  | import org.springframework.transaction.annotation.Isolation; | 
			
		
	
	
		
			
				
					|  |  |  | @ -18,6 +20,7 @@ import javax.annotation.Resource; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.List; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | @Service | 
			
		
	
		
			
				
					|  |  |  |  | @Slf4j | 
			
		
	
		
			
				
					|  |  |  |  | public class YPCF002Download implements IDownload { | 
			
		
	
		
			
				
					|  |  |  |  |     @Resource | 
			
		
	
		
			
				
					|  |  |  |  |     private ErpBasicClient erpBasicClient; | 
			
		
	
	
		
			
				
					|  |  |  | @ -46,7 +49,7 @@ public class YPCF002Download implements IDownload { | 
			
		
	
		
			
				
					|  |  |  |  |             try { | 
			
		
	
		
			
				
					|  |  |  |  |                 getSickPrescribeRequest.setPage(page); | 
			
		
	
		
			
				
					|  |  |  |  |                 BaseResponse<PageSimpleResponse<IoCollectOrder>> baseResponse = erpBasicClient.getPrescribeV2(getSickPrescribeRequest); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 log.error(baseResponse.getCode()+"---"+baseResponse.getData()); | 
			
		
	
		
			
				
					|  |  |  |  |                 // TODO: 2024/9/11 添加一张中间表(io_collect_order_origin)原始表做为转换
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 if (baseResponse.getCode() == 20000) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -64,7 +67,8 @@ public class YPCF002Download implements IDownload { | 
			
		
	
		
			
				
					|  |  |  |  |                     return ResultVOUtils.error(500, "下载第三方系统产品信息异常"); | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } catch (Exception e) { | 
			
		
	
		
			
				
					|  |  |  |  |                 e.printStackTrace(); | 
			
		
	
		
			
				
					|  |  |  |  |                 log.error("下载第三方系统产品信息异常 fail" + ExceptionUtils.getStackTrace(e)); | 
			
		
	
		
			
				
					|  |  |  |  | //                e.printStackTrace();
 | 
			
		
	
		
			
				
					|  |  |  |  |                 return ResultVOUtils.error(500, e.getMessage()); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |