Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
c8977b1b
Commit
c8977b1b
authored
Jun 28, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存物料大类
parent
ddab0317
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
HGKCTools.java
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
+3
-6
No files found.
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
View file @
c8977b1b
package
com
.
baosight
.
hggp
.
hg
.
kc
.
tools
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.baosight.hggp.common.CheckTypeEnum
;
import
com.baosight.hggp.core.constant.CommonConstant
;
...
...
@@ -273,13 +274,10 @@ public class HGKCTools {
HGSC008
hgsc008
=
HGSCTools
.
THGSC008
.
getById
(
o
.
getWorkId
());
if
(
Objects
.
nonNull
(
hgpz005
)){
HGKC003
hgkc003
=
new
HGKC003
();
BeanUtil
.
copyProperties
(
o
,
hgkc003
,
"id"
);
hgkc003
.
setDepositNo
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
PROD_DEPOSIT_NO
));
hgkc003
.
setQualityId
(
o
.
getId
());
hgkc003
.
setSubmitStatus
(
HGConstant
.
ProductStatus
.
WTJ
);
hgkc003
.
setCompanyCode
(
o
.
getCompanyCode
());
hgkc003
.
setCompanyName
(
o
.
getCompanyName
());
hgkc003
.
setAccountCode
(
o
.
getAccountCode
());
hgkc003
.
setDepCode
(
o
.
getDepCode
());
if
(
Objects
.
nonNull
(
code
)){
HGZL004
hgzl004
=
hgzl004List
.
stream
().
filter
(
h
->
h
.
getCheckId
().
equals
(
o
.
getId
())).
findAny
().
orElse
(
null
);
//整改通知单
...
...
@@ -298,8 +296,6 @@ public class HGKCTools {
//总重
// BigDecimal invWeight = invUnitWeight.multiply(hgkc003.getInvQty());
hgkc003
.
setInvWeight
(
hgsc008
.
getTotalWeight
());
hgkc003
.
setProjCode
(
o
.
getProjCode
());
hgkc003
.
setProjName
(
o
.
getProjName
());
hgkc003
.
setPrdtCode
(
o
.
getProductCode
());
hgkc003
.
setPrdtName
(
o
.
getProductName
());
hgkc003
.
setPrdtType
(
hgpz005
.
getInventType
());
...
...
@@ -308,6 +304,7 @@ public class HGKCTools {
hgkc003
.
setPrdtLength
(
hgpz005
.
getLength
());
hgkc003
.
setPrdtWidth
(
hgpz005
.
getWidth
());
hgkc003
.
setPrdtThick
(
hgpz005
.
getThick
());
hgkc003
.
setInventTypeDetail
(
hgpz005
.
getInventTypeDetail
());
hgkc003
.
setDepositDate
(
DateUtils
.
shortDate
());
hgkc003
.
setStorageType
(
HGConstant
.
StorageType
.
RK
);
hgkc003
.
setIsReturn
(
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