|
@@ -12,6 +12,7 @@ import com.usoftchina.bi.server.model.vo.dataVo.ChartsDataInfo;
|
|
|
import com.usoftchina.bi.core.jdbc.DynamicDataSourceContextHolder;
|
|
import com.usoftchina.bi.core.jdbc.DynamicDataSourceContextHolder;
|
|
|
import com.usoftchina.bi.server.utils.ScreenUtil;
|
|
import com.usoftchina.bi.server.utils.ScreenUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Repository;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
@@ -38,6 +39,7 @@ public class ShowHistogramService {
|
|
|
/*
|
|
/*
|
|
|
柱状图数据展示
|
|
柱状图数据展示
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @Cacheable(value = "Histogram", key = "#histogramConfigInfo.toString()+#dashId")
|
|
|
public RepEntity showHistogram(HistogramConfigInfo histogramConfigInfo, String token, int dashId){
|
|
public RepEntity showHistogram(HistogramConfigInfo histogramConfigInfo, String token, int dashId){
|
|
|
ChartsDataInfo chartsDataInfo = new ChartsDataInfo();
|
|
ChartsDataInfo chartsDataInfo = new ChartsDataInfo();
|
|
|
TimeReture timeReture = new TimeReture();
|
|
TimeReture timeReture = new TimeReture();
|