|  |  |  | @ -1,5 +1,9 @@ | 
			
		
	
		
			
				
					|  |  |  |  | package com.glxp.api.service.inv.impl; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.common.enums.ResultEnum; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.common.util.ResultVOUtils; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.exception.JsonException; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.util.udi.UdiCalCountUtil; | 
			
		
	
		
			
				
					|  |  |  |  | import org.springframework.beans.BeanUtils; | 
			
		
	
		
			
				
					|  |  |  |  | import cn.hutool.core.collection.CollUtil; | 
			
		
	
	
		
			
				
					|  |  |  | @ -167,10 +171,22 @@ public class InvInnerOrderPrintServiceImpl implements InvInnerOrderPrintService | 
			
		
	
		
			
				
					|  |  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |  |     public PageSimpleResponse print(InnerOrderQRCodeTextPDFTemplateRequest innerOrderQRCodeTextPDFTemplateRequest) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         SystemPDFModuleEntity systemPDFModuleEntity = systemPDFModuleService.selectById(6 + ""); | 
			
		
	
		
			
				
					|  |  |  |  |         if (systemPDFModuleEntity == null) return null; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         SysPdfTemplateRelevanceLabelEntity sysPdfTemplateRelevanceLabelEntity = systemPDFModuleService.selectByLabelId(innerOrderQRCodeTextPDFTemplateRequest.getLabelId() + ""); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         if (sysPdfTemplateRelevanceLabelEntity == null) { | 
			
		
	
		
			
				
					|  |  |  |  |             throw  new JsonException(500,"未找到单据模板模块设置,请检查"); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         SystemPDFTemplateEntity systemPDFTemplateEntity = | 
			
		
	
		
			
				
					|  |  |  |  |                 systemPDFTemplateService.selectById(String.valueOf(systemPDFModuleEntity.getTemplateId())); | 
			
		
	
		
			
				
					|  |  |  |  |                 systemPDFTemplateService.selectById(String.valueOf(sysPdfTemplateRelevanceLabelEntity.getTemplateId())); | 
			
		
	
		
			
				
					|  |  |  |  |         if (systemPDFTemplateEntity == null) { | 
			
		
	
		
			
				
					|  |  |  |  |             throw  new JsonException(500,"模板错误"); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  | //        SystemPDFModuleEntity systemPDFModuleEntity = systemPDFModuleService.selectById(6 + "");
 | 
			
		
	
		
			
				
					|  |  |  |  | //        if (systemPDFModuleEntity == null) return null;
 | 
			
		
	
		
			
				
					|  |  |  |  | //        SystemPDFTemplateEntity systemPDFTemplateEntity =
 | 
			
		
	
		
			
				
					|  |  |  |  | //                systemPDFTemplateService.selectById(String.valueOf(systemPDFModuleEntity.getTemplateId()));
 | 
			
		
	
		
			
				
					|  |  |  |  |         if (systemPDFTemplateEntity == null) return null; | 
			
		
	
		
			
				
					|  |  |  |  |         List<InnerOrderPrintResponse> printEntities = new ArrayList<>(); | 
			
		
	
		
			
				
					|  |  |  |  |         List<InnerOrderPrintResponse> mStockPrintEntities = new ArrayList<>(); | 
			
		
	
	
		
			
				
					|  |  |  | 
 |