|  |  |  | @ -142,6 +142,7 @@ public class IoSplitDesOrderService extends ServiceImpl<IoSplitDesOrderMapper, I | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @Resource | 
			
		
	
		
			
				
					|  |  |  |  |     IoSplitFifoInvService ioSplitFifoInvService; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @Transactional(rollbackFor = Exception.class) | 
			
		
	
		
			
				
					|  |  |  |  |     public Boolean destroyOut(AddInvDesDetaiRequest addInvDesDetaiRequest) { | 
			
		
	
		
			
				
					|  |  |  |  |         IoSplitDesOrder collectOrder; | 
			
		
	
	
		
			
				
					|  |  |  | @ -160,7 +161,7 @@ public class IoSplitDesOrderService extends ServiceImpl<IoSplitDesOrderMapper, I | 
			
		
	
		
			
				
					|  |  |  |  |                 .updateUser(addInvDesDetaiRequest.getUpdateUser()) | 
			
		
	
		
			
				
					|  |  |  |  |                 .build(); | 
			
		
	
		
			
				
					|  |  |  |  |         boolean save = save(collectOrder); | 
			
		
	
		
			
				
					|  |  |  |  |         if(!save){ | 
			
		
	
		
			
				
					|  |  |  |  |         if (!save) { | 
			
		
	
		
			
				
					|  |  |  |  |             return false; | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -169,11 +170,11 @@ public class IoSplitDesOrderService extends ServiceImpl<IoSplitDesOrderMapper, I | 
			
		
	
		
			
				
					|  |  |  |  |         //修改产品 库存 出库数量 可用数量 剩余数量
 | 
			
		
	
		
			
				
					|  |  |  |  |         splitFifoInv.setOutCount(splitFifoInv.getOutCount() + addInvDesDetaiRequest.getOutCount());//出库数量
 | 
			
		
	
		
			
				
					|  |  |  |  |         splitFifoInv.setReCount(splitFifoInv.getInCount() - splitFifoInv.getOutCount());//剩余数量
 | 
			
		
	
		
			
				
					|  |  |  |  |         splitFifoInv.setAvailableCount(splitFifoInv.getInCount() - splitFifoInv.getOutCount()-splitFifoInv.getLockCount()); | 
			
		
	
		
			
				
					|  |  |  |  |         splitFifoInv.setAvailableCount(splitFifoInv.getInCount() - splitFifoInv.getOutCount() - splitFifoInv.getLockCount()); | 
			
		
	
		
			
				
					|  |  |  |  |         splitFifoInv.setUpdateTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |  |         //更改 库存
 | 
			
		
	
		
			
				
					|  |  |  |  |         boolean update = ioSplitFifoInvService.updateById(splitFifoInv); | 
			
		
	
		
			
				
					|  |  |  |  |         if (!update){ | 
			
		
	
		
			
				
					|  |  |  |  |         if (!update) { | 
			
		
	
		
			
				
					|  |  |  |  |             return false; | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  | //        IoSplitFifoInv splitFifoInv = addInvDesDetaiRequest.getSplitFifoInv();
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -193,7 +194,7 @@ public class IoSplitDesOrderService extends ServiceImpl<IoSplitDesOrderMapper, I | 
			
		
	
		
			
				
					|  |  |  |  |                 .updateTime(new Date()) | 
			
		
	
		
			
				
					|  |  |  |  |                 .remark("").build(); | 
			
		
	
		
			
				
					|  |  |  |  |         boolean save1 = splitDesOrderDetailService.save(splitDesOrderDetail); | 
			
		
	
		
			
				
					|  |  |  |  |         if (!save1){ | 
			
		
	
		
			
				
					|  |  |  |  |         if (!save1) { | 
			
		
	
		
			
				
					|  |  |  |  |             return false; | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         return true; | 
			
		
	
	
		
			
				
					|  |  |  | 
 |