Commit 772ced56 by liuyang

修复生产驾驶舱项目产量bug

parent bcc06ede
......@@ -407,8 +407,8 @@
concat(left(max(a.PLAN_COMPLETION_DATE), 4), '/', substring(max(a.PLAN_COMPLETION_DATE), 5, 2), '/', right(max(a.PLAN_COMPLETION_DATE), 2)) as JHDATE,
concat(format(ifnull((sum(b.NUM * b.UNIT_WT) / 1000), 0), 2), '吨') as JHCL,
concat(format(ifnull( sum(c.AMOUNT * b.UNIT_WT) / 1000 , 0 ), 2) , '吨') as SJCL,
concat(format((ifnull( sum(c.AMOUNT * b.UNIT_WT) / 1000 , 0 ) / ifnull( sum(b.NUM * b.UNIT_WT)/ 1000 , 0 ) * 100), 2), '%') as SCJD,
concat(format((ifnull( sum(d.AMOUNT * d.UNIT_WEIGHT), 0 ) / ifnull( sum(b.NUM * b.UNIT_WT) , 0 ) * 100), 2), '%') as FHJD
concat(format((ifnull( sum(c.AMOUNT * b.UNIT_WT) / 1000 , 0 ) / ifnull( sum(b.NUM * b.UNIT_WT)/ 1000 , 0 ) * 100), 2), '%') as SCJD, <!--生产进度-->
concat(format((ifnull( sum(d.AMOUNT * d.UNIT_WEIGHT), 0 ) / ifnull( sum(b.NUM * b.UNIT_WT) , 0 ) * 100), 2), '%') as FHJD <!--出库进度-->
from ${hpjxSchema}.T_HPSC003 a
left join
(
......
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