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
adb45526
Commit
adb45526
authored
Oct 28, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品成材率过滤构件零件
parent
478b85e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
HGSC013.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC013.xml
+3
-9
No files found.
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC013.xml
View file @
adb45526
...
@@ -75,8 +75,6 @@
...
@@ -75,8 +75,6 @@
and h.material_id = k.MAT_ID
and h.material_id = k.MAT_ID
and h.product_code = k.PRDT_CODE
and h.product_code = k.PRDT_CODE
and k.DELETE_FLAG = 0
and k.DELETE_FLAG = 0
and h.lv = 3
and h.product_status = 1
and (k.PRDT_CODE, k.PROCESS_ORDER) in (
and (k.PRDT_CODE, k.PROCESS_ORDER) in (
select INVENT_CODE, MAX(PROCESS_ORDER)
select INVENT_CODE, MAX(PROCESS_ORDER)
from ${hggpSchema}.hgpz005a
from ${hggpSchema}.hgpz005a
...
@@ -86,7 +84,7 @@
...
@@ -86,7 +84,7 @@
</isNotEmpty>
</isNotEmpty>
group by INVENT_CODE
group by INVENT_CODE
)
)
where
1=
1
where
h.lv = 3 and h.product_status =
1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
h.ACCOUNT_CODE = #accountCode#
h.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
</isNotEmpty>
...
@@ -155,9 +153,7 @@
...
@@ -155,9 +153,7 @@
${hggpSchema}.hgkc008a k
${hggpSchema}.hgkc008a k
join ${hggpSchema}.hgkc008 k1 on
join ${hggpSchema}.hgkc008 k1 on
k.RECEIVE_ID = k1.id
k.RECEIVE_ID = k1.id
where
where k.DELETE_FLAG = 0 and k1.status = '1'
k.DELETE_FLAG = 0
and k1.status = '1'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
k.ACCOUNT_CODE = #accountCode#
k.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
</isNotEmpty>
...
@@ -183,9 +179,7 @@
...
@@ -183,9 +179,7 @@
and h.product_code = k.INVENT_CODE
and h.product_code = k.INVENT_CODE
and h.material_id = k.MAT_ID
and h.material_id = k.MAT_ID
and h.ID = K.MAT_DETAIL_ID
and h.ID = K.MAT_DETAIL_ID
and h.lv = 4
where h.lv = 4 AND h.product_status = 1
and h.product_status = 1
where 1=1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
h.ACCOUNT_CODE = #accountCode#
h.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
</isNotEmpty>
...
...
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