Commit 807af9f6 by yangfangfang

新增web数据中心接口

parent 6fbba9f8
......@@ -190,7 +190,7 @@ public class TestGetCostData extends XMBaseTest {
throw new RuntimeException(e);
}
//根据商品类型全部加起来的确认收入和待消耗金额查全部(覆盖一下商品类型的新接口)
//根据商品类型全部加起来的确认收入查全部(覆盖一下商品类型的新接口)
JSONObject getCommodityTypeCostDetail=financeDataTools.getCommodityTypeCostDetail("DAY","LEFT_AMOUNT_DESC",TimeUtils.getTodayTime(),TimeUtils.getTodayEndTime());
int getCommodityTypeCostDetail_total=Integer.parseInt(getCommodityTypeCostDetail.getJSONObject("result").getString("total"));
Assert.assertEquals(getCommodityTypeCostDetail_total,9,"获取商品类型不是9个");
......@@ -209,7 +209,7 @@ public class TestGetCostData extends XMBaseTest {
// //待消耗金额--之前有脏数据,不好订正就不校验待消耗了
// //待消耗金额--之前有脏数据,不好订正就不校验待消耗金额
// BigDecimal leftAmount1=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(0).getString("leftAmount"));
// BigDecimal leftAmount2=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(1).getString("leftAmount"));
// BigDecimal leftAmount3=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(2).getString("leftAmount"));
......@@ -227,7 +227,7 @@ public class TestGetCostData extends XMBaseTest {
Assert.assertEquals(confirmedAmount1.setScale(2, RoundingMode.HALF_UP).add(confirmedAmount2.setScale(2, RoundingMode.HALF_UP)).add(confirmedAmount3.setScale(2, RoundingMode.HALF_UP))
.add(confirmedAmount4.setScale(2, RoundingMode.HALF_UP)).add(confirmedAmount5.setScale(2, RoundingMode.HALF_UP))
.add(confirmedAmount6.setScale(2, RoundingMode.HALF_UP)).add(confirmedAmount7.setScale(2, RoundingMode.HALF_UP))
.add(confirmedAmount8.setScale(2, RoundingMode.HALF_UP)).add(confirmedAmount9.setScale(2, RoundingMode.HALF_UP)),afterConfirmedAmount1,"所有商品类型的确认收入加起来不等于全部的确认收入");
.add(confirmedAmount8.setScale(2, RoundingMode.HALF_UP)).add(confirmedAmount9.setScale(2, RoundingMode.HALF_UP)),afterConfirmedAmount1,"营收明细所有商品类型的确认收入加起来不等于营收数据全部的确认收入");
// //校验所有商品类型的待消耗金额加起来=全部的待消耗金额
// Assert.assertEquals(leftAmount1.setScale(2, RoundingMode.HALF_UP).add(leftAmount2.setScale(2, RoundingMode.HALF_UP)).add(leftAmount3.setScale(2, RoundingMode.HALF_UP))
......
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