|  |  | @ -333,6 +333,9 @@ public class StockOrderDetailController { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 stockOrderDetailEntity.setRelId(udiInfoEntity.getRlId() + ""); |  |  |  |                 stockOrderDetailEntity.setRelId(udiInfoEntity.getRlId() + ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 stockOrderDetailEntity.setProductName(udiInfoEntity.getCpmctymc()); |  |  |  |                 stockOrderDetailEntity.setProductName(udiInfoEntity.getCpmctymc()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 stockOrderDetailEntity.setSpec(udiInfoEntity.getGgxh()); |  |  |  |                 stockOrderDetailEntity.setSpec(udiInfoEntity.getGgxh()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 if (stockSelectDataEntity.getCount() != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     stockOrderDetailEntity.setCount(stockSelectDataEntity.getCount() + ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } else | 
			
		
	
		
		
			
				
					
					|  |  |  |                     stockOrderDetailEntity.setCount(0 + ""); |  |  |  |                     stockOrderDetailEntity.setCount(0 + ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 stockOrderDetailEntity.setReCount(0 + ""); |  |  |  |                 stockOrderDetailEntity.setReCount(0 + ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 stockOrderDetailEntity.setBatchNo(stockSelectDataEntity.getBatchNo()); |  |  |  |                 stockOrderDetailEntity.setBatchNo(stockSelectDataEntity.getBatchNo()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -341,8 +344,8 @@ public class StockOrderDetailController { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 stockOrderDetailEntity.setManufactory(udiInfoEntity.getManufactory()); |  |  |  |                 stockOrderDetailEntity.setManufactory(udiInfoEntity.getManufactory()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 stockOrderDetailEntity.setYlqxzcrbarmc(udiInfoEntity.getYlqxzcrbarmc()); |  |  |  |                 stockOrderDetailEntity.setYlqxzcrbarmc(udiInfoEntity.getYlqxzcrbarmc()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 stockOrderDetailEntity.setSupName(udiInfoEntity.getCompanyName()); |  |  |  |                 stockOrderDetailEntity.setSupName(udiInfoEntity.getCompanyName()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (StrUtil.isNotEmpty(stockOrderIdsRequest.getZczbhhzbapzbh())) |  |  |  |                 if (StrUtil.isNotEmpty(stockSelectDataEntity.getZczbhhzbapzbh())) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     stockOrderDetailEntity.setZczbhhzbapzbh(stockOrderIdsRequest.getZczbhhzbapzbh()); |  |  |  |                     stockOrderDetailEntity.setZczbhhzbapzbh(stockSelectDataEntity.getZczbhhzbapzbh()); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 else |  |  |  |                 else | 
			
		
	
		
		
			
				
					
					|  |  |  |                     stockOrderDetailEntity.setZczbhhzbapzbh(udiInfoEntity.getZczbhhzbapzbh()); |  |  |  |                     stockOrderDetailEntity.setZczbhhzbapzbh(udiInfoEntity.getZczbhhzbapzbh()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 stockOrderDetailEntity.setAllowNoBatch(udiInfoEntity.isAllowNoBatch()); |  |  |  |                 stockOrderDetailEntity.setAllowNoBatch(udiInfoEntity.isAllowNoBatch()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -376,11 +379,13 @@ public class StockOrderDetailController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         //供应商选入时需要校验证书是否齐全
 |  |  |  |         //供应商选入时需要校验证书是否齐全
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (stockOrderIdsRequest.getType() == 0) { |  |  |  |         if (stockOrderIdsRequest.getType() == 0) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             StockSelectDataEntity stockSelectDataEntity = stockOrderIdsRequest.getDatas().get(0); | 
			
		
	
		
		
			
				
					
					|  |  |  |             String value = systemParamConfigService.selectValueByParamKey("checkCert"); |  |  |  |             String value = systemParamConfigService.selectValueByParamKey("checkCert"); | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (StrUtil.isNotEmpty(value) && value.equals("1")) { |  |  |  |             if (StrUtil.isNotEmpty(value) && value.equals("1")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 //判断证书是否齐全
 |  |  |  |                 //判断证书是否齐全
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (StrUtil.isNotEmpty(stockOrderIdsRequest.getZczbhhzbapzbh())) { |  |  |  |                 if (StrUtil.isNotEmpty(stockSelectDataEntity.getZczbhhzbapzbh())) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     SupProductResponse supProductResponse = supProductService.findByPassByReCert(stockOrderIdsRequest.getZczbhhzbapzbh()); |  |  |  |                     SupProductResponse supProductResponse = supProductService.findByPassByReCert(stockSelectDataEntity.getZczbhhzbapzbh()); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     if (supProductResponse == null) { |  |  |  |                     if (supProductResponse == null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                         return ResultVOUtils.error(601, "该产品所对应的资质证书未通过审核,无法配送,请先维护产品资质信息"); |  |  |  |                         return ResultVOUtils.error(601, "该产品所对应的资质证书未通过审核,无法配送,请先维护产品资质信息"); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     } |  |  |  |                     } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |