Commit c733b895 by yangfangfang

解决报错

parent e9cf891e
...@@ -154,7 +154,7 @@ public class TestGetCostData extends XMBaseTest { ...@@ -154,7 +154,7 @@ public class TestGetCostData extends XMBaseTest {
//根据商品类型全部加起来的确认收入查全部(覆盖一下商品类型的新接口) //根据商品类型全部加起来的确认收入查全部(覆盖一下商品类型的新接口)
JSONObject getCommodityTypeCostDetail=financeDataTools.getCommodityTypeCostDetail("DAY","LEFT_AMOUNT_DESC",TimeUtils.getTodayTime(),TimeUtils.getTodayEndTime()); JSONObject getCommodityTypeCostDetail=financeDataTools.getCommodityTypeCostDetail("DAY","LEFT_AMOUNT_DESC",TimeUtils.getTodayTime(),TimeUtils.getTodayEndTime());
int getCommodityTypeCostDetail_total=Integer.parseInt(getCommodityTypeCostDetail.getJSONObject("result").getString("total")); int getCommodityTypeCostDetail_total=Integer.parseInt(getCommodityTypeCostDetail.getJSONObject("result").getString("total"));
Assert.assertEquals(getCommodityTypeCostDetail_total,9,"获取商品类型不是9个"); Assert.assertEquals(getCommodityTypeCostDetail_total,10,"获取商品类型不是10个");
JSONObject getCommodityTypeCostDetail_result=getCommodityTypeCostDetail.getJSONObject("result"); JSONObject getCommodityTypeCostDetail_result=getCommodityTypeCostDetail.getJSONObject("result");
//确认收入 //确认收入
...@@ -167,6 +167,8 @@ public class TestGetCostData extends XMBaseTest { ...@@ -167,6 +167,8 @@ public class TestGetCostData extends XMBaseTest {
BigDecimal confirmedAmount7=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(6).getString("confirmedAmount")); BigDecimal confirmedAmount7=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(6).getString("confirmedAmount"));
BigDecimal confirmedAmount8=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(7).getString("confirmedAmount")); BigDecimal confirmedAmount8=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(7).getString("confirmedAmount"));
BigDecimal confirmedAmount9=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(8).getString("confirmedAmount")); BigDecimal confirmedAmount9=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(8).getString("confirmedAmount"));
BigDecimal confirmedAmount10=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(9).getString("confirmedAmount"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment