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
1a15e08b
Commit
1a15e08b
authored
Jun 18, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-18 app工序累计产量bug修复
parent
068cebba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
HGSC007.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
+15
-15
No files found.
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
View file @
1a15e08b
...
@@ -538,7 +538,7 @@
...
@@ -538,7 +538,7 @@
h2.factory_name as factoryName ,
h2.factory_name as factoryName ,
0 as dayWt,
0 as dayWt,
0 as monthWt,
0 as monthWt,
sum(h.
finish_weight
) as yearWt
sum(h.
INV_WEIGHT
) as yearWt
from ${hggpSchema}.hgkc003 h inner join ${hggpSchema}.hgzl002 h2 on h.QUALITY_ID = h2.id
from ${hggpSchema}.hgkc003 h inner join ${hggpSchema}.hgzl002 h2 on h.QUALITY_ID = h2.id
where 1 = 1 and h.DELETE_FLAG = '0' and h.SUBMIT_STATUS = '1'
where 1 = 1 and h.DELETE_FLAG = '0' and h.SUBMIT_STATUS = '1'
<include
refid=
"appCondition"
/>
<include
refid=
"appCondition"
/>
...
@@ -552,7 +552,7 @@
...
@@ -552,7 +552,7 @@
h2.factory_code as factoryCode ,
h2.factory_code as factoryCode ,
h2.factory_name as factoryName ,
h2.factory_name as factoryName ,
0 as dayWt,
0 as dayWt,
sum(h.
finish_weight
) as monthWt,
sum(h.
INV_WEIGHT
) as monthWt,
0 as yearWt
0 as yearWt
from ${hggpSchema}.hgkc003 h inner join ${hggpSchema}.hgzl002 h2 on h.QUALITY_ID = h2.id
from ${hggpSchema}.hgkc003 h inner join ${hggpSchema}.hgzl002 h2 on h.QUALITY_ID = h2.id
where 1 = 1 and h.DELETE_FLAG = '0' and h.SUBMIT_STATUS = '1'
where 1 = 1 and h.DELETE_FLAG = '0' and h.SUBMIT_STATUS = '1'
...
@@ -566,7 +566,7 @@
...
@@ -566,7 +566,7 @@
select
select
h2.factory_code as factoryCode ,
h2.factory_code as factoryCode ,
h2.factory_name as factoryName ,
h2.factory_name as factoryName ,
sum(h.
finish_weight
) as dayWt,
sum(h.
INV_WEIGHT
) as dayWt,
0 as monthWt,
0 as monthWt,
0 as yearWt
0 as yearWt
from ${hggpSchema}.hgkc003 h inner join ${hggpSchema}.hgzl002 h2 on h.QUALITY_ID = h2.id
from ${hggpSchema}.hgkc003 h inner join ${hggpSchema}.hgzl002 h2 on h.QUALITY_ID = h2.id
...
@@ -583,12 +583,12 @@
...
@@ -583,12 +583,12 @@
<!--查询工序日产量-->
<!--查询工序日产量-->
<select
id=
"queryWt"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
<select
id=
"queryWt"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
select
select
h.DEPOSIT_DATE as "completeDate",
h.DEPOSIT_DATE as "completeDate",
h2.factory_code as "factoryCode",
h2.factory_code as "factoryCode",
h2.factory_name as "factoryName",
h2.factory_name as "factoryName",
h2.process_code as "processCode",
h2.process_code as "processCode",
h2.process_name as "processName",
h2.process_name as "processName",
SUM(h.INV_WEIGHT) "totalWeight"
SUM(h.INV_WEIGHT) "totalWeight"
from ${hggpSchema}.hgkc003 h inner join ${hggpSchema}.hgzl002 h2 on h.QUALITY_ID = h2.id
from ${hggpSchema}.hgkc003 h inner join ${hggpSchema}.hgzl002 h2 on h.QUALITY_ID = h2.id
where 1 = 1 and h.DELETE_FLAG = '0' and h.SUBMIT_STATUS = '1'
where 1 = 1 and h.DELETE_FLAG = '0' and h.SUBMIT_STATUS = '1'
<include
refid=
"appCondition"
/>
<include
refid=
"appCondition"
/>
...
@@ -621,12 +621,12 @@
...
@@ -621,12 +621,12 @@
<!--查询工序月产量-->
<!--查询工序月产量-->
<select
id=
"queryMonthWt"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
<select
id=
"queryMonthWt"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
select
select
left(h.DEPOSIT_DATE,6) as "completeDate",
left(h.DEPOSIT_DATE,6) as "completeDate",
h2.factory_code as "factoryCode",
h2.factory_code as "factoryCode",
h2.factory_name as "factoryName",
h2.factory_name as "factoryName",
h2.process_code as "processCode",
h2.process_code as "processCode",
h2.process_name as "processName",
h2.process_name as "processName",
SUM(h.INV_WEIGHT) "totalWeight"
SUM(h.INV_WEIGHT) "totalWeight"
from ${hggpSchema}.hgkc003 h inner join ${hggpSchema}.hgzl002 h2 on h.QUALITY_ID = h2.id
from ${hggpSchema}.hgkc003 h inner join ${hggpSchema}.hgzl002 h2 on h.QUALITY_ID = h2.id
where 1 = 1 and h.DELETE_FLAG = '0' and h.SUBMIT_STATUS = '1'
where 1 = 1 and h.DELETE_FLAG = '0' and h.SUBMIT_STATUS = '1'
<include
refid=
"appCondition"
/>
<include
refid=
"appCondition"
/>
...
...
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