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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
24 deletions
+18
-24
HGSC013.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC013.xml
+18
-24
No files found.
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC013.xml
View file @
adb45526
...
...
@@ -69,24 +69,22 @@
k.INV_WEIGHT
from
${hggpSchema}.hgsc004a h
left join ${hggpSchema}.hgkc003 k on
h.company_code = k.COMPANY_CODE
and h.proj_code = k.PROJ_CODE
and h.material_id = k.MAT_ID
and h.product_code = k.PRDT_CODE
and k.DELETE_FLAG = 0
and h.lv = 3
and h.product_status = 1
and (k.PRDT_CODE, k.PROCESS_ORDER) in (
select INVENT_CODE, MAX(PROCESS_ORDER)
from ${hggpSchema}.hgpz005a
where 1=1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
group by INVENT_CODE
)
where 1=1
left join ${hggpSchema}.hgkc003 k on
h.company_code = k.COMPANY_CODE
and h.proj_code = k.PROJ_CODE
and h.material_id = k.MAT_ID
and h.product_code = k.PRDT_CODE
and k.DELETE_FLAG = 0
and (k.PRDT_CODE, k.PROCESS_ORDER) in (
select INVENT_CODE, MAX(PROCESS_ORDER)
from ${hggpSchema}.hgpz005a
where 1=1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
group by INVENT_CODE
)
where h.lv = 3 and h.product_status = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
h.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
...
...
@@ -155,9 +153,7 @@
${hggpSchema}.hgkc008a k
join ${hggpSchema}.hgkc008 k1 on
k.RECEIVE_ID = k1.id
where
k.DELETE_FLAG = 0
and k1.status = '1'
where k.DELETE_FLAG = 0 and k1.status = '1'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
k.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
...
...
@@ -183,9 +179,7 @@
and h.product_code = k.INVENT_CODE
and h.material_id = k.MAT_ID
and h.ID = K.MAT_DETAIL_ID
and h.lv = 4
and h.product_status = 1
where 1=1
where h.lv = 4 AND h.product_status = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
h.ACCOUNT_CODE = #accountCode#
</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