<?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.jeeplus.test.jobPosion.mapper.PositionCategoryMapper">
  <resultMap id="BaseResultMap" type="com.jeeplus.test.jobPosion.domain.PositionCategory">
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="create_by" jdbcType="VARCHAR" property="createBy" />
    <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
    <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
    <result column="update_date" jdbcType="TIMESTAMP" property="updateDate" />
    <result column="remarks" jdbcType="VARCHAR" property="remarks" />
    <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
    <result column="name" jdbcType="VARCHAR" property="name" />
  </resultMap>
  <sql id="Base_Column_List">
    id,
    create_by,
    create_date,
    update_by,
    update_date,
    remarks,
    del_flag,
    `name`
  </sql>

  <update id="updateSortByIdList">
    <foreach collection="list" separator=";" item="item">
      update position_category
      set sort = #{item.sort}
      where id = #{item.id}
    </foreach>
  </update>

</mapper>