Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
1
Merge Requests
1
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
haoban3.0
haoban-manage3.0
Commits
c676a4fe
Commit
c676a4fe
authored
Jan 30, 2024
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature:周报月报金额
parent
18e1c542
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
MaterialDataAdaptor.java
.../service/service/content/adaptor/MaterialDataAdaptor.java
+2
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/adaptor/MaterialDataAdaptor.java
View file @
c676a4fe
...
@@ -114,7 +114,7 @@ public class MaterialDataAdaptor {
...
@@ -114,7 +114,7 @@ public class MaterialDataAdaptor {
return
null
;
return
null
;
}
}
int
useMatlNum
=
jsonObject
.
getIntValue
(
"useMatlNum"
);
int
useMatlNum
=
jsonObject
.
getIntValue
(
"useMatlNum"
);
BigDecimal
convSalesAmt
=
Optional
.
ofNullable
(
jsonObject
.
getBigDecimal
(
"
c
onvSalesAmt"
)).
orElse
(
BigDecimal
.
ZERO
);
BigDecimal
convSalesAmt
=
Optional
.
ofNullable
(
jsonObject
.
getBigDecimal
(
"
omniC
onvSalesAmt"
)).
orElse
(
BigDecimal
.
ZERO
);
String
amountUnit
=
""
;
String
amountUnit
=
""
;
if
(
convSalesAmt
.
compareTo
(
new
BigDecimal
(
10000
))
>=
0
)
{
if
(
convSalesAmt
.
compareTo
(
new
BigDecimal
(
10000
))
>=
0
)
{
convSalesAmt
=
convSalesAmt
.
divide
(
BigDecimal
.
valueOf
(
10000
),
2
,
RoundingMode
.
HALF_UP
);
convSalesAmt
=
convSalesAmt
.
divide
(
BigDecimal
.
valueOf
(
10000
),
2
,
RoundingMode
.
HALF_UP
);
...
@@ -164,6 +164,7 @@ public class MaterialDataAdaptor {
...
@@ -164,6 +164,7 @@ public class MaterialDataAdaptor {
}
}
BigDecimal
dayAvgUseMatlNum
=
jsonObject
.
getBigDecimal
(
"dayAvgUseMatlNum"
);
BigDecimal
dayAvgUseMatlNum
=
jsonObject
.
getBigDecimal
(
"dayAvgUseMatlNum"
);
BigDecimal
convSalesAmt
=
Optional
.
ofNullable
(
jsonObject
.
getBigDecimal
(
"convSalesAmt"
)).
orElse
(
BigDecimal
.
ZERO
);
BigDecimal
convSalesAmt
=
Optional
.
ofNullable
(
jsonObject
.
getBigDecimal
(
"convSalesAmt"
)).
orElse
(
BigDecimal
.
ZERO
);
convSalesAmt
=
convSalesAmt
.
add
(
Optional
.
ofNullable
(
jsonObject
.
getBigDecimal
(
"offlineConvSalesAmt"
)).
orElse
(
BigDecimal
.
ZERO
));
String
amountUnit
=
""
;
String
amountUnit
=
""
;
if
(
convSalesAmt
.
compareTo
(
new
BigDecimal
(
10000
))
>=
0
)
{
if
(
convSalesAmt
.
compareTo
(
new
BigDecimal
(
10000
))
>=
0
)
{
convSalesAmt
=
convSalesAmt
.
divide
(
BigDecimal
.
valueOf
(
10000
),
2
,
RoundingMode
.
HALF_UP
);
convSalesAmt
=
convSalesAmt
.
divide
(
BigDecimal
.
valueOf
(
10000
),
2
,
RoundingMode
.
HALF_UP
);
...
...
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