|
|
|
@ -187,13 +187,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="addUserBatchs">
|
|
|
|
|
insert into sys_user
|
|
|
|
|
(user_name,nick_name,
|
|
|
|
|
post,section,dept_id,
|
|
|
|
|
(user_name,nick_name,post,dept_id,
|
|
|
|
|
phonenumber,sex,status,
|
|
|
|
|
create_by,create_time,del_flag)
|
|
|
|
|
VALUES
|
|
|
|
|
<foreach collection="list" index="index" item="item" separator=",">
|
|
|
|
|
(#{item.userCode},#{item.userName},#{item.post},
|
|
|
|
|
#{item.section},#{item.deptId},
|
|
|
|
|
(#{item.userName},#{item.nickName},#{item.post},#{item.deptId},
|
|
|
|
|
#{item.phonenumber},#{item.sex},#{item.status},
|
|
|
|
|
#{item.createBy},#{item.createTime},'0')
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
@ -235,8 +235,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<foreach collection="list" item="item" separator=";">
|
|
|
|
|
update sys_user
|
|
|
|
|
set
|
|
|
|
|
<if test="item.section!=null">section = #{item.section},</if>
|
|
|
|
|
<if test="item.deptId!=null">section = #{item.deptId},</if>
|
|
|
|
|
<if test="item.post!=null">post = #{item.post},</if>
|
|
|
|
|
<if test="item.phonenumber!=null">phonenumber = #{item.phonenumber},</if>
|
|
|
|
|
sex = #{item.sex},
|
|
|
|
|
del_flag = #{item.delFlag},
|
|
|
|
|
update_by = #{item.updateBy},
|
|
|
|
|
update_time = #{updateTime}
|
|
|
|
|
where
|
|
|
|
|