<?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.tourism.common.flow.dao.FlowTaskExtMapper">
    <resultMap id="BaseResultMap" type="com.tourism.common.flow.model.FlowTaskExt">
        <result column="process_definition_id" jdbcType="VARCHAR" property="processDefinitionId"/>
        <result column="task_id" jdbcType="VARCHAR" property="taskId"/>
        <result column="operation_list_json" jdbcType="LONGVARCHAR" property="operationListJson"/>
        <result column="variable_list_json" jdbcType="LONGVARCHAR" property="variableListJson"/>
        <result column="assignee_list_json" jdbcType="LONGVARCHAR" property="assigneeListJson"/>
        <result column="group_type" jdbcType="VARCHAR" property="groupType"/>
        <result column="dept_post_list_json" jdbcType="VARCHAR" property="deptPostListJson"/>
        <result column="role_ids" jdbcType="VARCHAR" property="roleIds"/>
        <result column="dept_ids" jdbcType="VARCHAR" property="deptIds"/>
        <result column="candidate_usernames" jdbcType="VARCHAR" property="candidateUsernames"/>
        <result column="copy_list_json" jdbcType="VARCHAR" property="copyListJson"/>
        <result column="extra_data_json" jdbcType="VARCHAR" property="extraDataJson"/>
    </resultMap>

    <insert id="insertList">
        INSERT INTO zz_flow_task_ext VALUES
        <foreach collection="list" index="index" item="item" separator="," >
            (#{item.processDefinitionId},
            #{item.taskId},
            #{item.operationListJson},
            #{item.variableListJson},
            #{item.assigneeListJson},
            #{item.groupType},
            #{item.deptPostListJson},
            #{item.roleIds},
            #{item.deptIds},
            #{item.candidateUsernames},
            #{item.copyListJson},
            #{item.extraDataJson})
        </foreach>
    </insert>
</mapper>
