|
|
@@ -11,6 +11,7 @@
|
|
11
|
11
|
<result column="session_id" property="sessionId" jdbcType="VARCHAR" />
|
|
12
|
12
|
<result column="login_type" property="loginType" jdbcType="VARCHAR" />
|
|
13
|
13
|
<result column="org_id" property="orgId" jdbcType="INTEGER" />
|
|
|
14
|
+ <result column="org_name" property="orgName" jdbcType="VARCHAR" />
|
|
14
|
15
|
</resultMap>
|
|
15
|
16
|
<sql id="Example_Where_Clause" >
|
|
16
|
17
|
<where >
|
|
|
@@ -71,7 +72,7 @@
|
|
71
|
72
|
</where>
|
|
72
|
73
|
</sql>
|
|
73
|
74
|
<sql id="Base_Column_List" >
|
|
74
|
|
- id, user_name, real_name, user_ip, in_login_time, out_login_time, session_id, login_type, org_id
|
|
|
75
|
+ id, user_name, real_name, user_ip, in_login_time, out_login_time, session_id, login_type, org_id, org_name
|
|
75
|
76
|
</sql>
|
|
76
|
77
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.system.model.UserLoginLogExample" >
|
|
77
|
78
|
select
|
|
|
@@ -96,10 +97,10 @@
|
|
96
|
97
|
<insert id="insert" parameterType="com.chinaitop.depot.system.model.UserLoginLog" >
|
|
97
|
98
|
insert into user_login_log (id, user_name, real_name,
|
|
98
|
99
|
user_ip, in_login_time, out_login_time,
|
|
99
|
|
- session_id, login_type,org_id)
|
|
|
100
|
+ session_id, login_type,org_id, org_name)
|
|
100
|
101
|
values (#{id,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{realName,jdbcType=VARCHAR},
|
|
101
|
102
|
#{userIp,jdbcType=VARCHAR}, #{inLoginTime,jdbcType=TIMESTAMP}, #{outLoginTime,jdbcType=TIMESTAMP},
|
|
102
|
|
- #{sessionId,jdbcType=VARCHAR}, #{loginType,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER})
|
|
|
103
|
+ #{sessionId,jdbcType=VARCHAR}, #{loginType,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{orgName,jdbcType=VARCHAR})
|
|
103
|
104
|
</insert>
|
|
104
|
105
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.system.model.UserLoginLog" >
|
|
105
|
106
|
insert into user_login_log
|
|
|
@@ -131,6 +132,9 @@
|
|
131
|
132
|
<if test="orgId != null" >
|
|
132
|
133
|
org_id,
|
|
133
|
134
|
</if>
|
|
|
135
|
+ <if test="orgName != null" >
|
|
|
136
|
+ org_name,
|
|
|
137
|
+ </if>
|
|
134
|
138
|
</trim>
|
|
135
|
139
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
136
|
140
|
<if test="id != null" >
|
|
|
@@ -160,6 +164,9 @@
|
|
160
|
164
|
<if test="orgId != null" >
|
|
161
|
165
|
#{orgId,jdbcType=INTEGER},
|
|
162
|
166
|
</if>
|
|
|
167
|
+ <if test="orgName != null" >
|
|
|
168
|
+ #{orgName,jdbcType=VARCHAR},
|
|
|
169
|
+ </if>
|
|
163
|
170
|
</trim>
|
|
164
|
171
|
</insert>
|
|
165
|
172
|
<select id="countByExample" parameterType="com.chinaitop.depot.system.model.UserLoginLogExample" resultType="java.lang.Integer" >
|
|
|
@@ -196,7 +203,10 @@
|
|
196
|
203
|
login_type = #{record.loginType,jdbcType=VARCHAR},
|
|
197
|
204
|
</if>
|
|
198
|
205
|
<if test="record.orgId != null" >
|
|
199
|
|
- org_id = #{record.orgId,jdbcType=VARCHAR},
|
|
|
206
|
+ org_id = #{record.orgId,jdbcType=INTEGER},
|
|
|
207
|
+ </if>
|
|
|
208
|
+ <if test="record.orgName != null" >
|
|
|
209
|
+ org_name = #{record.orgName,jdbcType=VARCHAR},
|
|
200
|
210
|
</if>
|
|
201
|
211
|
</set>
|
|
202
|
212
|
<if test="_parameter != null" >
|
|
|
@@ -213,7 +223,8 @@
|
|
213
|
223
|
out_login_time = #{record.outLoginTime,jdbcType=TIMESTAMP},
|
|
214
|
224
|
session_id = #{record.sessionId,jdbcType=VARCHAR},
|
|
215
|
225
|
login_type = #{record.loginType,jdbcType=VARCHAR},
|
|
216
|
|
- org_id = #{record.orgId,jdbcType=INTEGER}
|
|
|
226
|
+ org_id = #{record.orgId,jdbcType=INTEGER},
|
|
|
227
|
+ org_name = #{record.orgName,jdbcType=VARCHAR}
|
|
217
|
228
|
<if test="_parameter != null" >
|
|
218
|
229
|
<include refid="Update_By_Example_Where_Clause" />
|
|
219
|
230
|
</if>
|