Skip to content

Commit

Permalink
fix default sql in the comment to be consistent with the implementati…
Browse files Browse the repository at this point in the history
…on (#12324)
  • Loading branch information
Sitosoym authored Jul 24, 2024
1 parent 631babe commit 3e28b58
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ default MapperResult findConfigInfoByAppCountRows(MapperContext context) {

/**
* 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.
Expand Down Expand Up @@ -114,7 +114,7 @@ default MapperResult configInfoLikeTenantCount(MapperContext context) {
/**
* 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.
Expand All @@ -131,18 +131,18 @@ default MapperResult configInfoLikeTenantCount(MapperContext context) {
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.
*/
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.
Expand Down Expand Up @@ -207,7 +207,7 @@ default MapperResult findChangeConfigCountRows(MapperContext context) {

/**
* 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.
Expand Down Expand Up @@ -365,7 +365,7 @@ default MapperResult findConfigInfo4PageCountRows(MapperContext context) {

/**
* 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.
Expand Down

0 comments on commit 3e28b58

Please sign in to comment.