|
@@ -0,0 +1,152 @@
|
|
1
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
3
|
+<mapper namespace="com.kingkong.bljs.dao.AppMapper">
|
|
4
|
+ <resultMap id="BaseResultMap" type="com.kingkong.bljs.entity.App">
|
|
5
|
+ <!--
|
|
6
|
+ WARNING - @mbg.generated
|
|
7
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
8
|
+ This element was generated on Fri May 24 16:36:22 CST 2019.
|
|
9
|
+ -->
|
|
10
|
+ <constructor>
|
|
11
|
+ <idArg column="ID" javaType="java.lang.Integer" jdbcType="DECIMAL" />
|
|
12
|
+ <arg column="NAME" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
13
|
+ <arg column="NOTE" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
14
|
+ <arg column="STATUS" javaType="java.lang.Short" jdbcType="DECIMAL" />
|
|
15
|
+ <arg column="ICON" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
16
|
+ <arg column="CREATED_AT" javaType="java.util.Date" jdbcType="DATE" />
|
|
17
|
+ <arg column="UPDATED_AT" javaType="java.util.Date" jdbcType="DATE" />
|
|
18
|
+ <arg column="DELETED_AT" javaType="java.util.Date" jdbcType="DATE" />
|
|
19
|
+ <arg column="CLIENT_ID" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
20
|
+ <arg column="CLIENT_SECRET" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
21
|
+ <arg column="REDIRECT_URI" javaType="java.lang.String" jdbcType="VARCHAR" />
|
|
22
|
+ </constructor>
|
|
23
|
+ </resultMap>
|
|
24
|
+ <sql id="Base_Column_List">
|
|
25
|
+ <!--
|
|
26
|
+ WARNING - @mbg.generated
|
|
27
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
28
|
+ This element was generated on Fri May 24 16:36:22 CST 2019.
|
|
29
|
+ -->
|
|
30
|
+ ID, NAME, NOTE, STATUS, ICON, CREATED_AT, UPDATED_AT, DELETED_AT, CLIENT_ID, CLIENT_SECRET,
|
|
31
|
+ REDIRECT_URI
|
|
32
|
+ </sql>
|
|
33
|
+ <insert id="insertSelective" parameterType="com.kingkong.bljs.entity.App">
|
|
34
|
+ <!--
|
|
35
|
+ WARNING - @mbg.generated
|
|
36
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
37
|
+ This element was generated on Fri May 24 16:36:22 CST 2019.
|
|
38
|
+ -->
|
|
39
|
+ insert into K_USER.K_APP
|
|
40
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
41
|
+ <if test="id != null">
|
|
42
|
+ ID,
|
|
43
|
+ </if>
|
|
44
|
+ <if test="name != null">
|
|
45
|
+ NAME,
|
|
46
|
+ </if>
|
|
47
|
+ <if test="note != null">
|
|
48
|
+ NOTE,
|
|
49
|
+ </if>
|
|
50
|
+ <if test="status != null">
|
|
51
|
+ STATUS,
|
|
52
|
+ </if>
|
|
53
|
+ <if test="icon != null">
|
|
54
|
+ ICON,
|
|
55
|
+ </if>
|
|
56
|
+ <if test="createdAt != null">
|
|
57
|
+ CREATED_AT,
|
|
58
|
+ </if>
|
|
59
|
+ <if test="updatedAt != null">
|
|
60
|
+ UPDATED_AT,
|
|
61
|
+ </if>
|
|
62
|
+ <if test="deletedAt != null">
|
|
63
|
+ DELETED_AT,
|
|
64
|
+ </if>
|
|
65
|
+ <if test="clientId != null">
|
|
66
|
+ CLIENT_ID,
|
|
67
|
+ </if>
|
|
68
|
+ <if test="clientSecret != null">
|
|
69
|
+ CLIENT_SECRET,
|
|
70
|
+ </if>
|
|
71
|
+ <if test="redirectUri != null">
|
|
72
|
+ REDIRECT_URI,
|
|
73
|
+ </if>
|
|
74
|
+ </trim>
|
|
75
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
76
|
+ <if test="id != null">
|
|
77
|
+ #{id,jdbcType=DECIMAL},
|
|
78
|
+ </if>
|
|
79
|
+ <if test="name != null">
|
|
80
|
+ #{name,jdbcType=VARCHAR},
|
|
81
|
+ </if>
|
|
82
|
+ <if test="note != null">
|
|
83
|
+ #{note,jdbcType=VARCHAR},
|
|
84
|
+ </if>
|
|
85
|
+ <if test="status != null">
|
|
86
|
+ #{status,jdbcType=DECIMAL},
|
|
87
|
+ </if>
|
|
88
|
+ <if test="icon != null">
|
|
89
|
+ #{icon,jdbcType=VARCHAR},
|
|
90
|
+ </if>
|
|
91
|
+ <if test="createdAt != null">
|
|
92
|
+ #{createdAt,jdbcType=DATE},
|
|
93
|
+ </if>
|
|
94
|
+ <if test="updatedAt != null">
|
|
95
|
+ #{updatedAt,jdbcType=DATE},
|
|
96
|
+ </if>
|
|
97
|
+ <if test="deletedAt != null">
|
|
98
|
+ #{deletedAt,jdbcType=DATE},
|
|
99
|
+ </if>
|
|
100
|
+ <if test="clientId != null">
|
|
101
|
+ #{clientId,jdbcType=VARCHAR},
|
|
102
|
+ </if>
|
|
103
|
+ <if test="clientSecret != null">
|
|
104
|
+ #{clientSecret,jdbcType=VARCHAR},
|
|
105
|
+ </if>
|
|
106
|
+ <if test="redirectUri != null">
|
|
107
|
+ #{redirectUri,jdbcType=VARCHAR},
|
|
108
|
+ </if>
|
|
109
|
+ </trim>
|
|
110
|
+ </insert>
|
|
111
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.kingkong.bljs.entity.App">
|
|
112
|
+ <!--
|
|
113
|
+ WARNING - @mbg.generated
|
|
114
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
115
|
+ This element was generated on Fri May 24 16:36:22 CST 2019.
|
|
116
|
+ -->
|
|
117
|
+ update K_USER.K_APP
|
|
118
|
+ <set>
|
|
119
|
+ <if test="name != null">
|
|
120
|
+ NAME = #{name,jdbcType=VARCHAR},
|
|
121
|
+ </if>
|
|
122
|
+ <if test="note != null">
|
|
123
|
+ NOTE = #{note,jdbcType=VARCHAR},
|
|
124
|
+ </if>
|
|
125
|
+ <if test="status != null">
|
|
126
|
+ STATUS = #{status,jdbcType=DECIMAL},
|
|
127
|
+ </if>
|
|
128
|
+ <if test="icon != null">
|
|
129
|
+ ICON = #{icon,jdbcType=VARCHAR},
|
|
130
|
+ </if>
|
|
131
|
+ <if test="createdAt != null">
|
|
132
|
+ CREATED_AT = #{createdAt,jdbcType=DATE},
|
|
133
|
+ </if>
|
|
134
|
+ <if test="updatedAt != null">
|
|
135
|
+ UPDATED_AT = #{updatedAt,jdbcType=DATE},
|
|
136
|
+ </if>
|
|
137
|
+ <if test="deletedAt != null">
|
|
138
|
+ DELETED_AT = #{deletedAt,jdbcType=DATE},
|
|
139
|
+ </if>
|
|
140
|
+ <if test="clientId != null">
|
|
141
|
+ CLIENT_ID = #{clientId,jdbcType=VARCHAR},
|
|
142
|
+ </if>
|
|
143
|
+ <if test="clientSecret != null">
|
|
144
|
+ CLIENT_SECRET = #{clientSecret,jdbcType=VARCHAR},
|
|
145
|
+ </if>
|
|
146
|
+ <if test="redirectUri != null">
|
|
147
|
+ REDIRECT_URI = #{redirectUri,jdbcType=VARCHAR},
|
|
148
|
+ </if>
|
|
149
|
+ </set>
|
|
150
|
+ where ID = #{id,jdbcType=DECIMAL}
|
|
151
|
+ </update>
|
|
152
|
+</mapper>
|