|
|
@@ -35,6 +35,7 @@
|
|
35
|
35
|
<result column="rzrq" jdbcType="TIMESTAMP" property="rzrq" />
|
|
36
|
36
|
<result column="gwxz" property="gwxz" jdbcType="VARCHAR" />
|
|
37
|
37
|
<result column="qdzgzchzyzgsj" property="qdzgzchzyzgsj" jdbcType="TIMESTAMP" />
|
|
|
38
|
+ <result column="zy" property="zy" jdbcType="VARCHAR" />
|
|
38
|
39
|
</resultMap>
|
|
39
|
40
|
<sql id="Example_Where_Clause">
|
|
40
|
41
|
<where>
|
|
|
@@ -97,7 +98,7 @@
|
|
97
|
98
|
<sql id="Base_Column_List">
|
|
98
|
99
|
user_id, username, password, org_id, real_name, user_alias, sex, telphone, mobile, address, email,
|
|
99
|
100
|
qq_number, img_url, signature, create_time, create_user_id, update_time, update_user_id,
|
|
100
|
|
- status, del_flag, bmmc, zgzt, lzrq, mz, rylb, sfzhm, zzmm, zc, xl, zw, rzrq, gwxz, qdzgzchzyzgsj
|
|
|
101
|
+ status, del_flag, bmmc, zgzt, lzrq, mz, rylb, sfzhm, zzmm, zc, xl, zw, rzrq, gwxz, qdzgzchzyzgsj, zy
|
|
101
|
102
|
</sql>
|
|
102
|
103
|
<select id="selectByExample" parameterType="com.chinaitop.depot.system.model.UserInfoExample" resultMap="BaseResultMap">
|
|
103
|
104
|
select
|
|
|
@@ -153,7 +154,8 @@
|
|
153
|
154
|
email, qq_number, img_url,
|
|
154
|
155
|
signature, create_time, create_user_id,
|
|
155
|
156
|
update_time, update_user_id, status,
|
|
156
|
|
- del_flag, bmmc, zgzt, lzrq, mz, rylb, sfzhm, zzmm, zc, xl, zw, rzrq, gwxz, qdzgzchzyzgsj)
|
|
|
157
|
+ del_flag, bmmc, zgzt, lzrq, mz, rylb, sfzhm, zzmm, zc,
|
|
|
158
|
+ xl, zw, rzrq, gwxz, qdzgzchzyzgsj, zy)
|
|
157
|
159
|
values (#{userId,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
|
|
158
|
160
|
#{orgId,jdbcType=INTEGER}, #{realName,jdbcType=VARCHAR}, #{userAlias,jdbcType=VARCHAR}, #{sex,jdbcType=INTEGER},
|
|
159
|
161
|
#{telphone,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
|
|
|
@@ -163,7 +165,7 @@
|
|
163
|
165
|
#{delFlag,jdbcType=INTEGER}, #{bmmc,jdbcType=VARCHAR}, #{zgzt,jdbcType=VARCHAR}, #{lzrq,jdbcType=TIMESTAMP},
|
|
164
|
166
|
#{mz,jdbcType=INTEGER}, #{rylb,jdbcType=INTEGER}, #{sfzhm,jdbcType=VARCHAR}, #{zzmm,jdbcType=INTEGER},
|
|
165
|
167
|
#{zc,jdbcType=VARCHAR}, #{xl,jdbcType=INTEGER}, #{zw,jdbcType=VARCHAR}, #{rzrq,jdbcType=TIMESTAMP},
|
|
166
|
|
- #{gwxz,jdbcType=VARCHAR}, #{qdzgzchzyzgsj,jdbcType=TIMESTAMP})
|
|
|
168
|
+ #{gwxz,jdbcType=VARCHAR}, #{qdzgzchzyzgsj,jdbcType=TIMESTAMP}, #{zy,jdbcType=VARCHAR})
|
|
167
|
169
|
</insert>
|
|
168
|
170
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.system.model.UserInfo" useGeneratedKeys="true" keyProperty="userId">
|
|
169
|
171
|
insert into user_info
|
|
|
@@ -267,6 +269,9 @@
|
|
267
|
269
|
<if test="qdzgzchzyzgsj != null">
|
|
268
|
270
|
qdzgzchzyzgsj,
|
|
269
|
271
|
</if>
|
|
|
272
|
+ <if test="zy != null">
|
|
|
273
|
+ zy,
|
|
|
274
|
+ </if>
|
|
270
|
275
|
</trim>
|
|
271
|
276
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
272
|
277
|
<if test="userId != null">
|
|
|
@@ -368,6 +373,9 @@
|
|
368
|
373
|
<if test="qdzgzchzyzgsj != null">
|
|
369
|
374
|
#{qdzgzchzyzgsj,jdbcType=TIMESTAMP},
|
|
370
|
375
|
</if>
|
|
|
376
|
+ <if test="zy != null">
|
|
|
377
|
+ #{zy,jdbcType=VARCHAR},
|
|
|
378
|
+ </if>
|
|
371
|
379
|
</trim>
|
|
372
|
380
|
</insert>
|
|
373
|
381
|
<select id="countByExample" parameterType="com.chinaitop.depot.system.model.UserInfoExample" resultType="java.lang.Integer">
|
|
|
@@ -478,6 +486,9 @@
|
|
478
|
486
|
<if test="record.qdzgzchzyzgsj != null">
|
|
479
|
487
|
qdzgzchzyzgsj = #{record.qdzgzchzyzgsj,jdbcType=TIMESTAMP},
|
|
480
|
488
|
</if>
|
|
|
489
|
+ <if test="record.zy != null">
|
|
|
490
|
+ zy = #{record.zy,jdbcType=VARCHAR},
|
|
|
491
|
+ </if>
|
|
481
|
492
|
</set>
|
|
482
|
493
|
<if test="_parameter != null">
|
|
483
|
494
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -517,7 +528,8 @@
|
|
517
|
528
|
zw = #{record.zw,jdbcType=VARCHAR},
|
|
518
|
529
|
rzrq = #{record.rzrq,jdbcType=TIMESTAMP},
|
|
519
|
530
|
gwxz = #{record.gwxz,jdbcType=VARCHAR},
|
|
520
|
|
- qdzgzchzyzgsj = #{record.qdzgzchzyzgsj,jdbcType=TIMESTAMP}
|
|
|
531
|
+ qdzgzchzyzgsj = #{record.qdzgzchzyzgsj,jdbcType=TIMESTAMP},
|
|
|
532
|
+ zy = #{record.zy,jdbcType=VARCHAR}
|
|
521
|
533
|
<if test="_parameter != null">
|
|
522
|
534
|
<include refid="Update_By_Example_Where_Clause" />
|
|
523
|
535
|
</if>
|
|
|
@@ -621,6 +633,9 @@
|
|
621
|
633
|
<if test="qdzgzchzyzgsj != null">
|
|
622
|
634
|
qdzgzchzyzgsj = #{qdzgzchzyzgsj,jdbcType=TIMESTAMP},
|
|
623
|
635
|
</if>
|
|
|
636
|
+ <if test="zy != null">
|
|
|
637
|
+ zy = #{zy,jdbcType=VARCHAR},
|
|
|
638
|
+ </if>
|
|
624
|
639
|
</set>
|
|
625
|
640
|
where user_id = #{userId,jdbcType=INTEGER}
|
|
626
|
641
|
</update>
|
|
|
@@ -657,7 +672,8 @@
|
|
657
|
672
|
zw = #{zw,jdbcType=VARCHAR},
|
|
658
|
673
|
rzrq = #{rzrq,jdbcType=TIMESTAMP},
|
|
659
|
674
|
gwxz = #{gwxz,jdbcType=VARCHAR},
|
|
660
|
|
- qdzgzchzyzgsj = #{qdzgzchzyzgsj,jdbcType=TIMESTAMP}
|
|
|
675
|
+ qdzgzchzyzgsj = #{qdzgzchzyzgsj,jdbcType=TIMESTAMP},
|
|
|
676
|
+ zy = #{zy,jdbcType=VARCHAR}
|
|
661
|
677
|
where user_id = #{userId,jdbcType=INTEGER}
|
|
662
|
678
|
</update>
|
|
663
|
679
|
<resultMap id="UserRoleOrgMap" type="com.chinaitop.depot.system.model.UserInfo">
|
|
|
@@ -692,7 +708,7 @@
|
|
692
|
708
|
#{item}
|
|
693
|
709
|
</foreach>
|
|
694
|
710
|
</if>
|
|
695
|
|
- and length(ui.real_name) < 12
|
|
|
711
|
+ and length(ui.real_name) < 13
|
|
696
|
712
|
</where>
|
|
697
|
713
|
) A LEFT JOIN (
|
|
698
|
714
|
SELECT
|