You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<?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="com.epmet.dao.ComponentAccessTokenDao">
|
|
|
|
|
|
|
|
|
|
<resultMap type="com.epmet.entity.ComponentAccessTokenEntity" id="componentAccessTokenMap">
|
|
|
|
|
<result property="id" column="ID"/>
|
|
|
|
|
<result property="componentAccessToken" column="COMPONENT_ACCESS_TOKEN"/>
|
|
|
|
|
<result property="expiresIn" column="EXPIRES_IN"/>
|
|
|
|
|
<result property="delFlag" column="DEL_FLAG"/>
|
|
|
|
|
<result property="createdBy" column="CREATED_BY"/>
|
|
|
|
|
<result property="createdTime" column="CREATED_TIME"/>
|
|
|
|
|
<result property="updatedBy" column="UPDATED_BY"/>
|
|
|
|
|
<result property="updatedTime" column="UPDATED_TIME"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<!-- 插入component_access_token信息 -->
|
|
|
|
|
<insert id="insertComponentAccessToken" parameterType="com.epmet.dto.form.ComponentAccessTokenFormDTO">
|
|
|
|
|
INSERT INTO component_access_token ( ID, COMPONENT_ACCESS_TOKEN, EXPIRES_IN, DEL_FLAG, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME )
|
|
|
|
|
VALUES
|
|
|
|
|
(
|
|
|
|
|
REPLACE ( UUID(), '-', '' ),
|
|
|
|
|
#{componentAccessToken},
|
|
|
|
|
#{expiresIn},
|
|
|
|
|
#{delFlag},
|
|
|
|
|
#{createdBy},
|
|
|
|
|
NOW(),
|
|
|
|
|
#{updatedBy},
|
|
|
|
|
NOW()
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateOldComponentAccessToken">
|
|
|
|
|
update component_access_token set del_flag = 1
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
</mapper>
|