Skip to content

Commit

Permalink
[type:improve] add pluginRelId field for query (#5814)
Browse files Browse the repository at this point in the history
Co-authored-by: aias00 <[email protected]>
  • Loading branch information
VampireAchao and Aias00 authored Nov 27, 2024
1 parent 60fb483 commit 3c36999
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public class NamespacePluginVO extends PluginVO implements Serializable {
*/
private String namespaceId;

/**
* namespace id.
*/
private String pluginRelId;

/**
* plugin jar byte.
*/
Expand Down Expand Up @@ -112,6 +117,24 @@ public void setPluginId(final String pluginId) {
this.pluginId = pluginId;
}

/**
* Gets the plugin rel id.
*
* @return the plugin rel id
*/
public String getPluginRelId() {
return pluginRelId;
}

/**
* set pluginRelId.
*
* @param pluginRelId pluginRelId
*/
public void setPluginRelId(final String pluginRelId) {
this.pluginRelId = pluginRelId;
}

/**
* Gets the value of file.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@
#{namespacePluginRelDO.dateUpdated, jdbcType=TIMESTAMP})
</foreach>
</insert>

<select id="selectByQuery" parameterType="org.apache.shenyu.admin.model.query.NamespacePluginQuery"
resultType="org.apache.shenyu.admin.model.vo.NamespacePluginVO">
SELECT
npr.namespace_id AS namespaceId,
npr.plugin_id AS id,
npr.id AS pluginRelId,
npr.config AS config,
npr.sort AS sort,
npr.enabled AS enabled,
Expand Down Expand Up @@ -352,7 +353,7 @@
#{id, jdbcType=VARCHAR}
</foreach>
</update>

<update id="updateEnableByNamespaceIdAndPluginIdList">
UPDATE namespace_plugin_rel
SET enabled = #{enabled, jdbcType=TINYINT}
Expand Down

0 comments on commit 3c36999

Please sign in to comment.