<?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="jnpf.workflow.mapper.RewardApprovalMapper" >
    <insert id="saveUser">
        insert into ftb_reward_user (  F_ApprovalId,   F_UserId ,F_UserName  )
        values
        <foreach collection="userDtos" item="item" separator=",">
            ( #{id}, #{item.userId}, #{item.userName})
        </foreach>
    </insert>
    <delete id="deleteUserById">
        delete from ftb_reward_user
        where F_ApprovalId = #{id}
    </delete>
    <select id="getListById" resultType="jnpf.model.workflow.dto.UserSelfDto">
        select  F_UserId userId, F_UserName userName
        from  ftb_reward_user
        where F_ApprovalId = #{id}
    </select>
</mapper>