|
|
@@ -46,6 +46,7 @@ public class ShowScatterService {
|
|
|
String xColumn = scatterConfigInfo.getxAxis().getColumnRename(),
|
|
|
yColumn = scatterConfigInfo.getyAxis().getColumnRename(),
|
|
|
xColumnType = scatterConfigInfo.getxAxis().getColumnType(),
|
|
|
+ yColumnType = scatterConfigInfo.getyAxis().getColumnType(),
|
|
|
yType = scatterConfigInfo.getyAxis().getShowDataType(),
|
|
|
yAxisType = CalculationJudgeUtil.Judge(yType),
|
|
|
xAxisType = scatterConfigInfo.getxAxis().getShowDataType();
|
|
|
@@ -98,10 +99,10 @@ public class ShowScatterService {
|
|
|
if ("time".equals(xColumnType)){
|
|
|
xColumn = TimeConverterUtil.convertToOracleDateStr(xColumn, xAxisType); //X轴
|
|
|
}
|
|
|
- String fieldName = yAxisType
|
|
|
- + "(" + yColumn + ") as value,"
|
|
|
- + ("scale".equals(xColumnType) ? "nvl(" + xColumn + ",0)" : "nvl(" + xColumn + ",'空')")
|
|
|
- + " as \"date\" ";
|
|
|
+ String fieldName = yAxisType + "(nvl(" + yColumn + ",0)) as value," + ("scale".equals(xColumnType) ? "nvl(" + xColumn + ",0)" : "nvl(" + xColumn + ",'空')") + " as \"date\" ";
|
|
|
+ if ("time".equals(yColumnType)) {
|
|
|
+ fieldName = yAxisType + "(" + yColumn + ") as value," + ("scale".equals(xColumnType) ? "nvl(" + xColumn + ",0)" : "nvl(" + xColumn + ",'空')") + " as name ";
|
|
|
+ }
|
|
|
String condition = screenToColumnS + " GROUP BY " + xColumn;
|
|
|
if (yAxisType.contains("distinct")) {
|
|
|
fieldName = fieldName.replace("distinct", "");
|