|
@@ -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<>();
|
|
|
|