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
2f8b57f5
Commit
2f8b57f5
authored
Oct 28, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品成材率
parent
de5887cb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
ServiceHGSC004A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC004A.java
+3
-1
ServiceHGSC013.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC013.java
+2
-2
HGSC013.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC013.xml
+0
-0
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC004A.java
View file @
2f8b57f5
...
@@ -281,7 +281,7 @@ public class ServiceHGSC004A extends ServiceBase {
...
@@ -281,7 +281,7 @@ public class ServiceHGSC004A extends ServiceBase {
*/
*/
private
void
submitPlanEntity
(
HGSC004
hgsc004
,
Boolean
flag
,
List
<
HGSC004A
>
hgsc004AList
)
{
private
void
submitPlanEntity
(
HGSC004
hgsc004
,
Boolean
flag
,
List
<
HGSC004A
>
hgsc004AList
)
{
List
<
String
>
inventCodes
=
hgsc004AList
.
stream
().
map
(
HGSC004A:
:
getProductCode
).
collect
(
Collectors
.
toList
());
List
<
String
>
inventCodes
=
hgsc004AList
.
stream
().
map
(
HGSC004A:
:
getProductCode
).
collect
(
Collectors
.
toList
());
List
<
HGPZ005
>
hgpz005List
=
HGPZTools
.
HgPz005
.
listByInventCodes
(
inventCodes
);
List
<
HGPZ005
>
hgpz005List
=
HGPZTools
.
HgPz005
.
listByInventCodes
(
inventCodes
);
//第一次全部提交
//第一次全部提交
if
(
flag
){
if
(
flag
){
//主表
//主表
...
@@ -295,6 +295,8 @@ public class ServiceHGSC004A extends ServiceBase {
...
@@ -295,6 +295,8 @@ public class ServiceHGSC004A extends ServiceBase {
//加工的才生成生产计划
//加工的才生成生产计划
mapA
.
put
(
"inventSource"
,
HGConstant
.
InventSource
.
JG
);
mapA
.
put
(
"inventSource"
,
HGConstant
.
InventSource
.
JG
);
hgsc004AList
=
dao
.
query
(
HGSC004A
.
QUERY_BY_MATERIAL_ID
,
mapA
,
0
,
-
999999
);
hgsc004AList
=
dao
.
query
(
HGSC004A
.
QUERY_BY_MATERIAL_ID
,
mapA
,
0
,
-
999999
);
inventCodes
=
hgsc004AList
.
stream
().
map
(
HGSC004A:
:
getProductCode
).
collect
(
Collectors
.
toList
());
hgpz005List
=
HGPZTools
.
HgPz005
.
listByInventCodes
(
inventCodes
);
List
<
HGSC005A
>
hgsc005AList
=
new
LinkedList
<>();
List
<
HGSC005A
>
hgsc005AList
=
new
LinkedList
<>();
for
(
HGSC004A
hgsc004A
:
hgsc004AList
){
for
(
HGSC004A
hgsc004A
:
hgsc004AList
){
//全部提交后的增加、修改
//全部提交后的增加、修改
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC013.java
View file @
2f8b57f5
...
@@ -39,8 +39,8 @@ public class ServiceHGSC013 extends ServiceEPBase {
...
@@ -39,8 +39,8 @@ public class ServiceHGSC013 extends ServiceEPBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
if
(
queryMap
.
containsKey
(
"
contrac
tDate"
)){
if
(
queryMap
.
containsKey
(
"
receip
tDate"
)){
queryMap
.
put
(
"
contractDate"
,
DateUtils
.
formatShort
(
queryMap
.
get
(
"contrac
tDate"
)));
queryMap
.
put
(
"
receiptDate"
,
DateUtils
.
formatShort
(
queryMap
.
get
(
"receip
tDate"
)));
}
}
List
<
Map
>
list
=
DaoBase
.
getInstance
().
query
(
"HGSC013.query"
,
queryMap
);
List
<
Map
>
list
=
DaoBase
.
getInstance
().
query
(
"HGSC013.query"
,
queryMap
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
list
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
list
);
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC013.xml
View file @
2f8b57f5
This diff is collapsed.
Click to expand it.
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