Skip to content

Commit

Permalink
fix sql bug for api-credential and jupyter
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjseagull committed Sep 3, 2024
1 parent 9674860 commit 3af9fb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
</set>
where 1 = 1
<if test="credential.id != null and credential.id !=''">
and `id` = #{credential.id},
and `id` = #{credential.id}
</if>
<if test="credential.accessKeyID != null and credential.accessKeyID !=''">
and `access_key_id` = #{credential.accessKeyID},
and `access_key_id` = #{credential.accessKeyID}
</if>
<if test="credential.owner != null and credential.owner !=''">
and `owner` = #{credential.owner},
and `owner` = #{credential.owner}
</if>
</update>
<delete id="deleteCredentialByCondition" parameterType="com.webank.wedpr.components.api.credential.dao.ApiCredentialDO">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
</set>
where 1=1
<if test="updatedInfo.id != null and updatedInfo.id !=''">
and `id` = #{updatedInfo.id},
and `id` = #{updatedInfo.id}
</if>
<if test="updatedInfo.owner != null and updatedInfo.owner !=''">
and `owner` = #{updatedInfo.owner},
and `owner` = #{updatedInfo.owner}
</if>
<if test="updatedInfo.agency != null and updatedInfo.agency !=''">
and `agency` = #{updatedInfo.agency},
and `agency` = #{updatedInfo.agency}
</if>
</update>
<delete id="deleteJupyterInfo">
Expand Down

0 comments on commit 3af9fb9

Please sign in to comment.