|
|
@@ -16,10 +16,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
16
|
16
|
<result property="refreshTokenValidity" column="refresh_token_validity" />
|
|
17
|
17
|
<result property="additionalInformation" column="additional_information" />
|
|
18
|
18
|
<result property="autoapprove" column="autoapprove" />
|
|
|
19
|
+ <result property="originSecret" column="origin_secret" />
|
|
19
|
20
|
</resultMap>
|
|
20
|
21
|
|
|
21
|
22
|
<sql id="selectSysClientDetailsVo">
|
|
22
|
|
- select client_id, resource_ids, client_secret, scope, authorized_grant_types, web_server_redirect_uri, authorities, access_token_validity, refresh_token_validity, additional_information, autoapprove from sys_oauth_client_details
|
|
|
23
|
+ select client_id, resource_ids, client_secret, scope, authorized_grant_types, web_server_redirect_uri, authorities, access_token_validity, refresh_token_validity, additional_information, autoapprove, origin_secret from sys_oauth_client_details
|
|
23
|
24
|
</sql>
|
|
24
|
25
|
|
|
25
|
26
|
<select id="selectSysClientDetailsList" parameterType="SysClientDetails" resultMap="SysClientDetailsResult">
|
|
|
@@ -48,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
48
|
49
|
<if test="refreshTokenValidity != null">refresh_token_validity,</if>
|
|
49
|
50
|
<if test="additionalInformation != null">additional_information,</if>
|
|
50
|
51
|
<if test="autoapprove != null">autoapprove,</if>
|
|
|
52
|
+ <if test="originSecret != null">origin_secret,</if>
|
|
51
|
53
|
</trim>
|
|
52
|
54
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
53
|
55
|
<if test="clientId != null">#{clientId},</if>
|
|
|
@@ -61,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
61
|
63
|
<if test="refreshTokenValidity != null">#{refreshTokenValidity},</if>
|
|
62
|
64
|
<if test="additionalInformation != null">#{additionalInformation},</if>
|
|
63
|
65
|
<if test="autoapprove != null ">#{autoapprove},</if>
|
|
|
66
|
+ <if test="originSecret != null ">#{originSecret},</if>
|
|
64
|
67
|
</trim>
|
|
65
|
68
|
</insert>
|
|
66
|
69
|
|
|
|
@@ -77,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
77
|
80
|
<if test="refreshTokenValidity != null">refresh_token_validity = #{refreshTokenValidity},</if>
|
|
78
|
81
|
<if test="additionalInformation != null">additional_information = #{additionalInformation},</if>
|
|
79
|
82
|
<if test="autoapprove != null">autoapprove = #{autoapprove},</if>
|
|
|
83
|
+ <if test="originSecret != null">origin_secret = #{originSecret},</if>
|
|
80
|
84
|
</trim>
|
|
81
|
85
|
where client_id = #{clientId}
|
|
82
|
86
|
</update>
|