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
60991619
Commit
60991619
authored
May 18, 2024
by
yukang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
领料计算重量BUG
parent
2e1f5921
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
ServiceHPKC002A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002A.java
+3
-1
No files found.
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002A.java
View file @
60991619
...
...
@@ -32,6 +32,7 @@ import com.baosight.iplat4j.core.util.NumberUtils;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
java.math.BigDecimal
;
import
java.text.DecimalFormat
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -154,6 +155,7 @@ public class ServiceHPKC002A extends ServiceEPBase {
* @param dbKc010Map
*/
private
void
saveData
(
List
<
Map
>
resultRows
,
Map
<
Long
,
HPKC010
>
dbKc010Map
,
String
hpsc006Id
)
{
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
for
(
Map
row
:
resultRows
)
{
BigDecimal
applyAmount
=
MapUtils
.
getBigDecimal
(
row
,
"applyAmount"
);
String
applyRemark
=
MapUtils
.
getString
(
row
,
"applyRemark"
);
...
...
@@ -164,7 +166,7 @@ public class ServiceHPKC002A extends ServiceEPBase {
newKc002
.
setReqNo
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
HPKC002_NUMBER
));
newKc002
.
setReceiptDate
(
DateUtils
.
shortDate
());
newKc002
.
setAmount
(
applyAmount
);
newKc002
.
setWeight
(
dbKc010
.
getUnitWeight
().
multiply
(
applyAmount
).
divide
(
new
BigDecimal
(
1000
)));
newKc002
.
setWeight
(
new
BigDecimal
(
decimalFormat
.
format
(
dbKc010
.
getUnitWeight
().
multiply
(
applyAmount
).
divide
(
new
BigDecimal
(
1000
))
)));
newKc002
.
setRemark
(
applyRemark
);
newKc002
.
setKcId
(
kcId
);
newKc002
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
NO_0
);
...
...
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