<?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.UserPhoneMapper">

    <!-- 查询常用手机列表 -->
    <select id="getUsualPhoneList" resultType="jnpf.model.attendance.vo.attendance.UsualPhonePageVo">
        select F_Id id, F_UserId userId, F_PhoneName phoneName, F_PhoneCode phoneCode, F_CreatorTime creatorTime
        from ftb_attendance_user_phone
        where F_DeleteMark = 0
        <if test="null != list and list.size > 0">
            and F_UserId in
            <foreach collection="list" index="index" item="item" open="(" separator="," close=")">
                #{item}
            </foreach>
        </if>
        order by F_CreatorTime desc
    </select>
</mapper>