| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -273,6 +273,9 @@ public class InvCountOrderServiceImpl implements InvCountOrderService {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                codesList.forEach(invCountCodes -> {
 | 
					 | 
					 | 
					 | 
					                codesList.forEach(invCountCodes -> {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    if (invCountCodes.getProductId().equals(productId) && !verifyCodeExist(outOrderCodes, invCountCodes.getCode())) {
 | 
					 | 
					 | 
					 | 
					                    if (invCountCodes.getProductId().equals(productId) && !verifyCodeExist(outOrderCodes, invCountCodes.getCode())) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                        WarehouseEntity warehouseEntity = buildWarehouse(invCountOrder, invCountCodes.getCode(), invCountCodes.getProductId());
 | 
					 | 
					 | 
					 | 
					                        WarehouseEntity warehouseEntity = buildWarehouse(invCountOrder, invCountCodes.getCode(), invCountCodes.getProductId());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        int count = invCountCodesService.getActCount(warehouseEntity.getNameCode());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        warehouseEntity.setCount(count);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        warehouseEntity.setReCount(count);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                        inOrderCodes.add(warehouseEntity);
 | 
					 | 
					 | 
					 | 
					                        inOrderCodes.add(warehouseEntity);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    }
 | 
					 | 
					 | 
					 | 
					                    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                });
 | 
					 | 
					 | 
					 | 
					                });
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -282,6 +285,9 @@ public class InvCountOrderServiceImpl implements InvCountOrderService {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                invProductDetailEntities.forEach(invProductDetailEntity -> {
 | 
					 | 
					 | 
					 | 
					                invProductDetailEntities.forEach(invProductDetailEntity -> {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    if (!countCodes.contains(invProductDetailEntity.getOriginCode()) && !verifyCodeExist(outOrderCodes, invProductDetailEntity.getCode())) {
 | 
					 | 
					 | 
					 | 
					                    if (!countCodes.contains(invProductDetailEntity.getOriginCode()) && !verifyCodeExist(outOrderCodes, invProductDetailEntity.getCode())) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                        WarehouseEntity warehouseEntity = buildWarehouse(invCountOrder, invProductDetailEntity.getCode(), invProductDetailEntity.getProductIdFk());
 | 
					 | 
					 | 
					 | 
					                        WarehouseEntity warehouseEntity = buildWarehouse(invCountOrder, invProductDetailEntity.getCode(), invProductDetailEntity.getProductIdFk());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        int count = invCountCodesService.getActCount(warehouseEntity.getNameCode());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        warehouseEntity.setCount(count);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        warehouseEntity.setReCount(count);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                        outOrderCodes.add(warehouseEntity);
 | 
					 | 
					 | 
					 | 
					                        outOrderCodes.add(warehouseEntity);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    }
 | 
					 | 
					 | 
					 | 
					                    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                });
 | 
					 | 
					 | 
					 | 
					                });
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -366,8 +372,6 @@ public class InvCountOrderServiceImpl implements InvCountOrderService {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        warehouseEntity.setExpireDate(udi.getExpireDate());
 | 
					 | 
					 | 
					 | 
					        warehouseEntity.setExpireDate(udi.getExpireDate());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        warehouseEntity.setSerialNo(udi.getSerialNo());
 | 
					 | 
					 | 
					 | 
					        warehouseEntity.setSerialNo(udi.getSerialNo());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        warehouseEntity.setNameCode(udi.getUdi());
 | 
					 | 
					 | 
					 | 
					        warehouseEntity.setNameCode(udi.getUdi());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        warehouseEntity.setCount(1);
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        warehouseEntity.setReCount(1);
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return warehouseEntity;
 | 
					 | 
					 | 
					 | 
					        return warehouseEntity;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |