@Select("<script>select a.BLD_TP_NM,a.MON,convert(avg(a.MONEY),decimal(10,2)) MONEY from ("+
"select e.PRO_ID,t.BLD_TP_NM,e.MON,"+
"sum((if(e.WATER_MONEY is null, 0, e.WATER_MONEY)+if(e.ELEC_MONEY is null, 0, e.ELEC_MONEY)+if(e.GAS_MONEY is null, 0, e.GAS_MONEY))/b.BLD_AREA) MONEY "+
"from energy_count_m e,bus_project b,bus_build_tp t "+
"where e.PRO_ID=b.PRO_ID and b.BLD_TP_ID=t.BLD_TP_ID and e.`YEAR`=#{year} and b.BLD_ZONE_ID=#{bldZoneId} "+
"group by e.PRO_ID,t.BLD_TP_NM,e.MON order by t.BLD_TP_NM,e.MON"+
") a group by a.MON,a.BLD_TP_NM order by a.BLD_TP_NM,a.MON</script>")
"convert(sum((if(e.WATER_MONEY is null, 0, e.WATER_MONEY)+if(e.ELEC_MONEY is null, 0, e.ELEC_MONEY)+if(e.GAS_MONEY is null, 0, e.GAS_MONEY))/b.BLD_AREA),decimal(10,2)) MONEY "+
"from energy_count_m e,bus_project b,bus_build_tp t "+
"where e.PRO_ID=b.PRO_ID and b.BLD_TP_ID=t.BLD_TP_ID "+
"group by e.PRO_ID,b.PRO_NM,t.BLD_TP_NM,date_format(b.BLD_YEAR, '%Y') "+
"convert(sum((if(e.WATER_MONEY is null, 0, e.WATER_MONEY)+if(e.ELEC_MONEY is null, 0, e.ELEC_MONEY)+if(e.GAS_MONEY is null, 0, e.GAS_MONEY))/b.BLD_AREA),decimal(10,2)) MONEY "+
"from energy_count_m e,bus_project b,bus_build_tp t "+
"where e.PRO_ID=b.PRO_ID and b.BLD_TP_ID=t.BLD_TP_ID "+
"group by e.PRO_ID,b.PRO_NM,t.BLD_TP_NM,date_format(b.DEVICE_YEAR, '%Y') "+