forked from zhangyuan/epmet-cloud-lingshan
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.
36 lines
1.4 KiB
36 lines
1.4 KiB
|
6 years ago
|
<?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.AuthCodeDao">
|
||
|
|
|
||
|
|
<resultMap type="com.epmet.entity.AuthCodeEntity" id="authCodeMap">
|
||
|
|
<result property="id" column="ID"/>
|
||
|
|
<result property="customerId" column="CUSTOMER_ID"/>
|
||
|
|
<result property="authAppid" column="AUTH_APPID"/>
|
||
|
|
<result property="authCode" column="AUTH_CODE"/>
|
||
|
|
<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>
|
||
|
|
|
||
|
|
<insert id="insertRedirectAuthCode" parameterType="com.epmet.dto.form.AuthCodeFormDTO">
|
||
|
|
INSERT INTO auth_code ( ID, CUSTOMER_ID, AUTH_APPID, AUTH_CODE, EXPIRES_IN, DEL_FLAG, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME )
|
||
|
|
VALUES
|
||
|
|
(
|
||
|
|
REPLACE ( UUID(), '-', '' ),
|
||
|
|
#{customerId},
|
||
|
|
#{authAppId},
|
||
|
|
#{authCode},
|
||
|
|
#{expiresIn},
|
||
|
|
#{delFlag},
|
||
|
|
#{createdBy},
|
||
|
|
NOW(),
|
||
|
|
#{updatedBy},
|
||
|
|
NOW()
|
||
|
|
)
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
</mapper>
|