<?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.hotent.portal.persistence.dao.PortalNewsTreeDao">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.hotent.portal.model.PortalNewsTree">
        <id column="ID_" property="id" />
        <result column="NAME_" property="name" />
        <result column="PATH_" property="path" />
        <result column="PARENT_ID_" property="parentId" />
        <result column="RANK_" property="rank" />
        <result column="SN_" property="sn" />
        <result column="PARENT_NAME_" property="parentName" />
        <result column="TENANT_ID_" property="tenantId" />
        <result column="CREATE_TIME_" property="createTime" />
        <result column="CREATE_BY_" property="createBy" />
        <result column="UPDATE_TIME_" property="updateTime" />
        <result column="UPDATE_BY_" property="updateBy" />
        <result column="COL_HEIGHT_" property="colHeight" />
        <result column="COLUMN_ID_" property="columnId" />
        <result column="INTERVAL_TIME_" property="intervalTime" />
        <result column="MOBILE_ISSUE_" property="mobileIssue" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        ID_, NAME_, PATH_, PARENT_ID_, RANK_, SN_, PARENT_NAME_, TENANT_ID_, CREATE_TIME_, CREATE_BY_, UPDATE_TIME_, UPDATE_BY_,COL_HEIGHT_,COLUMN_ID_,INTERVAL_TIME_,MOBILE_ISSUE_
    </sql>

    <delete id="deleteByParentId" parameterType="java.lang.String">
        delete from portal_news_tree_ where rank_ = 3 and PARENT_ID_ = #{parentId}
    </delete>

</mapper>
