<?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.zm.order.tool.server.cy.WmOrderCommentStarsDao">

    <resultMap id="OrderMap" type="com.zm.order.tool.server.model.WmOrderCommentStars">
        <id column="id" jdbcType="INTEGER" property="id"/>
        <result column="comment_no" jdbcType="VARCHAR" property="commentNo"/>
        <result column="comment_project_type" jdbcType="TINYINT" property="commentProjectType"/>
        <result column="comment_star" jdbcType="TINYINT" property="commentStar"/>
        <result column="created_at" jdbcType="TIMESTAMP" property="createdAt"/>
        <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt"/>
    </resultMap>

    <sql id="tb">
        wm_order_comment_stars
    </sql>

    <sql id="cols_all">
        id,
        <include refid="cols_exclude_id"/>
    </sql>

    <sql id="cols_exclude_id">
		comment_no,
		comment_project_type,
		comment_star,
		created_at,
		updated_at
    </sql>

    <select id="selectList" parameterType="map" resultMap="OrderMap">
        select
        <include refid="cols_all"/>
        from
        <include refid="tb"/>
        where comment_no = #{commentNo}
    </select>

</mapper>