Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
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
platform
hp-smart
Commits
a73f08cd
Commit
a73f08cd
authored
Mar 25, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料清单计算总重,四舍五入bug修复
parent
45ba1827
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ServiceHPSC002.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
+3
-3
No files found.
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
View file @
a73f08cd
...
@@ -139,7 +139,7 @@ public class ServiceHPSC002 extends ServiceBase {
...
@@ -139,7 +139,7 @@ public class ServiceHPSC002 extends ServiceBase {
BigDecimal
num
=
hpsc002
.
getNum
();
BigDecimal
num
=
hpsc002
.
getNum
();
BigDecimal
unitWt
=
hpsc002
.
getUnitWt
();
BigDecimal
unitWt
=
hpsc002
.
getUnitWt
();
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
BigDecimal
totalWt
=
new
BigDecimal
(
decimalFormat
.
format
(
Math
.
round
(
num
.
multiply
(
unitWt
).
floatValue
()
)));
BigDecimal
totalWt
=
new
BigDecimal
(
decimalFormat
.
format
(
num
.
multiply
(
unitWt
).
floatValue
(
)));
hpsc002
.
setDelStatus
(
CommonConstant
.
YesNo
.
NO_0
.
intValue
());
hpsc002
.
setDelStatus
(
CommonConstant
.
YesNo
.
NO_0
.
intValue
());
hpsc002
.
setTotalWt
(
totalWt
);
hpsc002
.
setTotalWt
(
totalWt
);
...
@@ -293,7 +293,7 @@ public class ServiceHPSC002 extends ServiceBase {
...
@@ -293,7 +293,7 @@ public class ServiceHPSC002 extends ServiceBase {
BigDecimal
num
=
hppz002
.
getNum
();
BigDecimal
num
=
hppz002
.
getNum
();
BigDecimal
unitWt
=
hppz002
.
getUnitWt
();
BigDecimal
unitWt
=
hppz002
.
getUnitWt
();
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
BigDecimal
totalWt
=
new
BigDecimal
(
decimalFormat
.
format
(
Math
.
round
(
num
.
multiply
(
unitWt
).
floatValue
()
)));
BigDecimal
totalWt
=
new
BigDecimal
(
decimalFormat
.
format
(
num
.
multiply
(
unitWt
).
floatValue
(
)));
hppz002
.
setDelStatus
(
CommonConstant
.
YesNo
.
NO_0
.
intValue
());
hppz002
.
setDelStatus
(
CommonConstant
.
YesNo
.
NO_0
.
intValue
());
hppz002
.
setTotalWt
(
totalWt
);
hppz002
.
setTotalWt
(
totalWt
);
...
@@ -443,7 +443,7 @@ public class ServiceHPSC002 extends ServiceBase {
...
@@ -443,7 +443,7 @@ public class ServiceHPSC002 extends ServiceBase {
BigDecimal
num
=
hppz002
.
getNum
();
BigDecimal
num
=
hppz002
.
getNum
();
BigDecimal
unitWt
=
hppz002
.
getUnitWt
();
BigDecimal
unitWt
=
hppz002
.
getUnitWt
();
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
BigDecimal
totalWt
=
new
BigDecimal
(
decimalFormat
.
format
(
Math
.
round
(
num
.
multiply
(
unitWt
).
floatValue
()
)));
BigDecimal
totalWt
=
new
BigDecimal
(
decimalFormat
.
format
(
num
.
multiply
(
unitWt
).
floatValue
(
)));
hppz002
.
setDelStatus
(
CommonConstant
.
YesNo
.
NO_0
.
intValue
());
hppz002
.
setDelStatus
(
CommonConstant
.
YesNo
.
NO_0
.
intValue
());
hppz002
.
setTotalWt
(
totalWt
);
hppz002
.
setTotalWt
(
totalWt
);
hppz002
.
setSpec
(
HPPZTools
.
HpPz006
.
jointSpec
(
hppz002
.
getLength
(),
hppz002
.
getWidth
(),
hppz002
.
getThick
()));
hppz002
.
setSpec
(
HPPZTools
.
HpPz006
.
jointSpec
(
hppz002
.
getLength
(),
hppz002
.
getWidth
(),
hppz002
.
getThick
()));
...
...
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