|
|
@@ -48,8 +48,7 @@ public class ShowIndicatorService {
|
|
|
String fields = "", otherFields = "";
|
|
|
String sort = indicatorConfigInfo.getSort();
|
|
|
String condition = getCondition(filters, indicatorConfigInfo.getxField().getColumnRename(), indicatorConfigInfo.getyField().getColumnRename());
|
|
|
- condition = condition + (StringUtils.isEmpty(condition) ? "" : " AND") + " ROWNUM <= " + indicatorConfigInfo.getThreshold();
|
|
|
- String tableName = chartsUtilService.getSqlStr(token, indicatorConfigInfo.getId(), 0);
|
|
|
+ String tableName = chartsUtilService.getSqlStr(token, indicatorConfigInfo.getId(), 0);
|
|
|
String operate = indicatorConfigInfo.getyField().getShowDataType();
|
|
|
if (ObjectUtils.isEmpty(indicatorConfigInfo.getxField())) {
|
|
|
fields += StringUtils.isEmpty(operate) ? indicatorConfigInfo.getyField().getColumnRename() + " as \"value\" " : operate + "(" + indicatorConfigInfo.getyField().getColumnRename() + ") as \"value\" ";
|
|
|
@@ -64,7 +63,7 @@ public class ShowIndicatorService {
|
|
|
fields += "," + String.join(",", indicatorConfigInfo.getOtherColumn());
|
|
|
condition += "," + String.join(",", indicatorConfigInfo.getOtherColumn());
|
|
|
}
|
|
|
- List<Map<String, Object>> indicatorSeriesMapList = showChartsMapper.getIndicatorValue(fields, tableName, condition, sort, indicatorConfigInfo.getRule());
|
|
|
+ List<Map<String, Object>> indicatorSeriesMapList = showChartsMapper.getIndicatorValue(fields, tableName, condition, sort, indicatorConfigInfo.getRule(), indicatorConfigInfo.getThreshold());
|
|
|
chartsDataInfo.setChartsColumnConfig(chartsConfigMapper.getChartsColumn(indicatorConfigInfo.getId()));
|
|
|
chartsDataInfo.setSerieses(indicatorSeriesMapList);
|
|
|
chartsDataInfo.setStyleConfig(styleConfig);
|