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
6f2b4f78
Commit
6f2b4f78
authored
Oct 24, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-23 修复生产下料默认下料组bug
parent
e1b035b4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
ServiceHPSC0061.java
...java/com/baosight/hpjx/hp/sc/service/ServiceHPSC0061.java
+17
-1
HPSC0061.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC0061.xml
+4
-10
No files found.
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC0061.java
View file @
6f2b4f78
...
...
@@ -138,9 +138,25 @@ public class ServiceHPSC0061 extends ServiceBase {
*/
private
EiInfo
refreshMain
(
EiInfo
inInfo
,
String
prodOrderNo
)
{
Map
queryMap
=
new
HashMap
();
List
<
Map
>
list
=
HPXSTools
.
XsOrg
.
queryParent
(
null
,
OrgTypeEnum
.
CUT_GROUP
.
getCode
());
if
(!
CollectionUtils
.
isEmpty
(
list
)){
List
<
String
>
orgIds
=
list
.
stream
().
map
(
m
->
m
.
get
(
"orgId"
).
toString
()).
collect
(
Collectors
.
toList
());
queryMap
.
put
(
"groupCodes"
,
orgIds
);
}
queryMap
.
put
(
"prodOrderNo"
,
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
);
return
inInfo
;
}
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC0061.xml
View file @
6f2b4f78
...
...
@@ -91,11 +91,8 @@
B.GROUP_NAME as "groupName",
IFNULL(B.COMPLETE_STATUS, 0) as "completeStatus"
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">
B.GROUP_CODE IN <iterate close=")" open="(" conjunction="," property="groupCodes">#groupCodes[]#</iterate>
</isNotEmpty>-->
LEFT JOIN ${hpjxSchema}.T_HPSC0061 B ON A.INVENT_CODE = B.INVENT_CODE and B.PROD_ORDER_NO = #prodOrderNo#
WHERE 1=1
ORDER BY A.INVENT_CODE ASC
</select>
...
...
@@ -103,11 +100,8 @@
SELECT COUNT(1)
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=
"groupCode"
>
B.GROUP_CODE = #groupCode#
</isNotEmpty>
ON A.INVENT_CODE = B.INVENT_CODE and B.PROD_ORDER_NO = #prodOrderNo#
WHERE 1=1
</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