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
7bdcc9b5
Commit
7bdcc9b5
authored
Nov 15, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动态查询工序
parent
4c4b4713
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
HGSC007.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
+9
-3
No files found.
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
View file @
7bdcc9b5
...
@@ -1268,12 +1268,14 @@
...
@@ -1268,12 +1268,14 @@
<!--工序累计产量-->
<!--工序累计产量-->
<select
id=
"queryBySunWt"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
<select
id=
"queryBySunWt"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
select
select
A.SORT as "sort",
A.process_name as "processName",
A.process_name as "processName",
ROUND(ifnull(SUM(B.INV_WEIGHT),0)/1000, 4) "totalWeight"
ROUND(ifnull(SUM(B.INV_WEIGHT),0)/1000, 4) "totalWeight"
from ${hggpSchema}.HGGY001 A
from ${hggpSchema}.HGGY001 A
join ${platSchema}.TXSOG01 C on A.FACTORY_CODE = C.COMPANY_CODE
join ${platSchema}.TXSOG01 C on A.FACTORY_CODE = C.COMPANY_CODE
left join (
left join (
select
select
h.COMPANY_CODE,
h2.process_code ,
h2.process_code ,
ROUND(ifnull(SUM(h.INV_WEIGHT), 0)/ 1000, 4) "INV_WEIGHT"
ROUND(ifnull(SUM(h.INV_WEIGHT), 0)/ 1000, 4) "INV_WEIGHT"
from ${hggpSchema}.hgkc003 h
from ${hggpSchema}.hgkc003 h
...
@@ -1285,8 +1287,8 @@
...
@@ -1285,8 +1287,8 @@
<isNotEmpty
prepend=
" AND "
property=
"depositDate"
>
<isNotEmpty
prepend=
" AND "
property=
"depositDate"
>
left(h.DEPOSIT_DATE,6) = left(#depositDate#,6)
left(h.DEPOSIT_DATE,6) = left(#depositDate#,6)
</isNotEmpty>
</isNotEmpty>
group by h2.process_code
group by h
.COMPANY_CODE, h
2.process_code
) B on A.process_code = B.process_code
) B on A.
FACTORY_CODE = B.COMPANY_CODE AND A.
process_code = B.process_code
where 1=1 and DELETE_FLAG = '0' and reveal = 1
where 1=1 and DELETE_FLAG = '0' and reveal = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
A.account_code = #accountCode#
A.account_code = #accountCode#
...
@@ -1294,11 +1296,15 @@
...
@@ -1294,11 +1296,15 @@
<isNotEmpty
prepend=
" AND "
property=
"processNames"
>
<isNotEmpty
prepend=
" AND "
property=
"processNames"
>
A.process_name IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"processNames"
>
#processNames[]#
</iterate>
A.process_name IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"processNames"
>
#processNames[]#
</iterate>
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
C.factory_code = #factoryCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryName"
>
<isNotEmpty
prepend=
" AND "
property=
"factoryName"
>
C.factory_name = #factoryName#
C.factory_name = #factoryName#
</isNotEmpty>
</isNotEmpty>
group by
group by
a.sort, A.process_name
A.SORT, A.process_name
order by A.SORT
</select>
</select>
<!--日期到条件7天日产量-->
<!--日期到条件7天日产量-->
<select
id=
"queryByDayWt"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
<select
id=
"queryByDayWt"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
...
...
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