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
c13865bd
Commit
c13865bd
authored
May 12, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
计算单重更新
parent
cce8f813
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
HPKC001.java
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC001.java
+2
-2
HPPZTools.java
src/main/java/com/baosight/hpjx/hp/pz/tools/HPPZTools.java
+3
-3
No files found.
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC001.java
View file @
c13865bd
...
...
@@ -99,7 +99,7 @@ public class HPKC001 extends DaoEPBase {
private
Long
inventRecordId
;
/* 存货档案ID*/
private
BigDecimal
amount
=
new
BigDecimal
(
0.00
);
/* 数量*/
private
BigDecimal
unitWeight
=
new
BigDecimal
(
0.00
);
/* 单重*/
private
BigDecimal
weight
=
new
BigDecimal
(
0.00
);
/* 重量*/
private
BigDecimal
weight
=
new
BigDecimal
(
0.00
0
);
/* 重量*/
private
String
remark
=
" "
;
/* 备注*/
private
String
oldPurchaseNo
=
" "
;
/* 原采购单号*/
private
Integer
deleteFlag
;
/* 是否删除0.否1.是*/
...
...
@@ -197,7 +197,7 @@ public class HPKC001 extends DaoEPBase {
eiColumn
=
new
EiColumn
(
FIELD_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
2
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
...
...
src/main/java/com/baosight/hpjx/hp/pz/tools/HPPZTools.java
View file @
c13865bd
...
...
@@ -374,15 +374,15 @@ public class HPPZTools {
}
BigDecimal
unitWeight
=
BigDecimal
.
ONE
;
// 长
if
(
dbPz006
.
getLength
()
!=
null
)
{
if
(
dbPz006
.
getLength
()
!=
null
&&
dbPz006
.
getLength
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
)
{
unitWeight
=
unitWeight
.
multiply
(
dbPz006
.
getLength
());
}
// 宽
if
(
dbPz006
.
getWidth
()
!=
null
)
{
if
(
dbPz006
.
getWidth
()
!=
null
&&
dbPz006
.
getWidth
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
)
{
unitWeight
=
unitWeight
.
multiply
(
dbPz006
.
getWidth
());
}
// 厚
if
(
dbPz006
.
getThick
()
!=
null
)
{
if
(
dbPz006
.
getThick
()
!=
null
&&
dbPz006
.
getThick
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
)
{
unitWeight
=
unitWeight
.
multiply
(
dbPz006
.
getThick
());
}
// 乘以系数,除以1000000=重量(千克KG)
...
...
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