全局配置逻辑实现
This commit is contained in:
1 parent
da4af93a1e
commit
cf8220edbd
13 files changed
+361
-35
No files matched your search
@@ -56,6 +56,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="selectUsdtConfigVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectFirstForUpdate" resultMap="UsdtConfigResult">
|
||||
<include refid="selectUsdtConfigVo"/>
|
||||
order by id asc limit 1 for update
|
||||
</select>
|
||||
|
||||
<update id="rotateEnvelope">
|
||||
update usdt_config
|
||||
set version = #{config.version},
|
||||
encryption_algorithm = #{config.encryptionAlgorithm},
|
||||
password_kdf = #{config.passwordKdf},
|
||||
iterations = #{config.iterations},
|
||||
encrypted_dek = #{config.encryptedDek},
|
||||
dek_nonce = #{config.dekNonce},
|
||||
key_salt = #{config.keySalt},
|
||||
password_salt = #{config.passwordSalt},
|
||||
password_hash = #{config.passwordHash},
|
||||
rotated_at = #{config.rotatedAt}
|
||||
where id = #{config.id}
|
||||
and version = #{oldVersion}
|
||||
</update>
|
||||
|
||||
<insert id="insertUsdtConfig" parameterType="UsdtConfig" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into usdt_config
|
||||
@@ -133,4 +154,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
</mapper>
|
||||
Reference in new issue
Block a user