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
2162405a
Commit
2162405a
authored
Oct 22, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-21 生产下料默认下料组
parent
ac66d60a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
ServiceHPSC0061.java
...java/com/baosight/hpjx/hp/sc/service/ServiceHPSC0061.java
+15
-6
HPSC0061.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC0061.xml
+2
-2
No files found.
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC0061.java
View file @
2162405a
...
...
@@ -41,10 +41,7 @@ import org.springframework.util.CollectionUtils;
import
java.math.BigDecimal
;
import
java.text.DecimalFormat
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -62,7 +59,8 @@ public class ServiceHPSC0061 extends ServiceBase {
@OperationLogAnnotation
(
operModul
=
"生产下料"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
GROUP_RECORD_BLOCK_ID
),
null
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
GROUP_RECORD_BLOCK_ID
),
new
HashMap
<
String
,
Object
>(){{
put
(
"orgType"
,
OrgTypeEnum
.
CUT_GROUP
.
getCode
());}},
false
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPSC005
().
eiMetadata
);
inInfo
.
addBlock
(
CommonConstant
.
Field
.
DETAIL
).
addBlockMeta
(
new
HPSC006
().
eiMetadata
);
}
catch
(
Exception
e
)
{
...
...
@@ -113,7 +111,18 @@ public class ServiceHPSC0061 extends ServiceBase {
}
queryMap
.
put
(
"prodOrderNo"
,
inInfo
.
getString
(
"prodOrderNo"
));
List
<
HPSC0061
>
dbSc0061s
=
dao
.
query
(
"HPSC0061.queryDetail"
,
queryMap
);
inInfo
.
addBlock
(
CommonConstant
.
Field
.
DETAIL
).
setRows
(
dbSc0061s
);
List
<
HPSC0061
>
list1
=
new
ArrayList
<>();
for
(
HPSC0061
dbSc0061
:
dbSc0061s
)
{
if
(
list
.
size
()
>
0
){
dbSc0061
.
setGroupCode
(
list
.
get
(
0
).
get
(
"orgId"
).
toString
());
dbSc0061
.
setGroupName
(
list
.
get
(
0
).
get
(
"orgCname"
).
toString
());
}
else
{
dbSc0061
.
setGroupCode
(
""
);
dbSc0061
.
setGroupName
(
""
);
}
list1
.
add
(
dbSc0061
);
}
inInfo
.
addBlock
(
CommonConstant
.
Field
.
DETAIL
).
setRows
(
list1
);
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询明细失败"
);
}
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC0061.xml
View file @
2162405a
...
...
@@ -93,9 +93,9 @@
FROM ${hpjxSchema}.T_HPSC0061A A
LEFT JOIN ${hpjxSchema}.T_HPSC0061 B ON A.INVENT_CODE = B.INVENT_CODE
WHERE B.PROD_ORDER_NO = #prodOrderNo#
<isNotEmpty
prepend=
" AND "
property=
"groupCodes"
>
<
!--<
isNotEmpty prepend=" AND " property="groupCodes">
B.GROUP_CODE IN <iterate close=")" open="(" conjunction="," property="groupCodes">#groupCodes[]#</iterate>
</isNotEmpty>
</isNotEmpty>
-->
ORDER BY A.INVENT_CODE ASC
</select>
...
...
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