接口 ConfigInfoMapper

    • 方法详细资料

      • findConfigMaxId

        java.lang.String findConfigMaxId()
        Get the maxId. The default sql: SELECT max(id) FROM config_info
        返回:
        the sql of getting the maxId.
      • findAllDataIdAndGroup

        java.lang.String findAllDataIdAndGroup()
        Find all dataId and group. The default sql: SELECT DISTINCT data_id, group_id FROM config_info
        返回:
        The sql of finding all dataId and group.
      • findConfigInfoByAppCountRows

        java.lang.String findConfigInfoByAppCountRows()
        Query the count of config_info by tenantId and appName. The default sql: SELECT count(*) FROM config_info WHERE tenant_id LIKE ? AND app_name=?
        返回:
        The sql of querying the count of config_info.
      • findConfigInfoByAppFetchRows

        java.lang.String findConfigInfoByAppFetchRows​(int startRow,
                                                      int pageSize)
        Query configuration information based on group. The default sql: SELECT id,data_id,group_id,tenant_id,app_name,content FROM config_info WHERE tenant_id LIKE ? AND app_name=?
        参数:
        startRow - The start index.
        pageSize - The size of page.
        返回:
        The sql of querying configration information based on group.
      • configInfoLikeTenantCount

        java.lang.String configInfoLikeTenantCount()
        Returns the number of configuration items. The default sql: SELECT count(*) FROM config_info WHERE tenant_id LIKE ?
        返回:
        The sql of querying the number of configuration items.
      • getTenantIdList

        java.lang.String getTenantIdList​(int startRow,
                                         int pageSize)
        Get tenant id list by page. The default sql: SELECT tenant_id FROM config_info WHERE tenant_id != '' GROUP BY tenant_id LIMIT startRow, pageSize
        参数:
        startRow - The start index.
        pageSize - The size of page.
        返回:
        The sql of getting tenant id list by page.
      • getGroupIdList

        java.lang.String getGroupIdList​(int startRow,
                                        int pageSize)
        Get group id list by page. The default sql: SELECT group_id FROM config_info WHERE tenant_id ='' GROUP BY group_id LIMIT startRow, pageSize
        参数:
        startRow - The start index.
        pageSize - The size of page.
        返回:
        The sql of getting group id list by page.
      • findAllConfigKey

        java.lang.String findAllConfigKey​(int startRow,
                                          int pageSize)
        Query all configuration information by page. The default sql: SELECT data_id,group_id,app_name FROM ( SELECT id FROM config_info WHERE tenant_id LIKE ? ORDER BY id LIMIT startRow, pageSize ) g, config_info t WHERE g.id = t.id "
        参数:
        startRow - The start index.
        pageSize - The size of page.
        返回:
        The sql of querying all configuration information.
      • findAllConfigInfoBaseFetchRows

        java.lang.String findAllConfigInfoBaseFetchRows​(int startRow,
                                                        int pageSize)
        Query all configuration information by page. The default sql: SELECT t.id,data_id,group_id,content,md5 FROM ( SELECT id FROM config_info ORDER BY id LIMIT ?,?) g, config_info t WHERE g.id = t.id
        参数:
        startRow - The start index.
        pageSize - The size of page.
        返回:
        The sql of querying all configuration information by page.
      • findAllConfigInfoFragment

        java.lang.String findAllConfigInfoFragment​(int startRow,
                                                   int pageSize)
        Query all config info. The default sql: SELECT id,data_id,group_id,tenant_id,app_name,content,md5,gmt_modified,type,encrypted_data_key FROM config_info WHERE id > ? ORDER BY id ASC LIMIT startRow,pageSize
        参数:
        startRow - The start index.
        pageSize - The size of page.
        返回:
        The sql of querying all config info.
      • findChangeConfig

        java.lang.String findChangeConfig()
        Query change config. The default sql: SELECT data_id, group_id, tenant_id, app_name, content, gmt_modified,encrypted_data_key FROM config_info WHERE gmt_modified >=? AND gmt_modified <= ?
        返回:
        The sql of querying change config.
      • findChangeConfigCountRows

        java.lang.String findChangeConfigCountRows​(java.util.Map<java.lang.String,​java.lang.String> params,
                                                   java.sql.Timestamp startTime,
                                                   java.sql.Timestamp endTime)
        Get the count of config information. The default sql: SELECT count(*) FROM config_info WHERE ...
        参数:
        params - The map of params, the key is the parameter name(dataId, groupId, tenantId, appName, startTime, endTime, content), the value is the key's value.
        startTime - start time
        endTime - end time
        返回:
        The sql of getting the count of config information.
      • findChangeConfigFetchRows

        java.lang.String findChangeConfigFetchRows​(java.util.Map<java.lang.String,​java.lang.String> params,
                                                   java.sql.Timestamp startTime,
                                                   java.sql.Timestamp endTime,
                                                   int startRow,
                                                   int pageSize,
                                                   long lastMaxId)
        According to the time period and configuration conditions to query the eligible configuration. The default sql: SELECT id,data_id,group_id,tenant_id,app_name,content,type,md5,gmt_modified FROM config_info WHERE ...
        参数:
        params - The map of params, the key is the parameter name(dataId, groupId, tenantId, appName, startTime, endTime, content), the value is the key's value.
        startTime - start time
        endTime - end time
        startRow - The start index.
        pageSize - The size of page.
        lastMaxId - The max id.
        返回:
        The sql of getting config information according to the time period.
      • listGroupKeyMd5ByPageFetchRows

        java.lang.String listGroupKeyMd5ByPageFetchRows​(int startRow,
                                                        int pageSize)
        list group key md5 by page. The default sql: SELECT t.id,data_id,group_id,tenant_id,app_name,md5,type,gmt_modified,encrypted_data_key FROM ( SELECT id FROM config_info ORDER BY id LIMIT ?,? ) g, config_info t WHERE g.id = t.id
        参数:
        startRow - The start index.
        pageSize - The size of page.
        返回:
        The sql of listing group key md5 by page.
      • findAllConfigInfo4Export

        java.lang.String findAllConfigInfo4Export​(java.util.List<java.lang.Long> ids,
                                                  java.util.Map<java.lang.String,​java.lang.String> params)
        query all configuration information according to group, appName, tenant (for export). The default sql: SELECT id,data_id,group_id,tenant_id,app_name,content,type,md5,gmt_create,gmt_modified, src_user,src_ip,c_desc,c_use,effect,c_schema,encrypted_data_key FROM config_info WHERE ...
        参数:
        ids - ids
        params - The map of params, the key is the parameter name(dataId, group, appName), the value is the key's value.
        返回:
        Collection of ConfigInfo objects
      • findConfigInfoBaseLikeCountRows

        java.lang.String findConfigInfoBaseLikeCountRows​(java.util.Map<java.lang.String,​java.lang.String> params)
        Get the count of config information. The default sql: SELECT count(*) FROM config_info WHERE ...
        参数:
        params - The map of params, the key is the parameter name(dataId, groupId, tenant_id, content), the value is the arbitrary object.
        返回:
        The sql of getting the count of config information.
      • findConfigInfoBaseLikeFetchRows

        java.lang.String findConfigInfoBaseLikeFetchRows​(java.util.Map<java.lang.String,​java.lang.String> params,
                                                         int startRow,
                                                         int pageSize)
        Get the config information. The default sql: SELECT id,data_id,group_id,tenant_id,content FROM config_info WHERE ...
        参数:
        params - The map of params, the key is the parameter name(dataId, groupId, tenant_id, content), the value is the key's value.
        startRow - The start index.
        pageSize - The size of page.
        返回:
        The sql of getting the config information.
      • findConfigInfo4PageCountRows

        java.lang.String findConfigInfo4PageCountRows​(java.util.Map<java.lang.String,​java.lang.String> params)
        find the count of config info. The default sql: SELECT count(*) FROM config_info ...
        参数:
        params - The mpa of dataId, groupId and appName.
        返回:
        The count of config info.
      • findConfigInfo4PageFetchRows

        java.lang.String findConfigInfo4PageFetchRows​(java.util.Map<java.lang.String,​java.lang.String> params,
                                                      int startRow,
                                                      int pageSize)
        find config info. The default sql: SELECT id,data_id,group_id,tenant_id,app_name,content,type,encrypted_data_key FROM config_info ...
        参数:
        params - The mpa of dataId, groupId and appName.
        startRow - The start index.
        pageSize - The size of page.
        返回:
        The sql of finding config info.
      • findConfigInfoBaseByGroupFetchRows

        java.lang.String findConfigInfoBaseByGroupFetchRows​(int startRow,
                                                            int pageSize)
        Query configuration information based on group. The default sql: SELECT id,data_id,group_id,content FROM config_info WHERE group_id=? AND tenant_id=?
        参数:
        startRow - The start index.
        pageSize - The size of page.
        返回:
        Query configuration information based on group.
      • findConfigInfoLike4PageCountRows

        java.lang.String findConfigInfoLike4PageCountRows​(java.util.Map<java.lang.String,​java.lang.String> params)
        Query config info count. The default sql: SELECT count(*) FROM config_info ...
        参数:
        params - The map of dataId, group, appName, content
        返回:
        The sql of querying config info count
      • findConfigInfoLike4PageFetchRows

        java.lang.String findConfigInfoLike4PageFetchRows​(java.util.Map<java.lang.String,​java.lang.String> params,
                                                          int startRow,
                                                          int pageSize)
        Query config info. The default sql: SELECT id,data_id,group_id,tenant_id,app_name,content,encrypted_data_key FROM config_info ...
        参数:
        params - The map of dataId, group, appName, content
        startRow - The start index.
        pageSize - The size of page.
        返回:
        The sql of querying config info
      • findAllConfigInfoFetchRows

        java.lang.String findAllConfigInfoFetchRows​(int startRow,
                                                    int pageSize)
        Query all configuration information by page. The default sql: SELECT t.id,data_id,group_id,tenant_id,app_name,content,md5 " + " FROM ( SELECT id FROM config_info WHERE tenant_id LIKE ? ORDER BY id LIMIT ?,? )" + " g, config_info t WHERE g.id = t.id
        参数:
        startRow - The start index.
        pageSize - The size of page.
        返回:
        Query all configuration information by page.
      • findConfigInfosByIds

        java.lang.String findConfigInfosByIds​(int idSize)
        find ConfigInfo by ids. The default sql: SELECT ID,data_id,group_id,tenant_id,app_name,content,md5 FROM config_info WHERE id IN (...)
        参数:
        idSize - the size of ids.
        返回:
        find ConfigInfo by ids.
      • removeConfigInfoByIdsAtomic

        java.lang.String removeConfigInfoByIdsAtomic​(int size)
        Remove configuration; database atomic operation, minimum SQL action, no business encapsulation.
        参数:
        size - The size of ids.
        返回:
        The sql of removing configuration.
      • updateConfigInfoAtomicCas

        java.lang.String updateConfigInfoAtomicCas()
        Update configuration; database atomic operation, minimum SQL action, no business encapsulation. The default sql: UPDATE config_info SET content=?, md5 = ?, src_ip=?,src_user=?,gmt_modified=?, app_name=?,c_desc=?,c_use=?, effect=?,type=?,c_schema=? WHERE data_id=? AND group_id=? AND tenant_id=? AND (md5=? OR md5 IS NULL OR md5='')
        返回:
        The sql of updating configuration cas.