SQConstant.java
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.skua.modules.statisticsquery.constant;
/**
* <pre>
* SQ常量
* </pre>
*
* @author sonin
* @version 1.0 2023/9/22 14:31
*/
public interface SQConstant {
// 查询的数据源名称
String pgDBName = "pg-db";
// 别名表(字段id, nm)
String aliasTable = "statistics_query_alias";
// 标准格式时间
String dateFormat = "yyyy-MM-dd HH:mm:ss";
// 开始时间后缀
String startTimeSuffix = " 00:00:00";
// 结束时间后缀
String endTimeSuffix = " 23:59:59";
// 日
String day = "day";
// 月
String month = "month";
// 年
String year = "year";
// case when求sum后缀
String sumSuffix = "_sum";
// case when求count后缀
String countSuffix = "_count";
// case when求time后缀
String timeSuffix = "_time";
// 类Count
String countClass = "Count";
// 类Xsinsert
String xsinsertClass = "Xsinsert";
// 类Realtimedata
String realtimedataClass = "Realtimedata";
// 默认保留小数点位数
Integer decimalLength = 2;
}