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
007cf0a8
Commit
007cf0a8
authored
Aug 12, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-08-12 材料计划导入如果没有产品编码就系统生成编码
parent
75526473
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+6
-3
No files found.
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
007cf0a8
...
...
@@ -1440,6 +1440,9 @@ public class HGSCTools {
DaoUtils
.
insert
(
HGSC009
.
INSERT
,
hgsc009
);
List
<
HGSC009A
>
hgsc009as
=
new
ArrayList
<>();
for
(
HGSC009A
hgsc009a:
hgsc009aList
)
{
if
(
hgsc009a
.
getInventCode
().
trim
().
isEmpty
()){
hgsc009a
.
setInventCode
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
INVENT_CODE
));
}
List
<
HGPZ005
>
hgpz005List
=
DaoBase
.
getInstance
().
query
(
HGPZ005
.
QUERY
,
new
HashMap
<
String
,
String
>(){{
put
(
"inventCode"
,
hgsc009a
.
getInventCode
());
}});
...
...
@@ -1463,10 +1466,10 @@ public class HGSCTools {
hgsc009a
.
setWidth
(
hgpz005
.
getWidth
());
hgsc009a
.
setThick
(
hgpz005
.
getThick
());
hgsc009a
.
setInventTypeDetail
(
hgpz005
.
getInventTypeDetail
()+
""
);
hgsc009as
.
add
(
hgsc009a
);
DaoUtils
.
insert
(
HGSC009A
.
INSERT
,
hgsc009a
.
toMap
());
//
hgsc009as.add(hgsc009a);
}
DaoUtils
.
insertBatch
(
HGSC009A
.
INSERT
,
hgsc009as
);
}
}
...
...
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