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

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.hotent.portal.model.PortalNewsTag">
        <id column="ID_" property="id" />
        <result column="NAME_" property="name" />
        <result column="ALIAS_" property="alias" />
        <result column="STYLE_" property="style" />
        <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" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        ID_, NAME_, ALIAS_, STYLE_, TENANT_ID_, CREATE_TIME_, CREATE_BY_, UPDATE_TIME_, UPDATE_BY_
    </sql>
    
     <select id="getByAlias"   parameterType="java.lang.String" resultMap="BaseResultMap">
		SELECT <include refid="Base_Column_List" /> FROM portal_news_tag 
		WHERE 
		ALIAS_=#{alias} 
	</select>

</mapper>
