fix default sql in the comment to be consistent with the implementation (#12324)

This commit is contained in:
Sitosoym 2024-07-24 16:11:01 +08:00 committed by GitHub
parent 631babe1e2
commit 3e28b586bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ public interface ConfigInfoMapper extends Mapper {
/**
* Query configuration information based on group. <br/>The default sql: SELECT
* id,data_id,group_id,tenant_id,app_name,content FROM config_info WHERE tenant_id LIKE ? AND app_name=?
* id,data_id,group_id,tenant_id,app_name,content FROM config_info WHERE tenant_id LIKE ? AND app_name=? LIMIT startRow, pageSize
*
* @param context The context of startRow, pageSize
* @return The sql of querying configration information based on group.
@ -114,7 +114,7 @@ public interface ConfigInfoMapper extends Mapper {
/**
* 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
* "
*
*
* @param context The context of startRow, pageSize
* @return The sql of querying all configuration information.
@ -131,9 +131,9 @@ public interface ConfigInfoMapper extends Mapper {
MapperResult findAllConfigInfoBaseFetchRows(MapperContext context);
/**
* 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
* Query all config info. The default sql: "SELECT
* id,data_id,group_id,tenant_id,app_name,"+ (needContent ? "content," : "") + "md5,gmt_modified,type,encrypted_data_key FROM config_info WHERE id
* > ? ORDER BY id ASC LIMIT startRow,pageSize"
*
* @param context The context of startRow, pageSize
* @return The sql of querying all config info.
@ -141,8 +141,8 @@ public interface ConfigInfoMapper extends Mapper {
MapperResult findAllConfigInfoFragment(MapperContext context);
/**
* Query change config. <br/>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 <= ?
* Query change config. <br/>The default sql: SELECT id, data_id, group_id, tenant_id, app_name, md5,
* gmt_modified,encrypted_data_key FROM config_info WHERE gmt_modified >=? AND id > ? ORDER BY id LIMIT pageSize
*
* @param context sql paramMap
* @return The sql of querying change config.
@ -207,7 +207,7 @@ public interface ConfigInfoMapper extends Mapper {
/**
* 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 ...
* SELECT id,data_id,group_id,tenant_id,app_name,type,md5,gmt_modified FROM config_info WHERE ...
*
* @param context The map of params, the key is the parameter name(dataId, groupId, tenantId, appName, startTime,
* endTime, content, startTime, endTime), the value is the key's value.
@ -365,7 +365,7 @@ public interface ConfigInfoMapper extends Mapper {
/**
* 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=?
* config_info WHERE group_id=? AND tenant_id=? LIMIT startRow, pageSize
*
* @param context The context of startRow, pageSize
* @return Query configuration information based on group.