|  | @@ -1922,12 +1922,27 @@ public class FabricLossServiceImpl extends ServiceImpl<FabricLossMapper, FabricL
 | 
	
		
			
				|  |  |  		if (oConvertUtils.listIsNotEmpty(outList1)){
 | 
	
		
			
				|  |  |  			otherOutList.addAll(outList1);
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | +		// 获取物料入库类型
 | 
	
		
			
				|  |  | +		List<FabricInvInType> invInTypeList = new ArrayList<>();
 | 
	
		
			
				|  |  | +		if (otherOutList.size()>0){
 | 
	
		
			
				|  |  | +			List<String> cInvIdList = new ArrayList<>();
 | 
	
		
			
				|  |  | +			otherOutList.forEach(e->{
 | 
	
		
			
				|  |  | +				cInvIdList.add(e.getInvOutId());
 | 
	
		
			
				|  |  | +			});
 | 
	
		
			
				|  |  | +			 invInTypeList = fabricLossMapper.getInTypeByInvId(cInvIdList);
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  		// 把0299和0399 的 成衣材料出库和销售出库cBusType设置成否,只用于扣减入库。不作为转入成本
 | 
	
		
			
				|  |  | -		otherOutList.forEach(e->{
 | 
	
		
			
				|  |  | +		// 采购入库的不计入,其他计入
 | 
	
		
			
				|  |  | +		for (FabricMoOrderCK e : otherOutList) {
 | 
	
		
			
				|  |  |  			if ("0299".equalsIgnoreCase(e.getCInvCCodeOut()) || "0399".equalsIgnoreCase(e.getCInvCCodeOut())) {
 | 
	
		
			
				|  |  | -				e.setCBusType("否");
 | 
	
		
			
				|  |  | +				FabricInvInType invInType = invInTypeList.stream().filter(t->t.getCInvId().equalsIgnoreCase(e.getInvOutId())).findFirst().orElse(null);
 | 
	
		
			
				|  |  | +				if (invInType != null && "11".equalsIgnoreCase(invInType.getCInType())) {
 | 
	
		
			
				|  |  | +					e.setCBusType("否");
 | 
	
		
			
				|  |  | +				}
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  | -		});
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		allOutList.addAll(otherOutList);
 | 
	
		
			
				|  |  |  		allOutList.forEach(e->{
 |