Browse Source

SQL拼接错误

chenw 6 years ago
parent
commit
5db3decd29

+ 1 - 1
bi-server/src/main/java/com/usoftchina/bi/server/service/chart/ShowLineService.java

@@ -93,7 +93,7 @@ public class ShowLineService {
             xColumn = TimeConverterUtil.convertToOracleDateStr(xColumn, xAxisType);         //X轴 -> 折线图X轴只能为日期类型
             String fieldName = yAxisType + "(nvl(" + yColumn + ",0)) as value," + xColumn + " as name ";
             if ("time".equals(yColumnType)) {
-                fieldName = yAxisType + "(" + yColumn + ")) as value," + xColumn + " as name ";
+                fieldName = yAxisType + "(" + yColumn + ") as value," + xColumn + " as name ";
             }
             String condition = screenToColumnS + " GROUP BY " + xColumn;
             if (yAxisType.contains("distinct")) {