<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.gkhy.exam.institutionalaccess.mapper.ThStudentMapper">
|
|
<update id="updateByIdcard" parameterType="java.util.List" >
|
<foreach collection="list" item="item" index="index" separator=";">
|
UPDATE th_student
|
<set>
|
<if test="item.name != null and item.name != ''" >
|
name = #{item.name},
|
</if>
|
<if test="item.idcard != null and item.idcard != ''" >
|
idcard = #{item.idcard},
|
</if>
|
<if test="item.sex != null" >
|
sex = #{item.sex},
|
</if>
|
<if test="item.phone != null and item.phone != ''" >
|
phone = #{item.phone},
|
</if>
|
<if test="item.authPhoto != null and item.authPhoto != ''" >
|
auth_photo = #{item.authPhoto},
|
</if>
|
<if test="item.trainOrgName != null and item.trainOrgName != ''" >
|
train_org_name = #{item.trainOrgName},
|
</if>
|
<if test="item.institutionId != null" >
|
institution_id = #{item.institutionId},
|
</if>
|
<if test="item.institutionName != null and item.institutionName != ''" >
|
institution_name = #{item.phone},
|
</if>
|
<if test="item.industry != null and item.industry != ''" >
|
industry = #{item.industry},
|
</if>
|
<if test="item.occupation != null and item.occupation != ''" >
|
occupation = #{item.occupation},
|
</if>
|
<if test="item.updateBy != null and item.updateBy != ''" >
|
update_by = #{item.updateBy},
|
</if>
|
<if test="item.updateTime != null" >
|
update_time = #{item.updateTime}
|
</if>
|
</set>
|
where idcard = #{item.idcard}
|
</foreach>
|
</update>
|
|
|
</mapper>
|