Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-sportstest
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiamai-test
xm-sportstest
Commits
c733b895
Commit
c733b895
authored
Aug 26, 2025
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决报错
parent
e9cf891e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/main/java/com/xiaomai/cases/polar/data/financeData/TestGetCostData.java
+3
-1
No files found.
src/main/java/com/xiaomai/cases/polar/data/financeData/TestGetCostData.java
View file @
c733b895
...
@@ -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"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment