中间表教职工表状态是非在职或返聘的职工禁止登录学工系统
This commit is contained in:
@@ -291,19 +291,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
nick_name,
|
||||
sex,
|
||||
password,
|
||||
status,
|
||||
create_time
|
||||
)
|
||||
values
|
||||
<foreach collection="userList" item="item" index="i" separator=",">
|
||||
(
|
||||
#{item.userName},
|
||||
<if test="item.deptId != null">#{item.deptId}</if>
|
||||
<if test="item.deptId == null">null</if>,
|
||||
#{item.nickName},
|
||||
<if test="item.sex != null">#{item.sex}</if>
|
||||
<if test="item.sex == null">"2"</if>,
|
||||
#{item.password},
|
||||
sysdate())
|
||||
#{item.userName},
|
||||
<if test="item.deptId != null">#{item.deptId}</if>
|
||||
<if test="item.deptId == null">null</if>,
|
||||
#{item.nickName},
|
||||
<if test="item.sex != null">#{item.sex}</if>
|
||||
<if test="item.sex == null">'2'</if>,
|
||||
#{item.password},
|
||||
<if test="item.status != null">#{item.status}</if>
|
||||
<if test="item.status == null">null</if>,
|
||||
sysdate()
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
<update id="updateUserListInfo" parameterType="java.util.List">
|
||||
@@ -335,6 +339,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
when user_name=#{i.userName} then sysdate()
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="status=case" suffix="end,">
|
||||
<foreach collection="studentList" item="i" index="index">
|
||||
when user_name=#{i.userName} then #{i.status}
|
||||
</foreach>
|
||||
</trim>
|
||||
</trim>
|
||||
where user_name in
|
||||
<foreach collection="studentList" separator="," item="i" index="index" open="(" close=")">
|
||||
|
||||
Reference in New Issue
Block a user