|  | @@ -244,6 +244,27 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
 | 
	
		
			
				|  |  |              list4.add(Ingredient);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        //费用支出
 | 
	
		
			
				|  |  | +        String sqlCostpay = "SELECT " +
 | 
	
		
			
				|  |  | +                "  sp.cSPVCode as disbursementSlipNo, " +
 | 
	
		
			
				|  |  | +                "  sp.cSBVCode as invoicenum, " +
 | 
	
		
			
				|  |  | +                "  sp.cMaker as preparedBy, " +
 | 
	
		
			
				|  |  | +                "  sps.cExpCode as expenseItem, " +
 | 
	
		
			
				|  |  | +                "  sps.iMoney as disbursedLocalmoney, " +
 | 
	
		
			
				|  |  | +                "  sps.INatMoney as disbursedOriginalmoney  " +
 | 
	
		
			
				|  |  | +                "FROM " +
 | 
	
		
			
				|  |  | +                "  SalePayVouch sp " +
 | 
	
		
			
				|  |  | +                "  INNER JOIN SalePayVouchs sps ON sp.id = sps.id " +
 | 
	
		
			
				|  |  | +                "  where sp.cSOCode = '"+syCostAllocation.getGarmentContractno()+"'";
 | 
	
		
			
				|  |  | +        List<Map<String, Object>> costpayList  = senYuDataSourceOne.queryForList(sqlCostpay);
 | 
	
		
			
				|  |  | +        List<JSONObject> costpay = JsonChangeUtils.toJSONObject(costpayList);
 | 
	
		
			
				|  |  | +        List<SyCostAllocationCostpay> syCostAllocationCostpays = new ArrayList<>();
 | 
	
		
			
				|  |  | +        for (int i=0;i<costpay.size();i++) {
 | 
	
		
			
				|  |  | +            SyCostAllocationCostpay syCostAllocationCostpay = JSONObject.toJavaObject(costpay.get(i), SyCostAllocationCostpay.class);
 | 
	
		
			
				|  |  | +            syCostAllocationCostpays.add(syCostAllocationCostpay);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        syCostAllocation.setSyCostAllocationCostpayList(syCostAllocationCostpays);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          //数据整合
 | 
	
		
			
				|  |  |          List<JSONObject> processUnitList=new ArrayList<>();//子表数据_加工单位集合
 | 
	
		
			
				|  |  |          //获取主表加工单位,拆分获取对应数据
 |