|
|
@@ -110,9 +110,15 @@ public class ShowHistogramService {
|
|
|
if ("time".equals(xColumnType)) {
|
|
|
xColumn = TimeConverterUtil.convertToOracleDateStr(xColumn, xAxisType);
|
|
|
}
|
|
|
- String fieldName = yAxisType + "(" + yColumn + ") as value,nvl(" + xColumn + ",'空') as name ";
|
|
|
+ //Y轴排序
|
|
|
+ if (sort.equals(yColumn)) {
|
|
|
+ sort = yAxisType + "(" + yColumn + ")";
|
|
|
+ }
|
|
|
+ String fieldName = yAxisType
|
|
|
+ + "(" + yColumn + ") as value,"
|
|
|
+ + ("scale".equals(xColumnType) ? "nvl(" + xColumn + ",0)" : "nvl(" + xColumn + ",'空')")
|
|
|
+ + " as name ";
|
|
|
String condition = screenToColumnS + " GROUP BY " + xColumn;
|
|
|
- sort = xColumn;
|
|
|
if (CollectionUtils.isEmpty(groupBy)) {
|
|
|
List<HistogramData> histogramList = showChartsMapper.getHistogramValueWithoutGroup(fieldName, tableName, condition, sort, rule);
|
|
|
if (histogramList.size() > histogramConfigInfo.getMaxCount()) {
|