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
bd8f0147
Commit
bd8f0147
authored
Oct 29, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品成材率添加过滤条件
parent
0ad28df9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
16 deletions
+27
-16
HGSC013.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC013.xml
+27
-16
No files found.
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC013.xml
View file @
bd8f0147
...
...
@@ -98,13 +98,7 @@
h.proj_code = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
h.proj_name = #projName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productCode"
>
h.product_code = #productCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depositDate"
>
k.DEPOSIT_DATE = #depositDate#
h.proj_name like concat('%',#projName#,'%')
</isNotEmpty>
) ha
join (
...
...
@@ -149,10 +143,8 @@
k1.RECEIPT_DATE ,
sum(k.INV_QTY) as INV_QTY,
sum(k.INV_WEIGHT) as INV_WEIGHT
from
${hggpSchema}.hgkc008a k
join ${hggpSchema}.hgkc008 k1 on
k.RECEIVE_ID = k1.id
from ${hggpSchema}.hgkc008a k
join ${hggpSchema}.hgkc008 k1 on k.RECEIVE_ID = k1.id
where k.DELETE_FLAG = 0 and k1.status = '1'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
k.ACCOUNT_CODE = #accountCode#
...
...
@@ -163,9 +155,6 @@
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
k.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"receiptDate"
>
k.RECEIPT_DATE = #receiptDate#
</isNotEmpty>
group by
k.COMPANY_CODE,
k.PROJ_CODE,
...
...
@@ -189,13 +178,35 @@
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
h.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
h.product_code = #inventCode#
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
h.proj_code = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
h.proj_name like concat('%',#projName#,'%')
</isNotEmpty>
) hb on
ha.company_code = hb.COMPANY_CODE
and ha.proj_code = hb.PROJ_CODE
and ha.product_code = hb.parent_prod_code
where 1=1
<isNotEmpty
prepend=
" AND "
property=
"depositDate"
>
ha.DEPOSIT_DATE = #depositDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"receiptDate"
>
hb.RECEIPT_DATE = #receiptDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productCode"
>
ha.product_code = #productCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productName"
>
ha.product_name like concat('%',#productName#,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
hb.product_code = #inventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
hb.product_name like concat('%',#inventName#,'%')
</isNotEmpty>
order by
ha.id desc
</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