Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
cloud-fb
Commits
0e1aae89
Commit
0e1aae89
authored
May 08, 2021
by
高晓磊
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
31b3ead3
1764382d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
SalesPlanServiceImpl.java
...st/dinas/sales/internal/service/SalesPlanServiceImpl.java
+2
-1
No files found.
backend/xyst.dinas.sales/src/main/java/com/xyst/dinas/sales/internal/service/SalesPlanServiceImpl.java
View file @
0e1aae89
...
...
@@ -310,12 +310,13 @@ public class SalesPlanServiceImpl implements SalesPlanService{
for
(
int
k
=
0
;
k
<
jsonArray
.
length
();
k
++)
{
JSONObject
jsonObject
=
jsonArray
.
getJSONObject
(
k
);
BigDecimal
distributedVolum
=
calcDistributedVolum
(
jsonObject
,
startTime
,
endTime
);
if
(
jsonObject
.
getBigDecimal
(
"planAmount"
).
compareTo
(
BigDecimal
.
ZERO
)
!=
0
&&
jsonObject
.
getBigDecimal
(
"planAmount"
).
compareTo
(
distributedVolum
)
>
-
1
)
{
//大于等于
if
(
jsonObject
.
getBigDecimal
(
"planAmount"
).
compareTo
(
BigDecimal
.
ZERO
)
!=
0
&&
(
jsonObject
.
getBigDecimal
(
"planAmount"
).
compareTo
(
distributedVolum
)
>
-
1
||
jsonObject
.
getBigDecimal
(
"planAmount"
).
compareTo
(
jsonObject
.
getBigDecimal
(
"contractAmount"
))
>
-
1
)
)
{
//大于等于
Map
<
String
,
Object
>
verifyMap
=
new
HashMap
<
String
,
Object
>();
verifyMap
.
put
(
"contractName"
,
jsonObject
.
getString
(
"contractName"
));
verifyMap
.
put
(
"dinasTypeName"
,
jsonObject
.
getString
(
"dinasTypeName"
));
verifyMap
.
put
(
"projectName"
,
jsonObject
.
getString
(
"projectName"
));
verifyMap
.
put
(
"distributedVolum"
,
distributedVolum
);
verifyMap
.
put
(
"planAmount"
,
jsonObject
.
getBigDecimal
(
"planAmount"
));
verifyMap
.
put
(
"contractAmount"
,
jsonObject
.
getBigDecimal
(
"contractAmount"
));
verifyList
.
add
(
verifyMap
);
}
...
...
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