|  |  |  | @ -193,9 +193,11 @@ public class IoSplitCodeService extends ServiceImpl<IoSplitCodeMapper, IoSplitCo | 
			
		
	
		
			
				
					|  |  |  |  |                         if (count > 0) { | 
			
		
	
		
			
				
					|  |  |  |  |                             ioSplitCodeEntity.setRemainCount(count); | 
			
		
	
		
			
				
					|  |  |  |  |                             splitCodeMapper.updateById(ioSplitCodeEntity); | 
			
		
	
		
			
				
					|  |  |  |  |                             unCount = 0; | 
			
		
	
		
			
				
					|  |  |  |  |                             break; | 
			
		
	
		
			
				
					|  |  |  |  |                         } else if (count == 0) { | 
			
		
	
		
			
				
					|  |  |  |  |                             ioSplitCodeEntity.setRemainCount(0); | 
			
		
	
		
			
				
					|  |  |  |  |                             unCount = 0; | 
			
		
	
		
			
				
					|  |  |  |  |                             splitCodeMapper.updateById(ioSplitCodeEntity); | 
			
		
	
		
			
				
					|  |  |  |  |                         } else { | 
			
		
	
		
			
				
					|  |  |  |  |                             ioSplitCodeEntity.setRemainCount(0); | 
			
		
	
	
		
			
				
					|  |  |  | @ -411,6 +413,9 @@ public class IoSplitCodeService extends ServiceImpl<IoSplitCodeMapper, IoSplitCo | 
			
		
	
		
			
				
					|  |  |  |  |     public ConfirmResponse confirmBizAutiTagCode(IoCollectOrderBiz collectOrderBiz, String queueCode, String confirmSplitCode, Boolean skipSplitConfirm) { | 
			
		
	
		
			
				
					|  |  |  |  |         ConfirmResponse confirmResponse = new ConfirmResponse(); | 
			
		
	
		
			
				
					|  |  |  |  |         IoCollectOrder collectOrder = collectOrderService.getByBillNo(collectOrderBiz.getOrderIdFk()); | 
			
		
	
		
			
				
					|  |  |  |  |         if (collectOrder == null) { | 
			
		
	
		
			
				
					|  |  |  |  |             throw new JsonException(500, "提交失败,未找到对应的单据!"); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         SysWorkplacePutRel sysWorkplacePutRel = workplacePutRelService.findPutWorkPlace(collectOrder.getWorkPlaceCode(), collectOrder.getBusType()); | 
			
		
	
		
			
				
					|  |  |  |  |         Long putWorkPlaceCode = null; | 
			
		
	
		
			
				
					|  |  |  |  |         if (sysWorkplacePutRel != null) | 
			
		
	
	
		
			
				
					|  |  |  | @ -458,7 +463,7 @@ public class IoSplitCodeService extends ServiceImpl<IoSplitCodeMapper, IoSplitCo | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         // 判断是否需要拆零确认:整箱数量大于1且有拆零数量且没有足够的拆零数量
 | 
			
		
	
		
			
				
					|  |  |  |  |         boolean needSplitConfirm = quotient > 1 && remainder > 0 && !hasEnoughSplitCount; | 
			
		
	
		
			
				
					|  |  |  |  |         boolean needSplitConfirm = quotient > 0 && remainder > 0 && !hasEnoughSplitCount; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         // 如果是第一次调用(confirmSplitCode为空)且需要拆零确认且不跳过拆零确认,只返回拆零信息
 | 
			
		
	
		
			
				
					|  |  |  |  |         if (StrUtil.isEmpty(confirmSplitCode) && needSplitConfirm && !IntUtil.value(skipSplitConfirm)) { | 
			
		
	
	
		
			
				
					|  |  |  | 
 |