SQConstant.java 1.1 KB
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;

}