<?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.lightinit.hsdataportal.mapper.ResourceApiMapper">
  <resultMap id="BaseResultMap" type="com.lightinit.hsdataportal.entity.ResourceApi">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="provider" jdbcType="BIGINT" property="provider" />
    <result column="service_type" jdbcType="VARCHAR" property="serviceType" />
    <result column="service_tag" jdbcType="VARCHAR" property="serviceTag" />
    <result column="component" jdbcType="VARCHAR" property="component" />
    <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
    <result column="created_by" jdbcType="BIGINT" property="createdBy" />
    <result column="deleted_at" jdbcType="TIMESTAMP" property="deletedAt" />
    <result column="deleted_by" jdbcType="BIGINT" property="deletedBy" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.lightinit.hsdataportal.entity.ResourceApi">
    <result column="return_code" jdbcType="LONGVARCHAR" property="returnCode" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    id, provider, service_type, service_tag, component, created_at, created_by, deleted_at, 
    deleted_by
  </sql>
  <sql id="Blob_Column_List">
    return_code
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="com.lightinit.hsdataportal.entity.ResourceApiExample" resultMap="ResultMapWithBLOBs">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from resource_api
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExample" parameterType="com.lightinit.hsdataportal.entity.ResourceApiExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from resource_api
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from resource_api
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    delete from resource_api
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="com.lightinit.hsdataportal.entity.ResourceApiExample">
    delete from resource_api
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.lightinit.hsdataportal.entity.ResourceApi">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into resource_api (provider, service_type, service_tag, 
      component, created_at, created_by, 
      deleted_at, deleted_by, return_code
      )
    values (#{provider,jdbcType=BIGINT}, #{serviceType,jdbcType=VARCHAR}, #{serviceTag,jdbcType=VARCHAR}, 
      #{component,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, 
      #{deletedAt,jdbcType=TIMESTAMP}, #{deletedBy,jdbcType=BIGINT}, #{returnCode,jdbcType=LONGVARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.lightinit.hsdataportal.entity.ResourceApi">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into resource_api
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="provider != null">
        provider,
      </if>
      <if test="serviceType != null">
        service_type,
      </if>
      <if test="serviceTag != null">
        service_tag,
      </if>
      <if test="component != null">
        component,
      </if>
      <if test="createdAt != null">
        created_at,
      </if>
      <if test="createdBy != null">
        created_by,
      </if>
      <if test="deletedAt != null">
        deleted_at,
      </if>
      <if test="deletedBy != null">
        deleted_by,
      </if>
      <if test="returnCode != null">
        return_code,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="provider != null">
        #{provider,jdbcType=BIGINT},
      </if>
      <if test="serviceType != null">
        #{serviceType,jdbcType=VARCHAR},
      </if>
      <if test="serviceTag != null">
        #{serviceTag,jdbcType=VARCHAR},
      </if>
      <if test="component != null">
        #{component,jdbcType=VARCHAR},
      </if>
      <if test="createdAt != null">
        #{createdAt,jdbcType=TIMESTAMP},
      </if>
      <if test="createdBy != null">
        #{createdBy,jdbcType=BIGINT},
      </if>
      <if test="deletedAt != null">
        #{deletedAt,jdbcType=TIMESTAMP},
      </if>
      <if test="deletedBy != null">
        #{deletedBy,jdbcType=BIGINT},
      </if>
      <if test="returnCode != null">
        #{returnCode,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.lightinit.hsdataportal.entity.ResourceApiExample" resultType="java.lang.Long">
    select count(*) from resource_api
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update resource_api
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.provider != null">
        provider = #{record.provider,jdbcType=BIGINT},
      </if>
      <if test="record.serviceType != null">
        service_type = #{record.serviceType,jdbcType=VARCHAR},
      </if>
      <if test="record.serviceTag != null">
        service_tag = #{record.serviceTag,jdbcType=VARCHAR},
      </if>
      <if test="record.component != null">
        component = #{record.component,jdbcType=VARCHAR},
      </if>
      <if test="record.createdAt != null">
        created_at = #{record.createdAt,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createdBy != null">
        created_by = #{record.createdBy,jdbcType=BIGINT},
      </if>
      <if test="record.deletedAt != null">
        deleted_at = #{record.deletedAt,jdbcType=TIMESTAMP},
      </if>
      <if test="record.deletedBy != null">
        deleted_by = #{record.deletedBy,jdbcType=BIGINT},
      </if>
      <if test="record.returnCode != null">
        return_code = #{record.returnCode,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
    update resource_api
    set id = #{record.id,jdbcType=BIGINT},
      provider = #{record.provider,jdbcType=BIGINT},
      service_type = #{record.serviceType,jdbcType=VARCHAR},
      service_tag = #{record.serviceTag,jdbcType=VARCHAR},
      component = #{record.component,jdbcType=VARCHAR},
      created_at = #{record.createdAt,jdbcType=TIMESTAMP},
      created_by = #{record.createdBy,jdbcType=BIGINT},
      deleted_at = #{record.deletedAt,jdbcType=TIMESTAMP},
      deleted_by = #{record.deletedBy,jdbcType=BIGINT},
      return_code = #{record.returnCode,jdbcType=LONGVARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update resource_api
    set id = #{record.id,jdbcType=BIGINT},
      provider = #{record.provider,jdbcType=BIGINT},
      service_type = #{record.serviceType,jdbcType=VARCHAR},
      service_tag = #{record.serviceTag,jdbcType=VARCHAR},
      component = #{record.component,jdbcType=VARCHAR},
      created_at = #{record.createdAt,jdbcType=TIMESTAMP},
      created_by = #{record.createdBy,jdbcType=BIGINT},
      deleted_at = #{record.deletedAt,jdbcType=TIMESTAMP},
      deleted_by = #{record.deletedBy,jdbcType=BIGINT}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.lightinit.hsdataportal.entity.ResourceApi">
    update resource_api
    <set>
      <if test="provider != null">
        provider = #{provider,jdbcType=BIGINT},
      </if>
      <if test="serviceType != null">
        service_type = #{serviceType,jdbcType=VARCHAR},
      </if>
      <if test="serviceTag != null">
        service_tag = #{serviceTag,jdbcType=VARCHAR},
      </if>
      <if test="component != null">
        component = #{component,jdbcType=VARCHAR},
      </if>
      <if test="createdAt != null">
        created_at = #{createdAt,jdbcType=TIMESTAMP},
      </if>
      <if test="createdBy != null">
        created_by = #{createdBy,jdbcType=BIGINT},
      </if>
      <if test="deletedAt != null">
        deleted_at = #{deletedAt,jdbcType=TIMESTAMP},
      </if>
      <if test="deletedBy != null">
        deleted_by = #{deletedBy,jdbcType=BIGINT},
      </if>
      <if test="returnCode != null">
        return_code = #{returnCode,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.lightinit.hsdataportal.entity.ResourceApi">
    update resource_api
    set provider = #{provider,jdbcType=BIGINT},
      service_type = #{serviceType,jdbcType=VARCHAR},
      service_tag = #{serviceTag,jdbcType=VARCHAR},
      component = #{component,jdbcType=VARCHAR},
      created_at = #{createdAt,jdbcType=TIMESTAMP},
      created_by = #{createdBy,jdbcType=BIGINT},
      deleted_at = #{deletedAt,jdbcType=TIMESTAMP},
      deleted_by = #{deletedBy,jdbcType=BIGINT},
      return_code = #{returnCode,jdbcType=LONGVARCHAR}
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.lightinit.hsdataportal.entity.ResourceApi">
    update resource_api
    set provider = #{provider,jdbcType=BIGINT},
      service_type = #{serviceType,jdbcType=VARCHAR},
      service_tag = #{serviceTag,jdbcType=VARCHAR},
      component = #{component,jdbcType=VARCHAR},
      created_at = #{createdAt,jdbcType=TIMESTAMP},
      created_by = #{createdBy,jdbcType=BIGINT},
      deleted_at = #{deletedAt,jdbcType=TIMESTAMP},
      deleted_by = #{deletedBy,jdbcType=BIGINT}
    where id = #{id,jdbcType=BIGINT}
  </update>

  <!-- open -->
  <select id="queryOpenList" parameterType="com.lightinit.hsdataportal.model.APIOpenSearchModel" resultType="com.lightinit.hsdataportal.model.APIOpenListModel">
    <if test="resourceName != null and resourceName.length() > 0">
      <bind name="resourceName" value="'%' + _parameter.resourceName + '%'" />
    </if>
    <if test="catelogThemeCode != null and catelogThemeCode.length() > 0">
      <bind name="catelogThemeCode" value="_parameter.catelogThemeCode + '%'" />
    </if>
    <if test="sectorCode != null and sectorCode.length() > 0">
      <bind name="sectorCode" value="_parameter.sectorCode + '%'" />
    </if>
    <if test="resourceIdentity != null and resourceIdentity.length() > 0">
      <bind name="resourceIdentity" value="'%'+_parameter.resourceIdentity + '%'" />
    </if>
    <if test="serviceTag != null and serviceTag.length() > 0">
      <bind name="serviceTag" value="'%'+_parameter.serviceTag + '%'" />
    </if>
    SELECT r.id,rvt.view_times,r.resource_name,ri.`publish_state`,r.open_type,ps.id settingId,ri.id publishInfoId,ps.charge_method,s.`sector_code`,
    rc.catelog_code,ri.resource_img
    FROM resource r
    JOIN resource_api ra
    ON r.id = ra.id
    JOIN publish_info ri
    ON ri.resource_id = r.id
    join publish_setting ps
    on ps.publish_info_id = ri.id
    LEFT JOIN resource_view_times rvt
    ON rvt.id = r.id
    left join sector s
    on s.id = ra.provider
    left join resource_catelog rc
    on rc.id = r.catelog_theme
    left join resource_sort rs
    on r.id = rs.resource_id and rs.sort_category = #{sortCategory}
    <where>
      ri.publish_state = #{publishState}
      AND r.open_type !=""
      AND r.open_type is not null
      AND r.open_type != #{NotOpenType}
      AND ps.deleted_at is NULL
      <if test="chargeMethod != null and chargeMethod.length()>0">
        AND ps.charge_method = #{chargeMethod}
      </if>
      <if test="catelogThemeCode != null and catelogThemeCode.length() > 0">
       AND rc.catelog_code LIKE #{catelogThemeCode}
      </if>
      <if test="sectorCode != null and sectorCode.length() > 0">
        AND s.`sector_code` LIKE #{sectorCode}
      </if>
      <if test="openType != null and openType.length() > 0">
        AND r.open_type = #{openType}
      </if>
      <if test="resourceName != null and resourceName.length() > 0">
        AND r.resource_name like #{resourceName}
      </if>
      <if test="apiServiceType != null and apiServiceType.length() > 0">
        AND ra.service_type = #{apiServiceType}
      </if>
      <if test="catelogTheme != null">
        AND r.catelog_theme = #{catelogTheme}
      </if>
      <if test="catelogSector != null">
        AND r.catelog_sector = #{catelogSector}
      </if>
      <if test="resourceIdentity != null and resourceIdentity.length() > 0">
        AND r.resource_identity like #{resourceIdentity}
      </if>
      <if test="serviceTag != null and serviceTag.length() > 0">
        AND ra.service_tag like #{serviceTag}
      </if>
    </where>

    <if test="sortType !=null and sortType==0">
      ORDER BY rs.sort_value DESC
    </if>
    <if test="sortType !=null and sortType==1">
      ORDER BY ri.audited_at DESC
    </if>
    <if test="viewTimes !=null and viewTimes ==2">  /*浏览次数还是关注次数*/
      ORDER BY rvt.view_times DESC
    </if>
    <if test="page != null" >
      LIMIT #{page.beginIndex},#{page.pageSize}
    </if>
  </select>

  <select id="queryOpenCount" parameterType="com.lightinit.hsdataportal.model.APIOpenSearchModel" resultType="java.lang.Long">
    <if test="resourceName != null and resourceName.length() > 0">
      <bind name="resourceName" value="'%' + _parameter.resourceName + '%'" />
    </if>
    <if test="catelogThemeCode != null and catelogThemeCode.length() > 0">
      <bind name="catelogThemeCode" value="_parameter.catelogThemeCode + '%'" />
    </if>
    <if test="sectorCode != null and sectorCode.length() > 0">
      <bind name="sectorCode" value="_parameter.sectorCode + '%'" />
    </if>
    SELECT count(*)
    FROM resource r
    JOIN resource_api ra
    ON r.id = ra.id
    JOIN publish_info ri
    ON ri.resource_id = r.id
    join publish_setting ps
    on ps.publish_info_id = ri.id
    LEFT JOIN resource_view_times rvt
    ON rvt.id = r.id
    left join sector s
    on s.id = ra.provider
    left join resource_catelog rc
    on rc.id = r.catelog_theme
    <where>
      ri.publish_state = #{publishState}
      AND r.open_type !=""
      AND r.open_type is not null
      AND r.open_type != #{NotOpenType}
      AND ps.deleted_at is NULL
      <if test="chargeMethod != null and chargeMethod.length()>0">
        AND ps.charge_method = #{chargeMethod}
      </if>
      <if test="catelogThemeCode != null and catelogThemeCode.length() > 0">
        AND rc.catelog_code LIKE #{catelogThemeCode}
      </if>
      <if test="sectorCode != null and sectorCode.length() > 0">
        AND s.`sector_code` LIKE #{sectorCode}
      </if>
      <if test="openType != null and openType.length() > 0">
        AND r.open_type = #{openType}
      </if>
      <if test="resourceName != null and resourceName.length() > 0">
        AND r.resource_name like #{resourceName}
      </if>
      <if test="apiServiceType != null and apiServiceType.length() > 0">
        AND ra.service_type = #{apiServiceType}
      </if>
    </where>
  </select>

  <!-- share -->
  <select id="queryShareList" parameterType="com.lightinit.hsdataportal.model.APIShareSearchModel" resultType="com.lightinit.hsdataportal.model.APIShareListModel">
    <if test="resourceName != null and resourceName.length() > 0">
      <bind name="resourceName" value="'%' + _parameter.resourceName + '%'" />
    </if>
    <if test="catelogThemeCode != null and catelogThemeCode.length() > 0">
      <bind name="catelogThemeCode" value="_parameter.catelogThemeCode + '%'" />
    </if>
    <if test="sectorCode != null and sectorCode.length() > 0">
      <bind name="sectorCode" value="_parameter.sectorCode + '%'" />
    </if>
    SELECT r.id,r.share_type,rvt.view_times,r.resource_name,ri.`publish_state`,ps.id settingId,ri.id publishInfoId,ps.charge_method,s.`sector_code`,
    rc.catelog_code,ri.resource_img
    FROM resource r
    JOIN resource_api ra
    ON r.id = ra.id
    JOIN publish_info ri
    ON ri.resource_id = r.id
    join publish_setting ps
    on ps.publish_info_id = ri.id
    LEFT JOIN resource_view_times rvt
    ON rvt.id = r.id
    left join sector s
    on s.id = ra.provider
    left join resource_catelog rc
    on rc.id = r.catelog_theme
    left join resource_sort rs
    on r.id = rs.resource_id and rs.sort_category = #{sortCategory}
    <where>
      ri.publish_state = #{publishState}
      AND r.share_type !=""
      AND r.share_type is not null
      AND r.share_type != #{NotShareType}
      AND ps.deleted_at is NULL
      <if test="chargeMethod != null and chargeMethod.length()>0">
        AND ps.charge_method = #{chargeMethod}
      </if>
      <if test="catelogThemeCode != null and catelogThemeCode.length() > 0">
        AND rc.catelog_code LIKE #{catelogThemeCode}
      </if>
      <if test="sectorCode != null and sectorCode.length() > 0">
        AND s.`sector_code` LIKE #{sectorCode}
      </if>
      <if test="shareType != null and shareType.length() > 0">
        AND r.share_type = #{shareType}
      </if>
      <if test="resourceName != null and resourceName.length() > 0">
        AND r.resource_name like #{resourceName}
      </if>
    </where>
    <if test="sortType !=null and sortType==0">
      ORDER BY rs.sort_value DESC
    </if>
    <if test="sortType !=null and sortType==1">
      ORDER BY ri.audited_at DESC
    </if>
    <if test="viewTimes !=null and viewTimes ==2">  /*浏览次数还是关注次数*/
      ORDER BY rvt.view_times DESC
    </if>
    <if test="page != null" >
      LIMIT #{page.beginIndex},#{page.pageSize}
    </if>
  </select>

  <select id="queryShareCount" parameterType="com.lightinit.hsdataportal.model.APIShareSearchModel" resultType="java.lang.Long">
    <if test="resourceName != null and resourceName.length() > 0">
      <bind name="resourceName" value="'%' + _parameter.resourceName + '%'" />
    </if>
    <if test="catelogThemeCode != null and catelogThemeCode.length() > 0">
      <bind name="catelogThemeCode" value="_parameter.catelogThemeCode + '%'" />
    </if>
    <if test="sectorCode != null and sectorCode.length() > 0">
      <bind name="sectorCode" value="_parameter.sectorCode + '%'" />
    </if>
    SELECT count(*)
    FROM resource r
    JOIN resource_api ra
    ON r.id = ra.id
    JOIN publish_info ri
    ON ri.resource_id = r.id
    join publish_setting ps
    on ps.publish_info_id = ri.id
    LEFT JOIN resource_view_times rvt
    ON rvt.id = r.id
    left join sector s
    on s.id = ra.provider
    left join resource_catelog rc
    on rc.id = r.catelog_theme
    <where>
      ri.publish_state = #{publishState}
      AND r.share_type !=""
      AND r.share_type is not null
      AND r.share_type != #{NotShareType}
      AND ps.deleted_at is NULL
      <if test="chargeMethod != null and chargeMethod.length()>0">
        AND ps.charge_method = #{chargeMethod}
      </if>
      <if test="catelogThemeCode != null and catelogThemeCode.length() > 0">
        AND rc.catelog_code LIKE #{catelogThemeCode}
      </if>
      <if test="sectorCode != null and sectorCode.length() > 0">
        AND s.`sector_code` LIKE #{sectorCode}
      </if>
      <if test="shareType != null and shareType.length() > 0">
        AND r.share_type = #{shareType}
      </if>
      <if test="resourceName != null and resourceName.length() > 0">
        AND r.resource_name like #{resourceName}
      </if>
    </where>
  </select>

  <select id="selectSearchChildList" resultType="com.lightinit.hsdataportal.model.TagsSearchChildListModel">
    <if test="catelogCode != null and catelogCode.length() > 0">
      <bind name="catelogCode" value="_parameter.catelogCode + '%'" />
    </if>
    SELECT r.id,r.resource_name,ps.id settingId
    FROM resource r
    JOIN resource_api ra
    ON r.id = ra.id
    JOIN publish_info ri
    ON ri.resource_id = r.id
    join publish_setting ps
    on ps.publish_info_id = ri.id
    left join resource_catelog rc
    on rc.id = r.catelog_theme
    where
     ri.publish_state = '已发布'
    <if test="catelogCode != null and catelogCode.length() > 0">
      AND rc.catelog_code LIKE #{catelogCode}
    </if>
   	  AND r.open_type !=""
      AND r.open_type is not null
      AND r.open_type != '不予共享'
  </select>
</mapper>