<?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.attendance.mapper.AttendanceUserConfigMapper" >
<!--    新增用户配置-->
    <insert id="addUserConfig">
        insert into ftb_attence_user_config (F_Id,  F_User_Id , F_User_Config )
        values (#{userConfigVo.id},#{userId},#{userConfigVo.configJson})
    </insert>
<!--    更新用户配置-->
    <update id="updateUSerConfig">
        update ftb_attence_user_config
        set F_User_Config = #{configJson}
        where F_User_Id = #{userId}
    </update>
<!--    获取用户配置-->
    <select id="getUserConfig" resultType="jnpf.model.attendance.vo.attendance.UserConfigVo">
        SELECT F_User_Config configJson
        FROM ftb_attence_user_config
        WHERE F_User_Id = #{userId}
    </select>
</mapper>