diff --git a/plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/HistoryConfigInfoMapper.java b/plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/HistoryConfigInfoMapper.java index 582061dde8..5800919fde 100644 --- a/plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/HistoryConfigInfoMapper.java +++ b/plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/HistoryConfigInfoMapper.java @@ -136,6 +136,9 @@ default MapperResult detailUpdatedConfigHistory(MapperContext context) { "SELECT nid,data_id,group_id,tenant_id,app_name,content,md5,src_user,src_ip,op_type,publish_type,ext_info,gmt_create" + ",gmt_modified,encrypted_data_key FROM his_config_info WHERE nid = (SELECT min(nid) FROM his_config_info " + "WHERE nid > ? AND id = (SELECT id FROM his_config_info WHERE nid = ?))", - Collections.unmodifiableList(Arrays.asList(context.getWhereParameter(FieldConstant.NID), context.getWhereParameter(FieldConstant.NID)))); + Collections.unmodifiableList( + Arrays.asList(context.getWhereParameter(FieldConstant.NID), context.getWhereParameter(FieldConstant.NID)) + ) + ); } }