|
|
@@ -151,10 +151,10 @@ public interface ShowChartsMapper {
|
|
|
@Param("xColumn") String xColumn, @Param("timeType") String timeType);
|
|
|
|
|
|
//查询时间类型分组的值->优化后
|
|
|
- @Select("select ${dataType}(${yAxisName}) as \"value\",TO_CHAR(${xColumn},${timeType}) as \"date\",${groupsColumn} as \"group\" from ${tableName} where ${groupsColumn} IN (SELECT ${groupsColumn} FROM ${tableName} GROUP BY ${groupsColumn}) GROUP BY TO_CHAR(${xColumn},${timeType}),${groupsColumn} ")
|
|
|
+ @Select("select ${dataType}(${yAxisName}) as \"value\",TO_CHAR(${xColumn},${timeType}) as \"date\",${groupsColumn} as \"group\" from ${tableName} where ${groupsColumn} IN (SELECT ${groupsColumn} FROM ${tableName} GROUP BY ${groupsColumn}) ${screen} GROUP BY TO_CHAR(${xColumn},${timeType}),${groupsColumn} ")
|
|
|
List<LineSeriesGroupMap> getGroupsValuesTime(@Param("dataType") String dataType, @Param("yAxisName") String yAxisName, @Param("tableName") String tableName,
|
|
|
@Param("groupsColumn") String groupsColumn, @Param("groupsIndex") String groupsIndex,
|
|
|
- @Param("xColumn") String xColumn, @Param("timeType") String timeType
|
|
|
+ @Param("xColumn") String xColumn, @Param("timeType") String timeType, @Param("screen") String screen
|
|
|
);
|
|
|
|
|
|
//有分组时时间类型为空值
|