<?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.notice.mapper.FtbNoticeUserGroupsMapper">

    <resultMap id="BaseResultMap" type="jnpf.model.notice.domain.FtbNoticeUserGroups">
            <id property="id" column="F_Id" jdbcType="VARCHAR"/>
            <result property="groupName" column="F_GroupName" jdbcType="VARCHAR"/>
            <result property="creatorUserId" column="F_CreatorUserId" jdbcType="VARCHAR"/>
            <result property="creatorTime" column="F_CreatorTime" jdbcType="TIMESTAMP"/>
            <result property="lastModifyUserId" column="F_LastModifyUserId" jdbcType="VARCHAR"/>
            <result property="lastModifyTime" column="F_LastModifyTime" jdbcType="TIMESTAMP"/>
            <result property="tenantId" column="F_TenantId" jdbcType="VARCHAR"/>
    </resultMap>

    <sql id="Base_Column_List">
        F_Id,F_GroupName,
        F_EnabledMark,F_CreatorUserId,F_CreatorTime,
        F_LastModifyUserId,F_LastModifyTime,F_DeleteUserId,
        F_DeleteTime,F_TenantId
    </sql>
    <!--分页查询用户组信息-->
    <select id="pagingQuery" resultType="jnpf.model.notice.dto.FtbNoticeUserGroupsDto">
        select  F_Id as id, F_GroupName as groupName from  ftb_notice_user_groups where F_EnabledMark = 1 and F_CreatorUserId= #{loginUserId} order by F_CreatorTime ASC
    </select>
</mapper>
