| | |
| | | LAST_YEAR("LAST_YEAR", "去年"), |
| | | THIS_YEAR("THIS_YEAR_MONTH", "今年"), |
| | | LAST_HOUR_24("LAST_HOUR_24", "最近24小时"), |
| | | ALL("ALL", "全部"), |
| | | CUSTOM("CUSTOM", "自定义"); |
| | | |
| | | private String code; |
| | |
| | | whereSql.append(DateUtils.format(indItem.getTimeStart(), PATTERN_MON)); |
| | | whereSql.append("'"); |
| | | break; |
| | | case ALL: |
| | | whereSql.append("1 = 1"); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | |
| | | SQLFilter.sqlInject2(dto.getViewSql()); |
| | | SQLFilter.sqlInject2(dto.getWhereSql()); |
| | | SQLFilter.sqlInject2(dto.getGroupSql()); |
| | | SQLFilter.sqlInject2(dto.getGroupSql()); |
| | | DataContextHolder.setDataSourceId(Long.valueOf(dto.getDataSource())); |
| | | return baseDao.getSourceValue(dto); |
| | | } |