|
|
@@ -8,6 +8,7 @@
|
|
8
|
8
|
<result column="user_ip" property="userIp" jdbcType="VARCHAR" />
|
|
9
|
9
|
<result column="visit_page_time" property="visitPageTime" jdbcType="TIMESTAMP" />
|
|
10
|
10
|
<result column="org_id" property="orgId" jdbcType="INTEGER" />
|
|
|
11
|
+ <result column="org_name" property="orgName" jdbcType="VARCHAR" />
|
|
11
|
12
|
</resultMap>
|
|
12
|
13
|
<sql id="Example_Where_Clause" >
|
|
13
|
14
|
<where >
|
|
|
@@ -68,7 +69,7 @@
|
|
68
|
69
|
</where>
|
|
69
|
70
|
</sql>
|
|
70
|
71
|
<sql id="Base_Column_List" >
|
|
71
|
|
- id, view_name, real_name, user_ip, visit_page_time, org_id
|
|
|
72
|
+ id, view_name, real_name, user_ip, visit_page_time, org_id, org_name
|
|
72
|
73
|
</sql>
|
|
73
|
74
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.system.model.UserOperationPageLogExample" >
|
|
74
|
75
|
select
|
|
|
@@ -92,9 +93,9 @@
|
|
92
|
93
|
</delete>
|
|
93
|
94
|
<insert id="insert" parameterType="com.chinaitop.depot.system.model.UserOperationPageLog" >
|
|
94
|
95
|
insert into user_operation_page_log (id, view_name, real_name,
|
|
95
|
|
- user_ip, visit_page_time, org_id)
|
|
|
96
|
+ user_ip, visit_page_time, org_id, org_name)
|
|
96
|
97
|
values (#{id,jdbcType=VARCHAR}, #{viewName,jdbcType=VARCHAR}, #{realName,jdbcType=VARCHAR},
|
|
97
|
|
- #{userIp,jdbcType=VARCHAR}, #{visitPageTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER})
|
|
|
98
|
+ #{userIp,jdbcType=VARCHAR}, #{visitPageTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER}, #{orgName,jdbcType=VARCHAR})
|
|
98
|
99
|
</insert>
|
|
99
|
100
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.system.model.UserOperationPageLog" >
|
|
100
|
101
|
insert into user_operation_page_log
|
|
|
@@ -117,6 +118,9 @@
|
|
117
|
118
|
<if test="orgId != null" >
|
|
118
|
119
|
org_id,
|
|
119
|
120
|
</if>
|
|
|
121
|
+ <if test="orgName != null" >
|
|
|
122
|
+ org_name,
|
|
|
123
|
+ </if>
|
|
120
|
124
|
</trim>
|
|
121
|
125
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
122
|
126
|
<if test="id != null" >
|
|
|
@@ -137,6 +141,9 @@
|
|
137
|
141
|
<if test="orgId != null" >
|
|
138
|
142
|
#{orgId,jdbcType=INTEGER},
|
|
139
|
143
|
</if>
|
|
|
144
|
+ <if test="orgName != null" >
|
|
|
145
|
+ #{orgName,jdbcType=VARCHAR},
|
|
|
146
|
+ </if>
|
|
140
|
147
|
</trim>
|
|
141
|
148
|
</insert>
|
|
142
|
149
|
<select id="countByExample" parameterType="com.chinaitop.depot.system.model.UserOperationPageLogExample" resultType="java.lang.Integer" >
|
|
|
@@ -166,6 +173,9 @@
|
|
166
|
173
|
<if test="record.visitPageTime != null" >
|
|
167
|
174
|
org_id = #{record.orgId,jdbcType=INTEGER},
|
|
168
|
175
|
</if>
|
|
|
176
|
+ <if test="record.visitPageTime != null" >
|
|
|
177
|
+ org_name = #{record.orgName,jdbcType=VARCHAR},
|
|
|
178
|
+ </if>
|
|
169
|
179
|
</set>
|
|
170
|
180
|
<if test="_parameter != null" >
|
|
171
|
181
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -178,7 +188,8 @@
|
|
178
|
188
|
real_name = #{record.realName,jdbcType=VARCHAR},
|
|
179
|
189
|
user_ip = #{record.userIp,jdbcType=VARCHAR},
|
|
180
|
190
|
visit_page_time = #{record.visitPageTime,jdbcType=TIMESTAMP},
|
|
181
|
|
- org_id = #{record.orgId,jdbcType=INTEGER}
|
|
|
191
|
+ org_id = #{record.orgId,jdbcType=INTEGER},
|
|
|
192
|
+ org_name = #{record.orgName,jdbcType=VARCHAR}
|
|
182
|
193
|
<if test="_parameter != null" >
|
|
183
|
194
|
<include refid="Update_By_Example_Where_Clause" />
|
|
184
|
195
|
</if>
|