mirror of
https://github.com/Hello-hao/Tbed.git
synced 2024-04-21 12:32:10 +00:00
34 lines
1000 B
XML
34 lines
1000 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="cn.hellohao.dao.KeysMapper">
|
|
|
|
|
|
<!-- 查询对象存储key-->
|
|
<select id="selectKeys" parameterType="integer" resultType="cn.hellohao.pojo.Keys">
|
|
SELECT
|
|
*
|
|
FROM
|
|
`keys`
|
|
WHERE
|
|
storageType = #{storageType}
|
|
</select>
|
|
|
|
<!-- 查询对象存储key-->
|
|
<select id="getKeys" parameterType="integer" resultType="cn.hellohao.pojo.Keys">
|
|
SELECT
|
|
*
|
|
FROM
|
|
`keys`
|
|
</select>
|
|
|
|
<update id="updateKey" parameterType="cn.hellohao.pojo.Keys">
|
|
UPDATE `keys`
|
|
SET AccessKey = #{AccessKey},
|
|
AccessSecret = #{AccessSecret},
|
|
Endpoint = #{Endpoint},
|
|
Bucketname = #{Bucketname},
|
|
RequestAddress = #{RequestAddress}
|
|
WHERE
|
|
storageType = #{storageType}
|
|
</update>
|
|
</mapper> |