Commit 1a15e08b by liuyang

2024-06-18 app工序累计产量bug修复

parent 068cebba
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment