Skip to content

Commit

Permalink
[type:fix]Fix namespace plugin enable switch (apache#5718)
Browse files Browse the repository at this point in the history
* fix

* fix

---------

Co-authored-by: ‘xcsnx’ <‘[email protected]’>
  • Loading branch information
xcsnx and ‘xcsnx’ authored Oct 24, 2024
1 parent 4218bd6 commit 2d07d5b
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,18 @@

<select id="selectByIds" parameterType="java.util.List" resultType="org.apache.shenyu.admin.model.vo.NamespacePluginVO">
SELECT
<include refid="Base_Column_List"/>
FROM namespace_plugin_rel
WHERE id IN
npr.id AS id,
npr.namespace_id AS namespaceId,
npr.plugin_id AS pluginId,
npr.config AS config,
npr.sort AS sort,
npr.enabled AS enabled,
npr.date_created AS dateCreated,
npr.date_updated AS dateUpdated,
p.role AS role,
p.NAME AS NAME
FROM namespace_plugin_rel npr LEFT JOIN plugin p ON npr.plugin_id = p.id
WHERE npr.id IN
<foreach item="id" collection="ids" open="(" separator="," close=")">
#{id, jdbcType=VARCHAR}
</foreach>
Expand Down

0 comments on commit 2d07d5b

Please sign in to comment.