<?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.rj.mapper.KnowledgeBaseMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.rj.entity.KnowledgeBase">
        <id column="id" property="id" />
        <result column="title" property="title" />
        <result column="category" property="category" />
        <result column="industry" property="industry" />
        <result column="content" property="content" />
        <result column="creator" property="creator" />
        <result column="create_time" property="createTime" />
        <result column="update_time" property="updateTime" />
        <result column="status" property="status" />
        <result column="view_count" property="viewCount" />
        <result column="like_count" property="likeCount" />
        <result column="tags" property="tags" />
        <result column="attachment_url" property="attachmentUrl" />
        <result column="sort_order" property="sortOrder" />
        <result column="is_top" property="isTop" />
        <result column="remark" property="remark" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, title, category, industry, content, creator, create_time, update_time, status, view_count, like_count, tags, attachment_url, sort_order, is_top, remark
    </sql>

</mapper>
