else//sum,max,min,count,avg等函数
{
SophicHistoryDAO sophicHistoryDAO = (SophicHistoryDAO)StorageService.ctx.getBean("sophicHistoryDAO");
if(sophicHistoryDAO!=null)
{
List<Double> values = sophicHistoryDAO.queryHistoryValue(table_meta_name, table_unit, id_col_name, value_col_name, time_col_name, key, startTime, endTime, interval, target, 0);
if(values!=null&&values.size()>0)
value = values.get(0);
}
}
return value;