(select cast(sum(cast(electric_energy as decimal(10, 2))) as decimal(10, 2)) as electric_energy from pfj_info_day where date_format(create_time,'%Y%m%d') = #{time} and type = #{type}
UNION ALL
select cast(sum(cast(electric_energy as decimal(10, 2))) as decimal(10, 2)) as electric_energy from dlswj_info_day where date_format(create_time,'%Y%m%d') = #{time} and type = #{type}
UNION ALL
select cast(sum(cast(electric_energy as decimal(10, 2))) as decimal(10, 2)) as electric_energy from jfktp_info_day where date_format(create_time,'%Y%m%d') = #{time} and type = #{type}) t
(select cast(sum(cast(electric_energy as decimal(10, 2))) as decimal(10, 2)) as electric_energy from pfj_info_month where date_format(create_time,'%Y%m') = #{time} and type = #{type}
UNION ALL
select cast(sum(cast(electric_energy as decimal(10, 2))) as decimal(10, 2)) as electric_energy from dlswj_info_month where date_format(create_time,'%Y%m') = #{time} and type = #{type}
UNION ALL
select cast(sum(cast(electric_energy as decimal(10, 2))) as decimal(10, 2)) as electric_energy from jfktp_info_month where date_format(create_time,'%Y%m') = #{time} and type = #{type}) t