Commit 43cb2382 by liuyang

1.工序产量换算计算

parent f40b9e57
......@@ -1243,7 +1243,7 @@
left join (
select
h2.process_code ,
ROUND(ifnull(SUM(h.INV_WEIGHT), 0)/ 1000, 4) "INV_WEIGHT"
ifnull(SUM(h.INV_WEIGHT), 0) "INV_WEIGHT"
from ${hggpSchema}.hgkc003 h
inner join ${hggpSchema}.hgzl002 h2 on h.QUALITY_ID = h2.id
where 1 = 1
......@@ -1282,7 +1282,7 @@
select
h.COMPANY_CODE,
h2.process_code ,
ROUND(ifnull(SUM(h.INV_WEIGHT), 0)/ 1000, 4) "INV_WEIGHT"
ifnull(SUM(h.INV_WEIGHT), 0) "INV_WEIGHT"
from ${hggpSchema}.hgkc003 h
inner join ${hggpSchema}.hgzl002 h2 on h.QUALITY_ID = h2.id
where h.DELETE_FLAG = '0' and h.SUBMIT_STATUS = '1'
......@@ -1316,7 +1316,7 @@
<select id="queryByDayWt" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
select
A.DEPOSIT_DATE as "depositDate",
ROUND(ifnull(SUM(A.INV_WEIGHT),0)/1000, 4) "totalWeight"
ifnull(SUM(A.INV_WEIGHT),0) "totalWeight"
from (
select
replace(date_sub(str_to_date(#depositDate#, '%Y%m%d'), interval 6 day), '-', '') as "DEPOSIT_DATE",
......
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