<?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="org.dromara.knowledge.mapper.KnowledgeJobMapper">

    <resultMap type="org.dromara.knowledge.domain.KnowledgeJob" id="KnowledgeJobResult">
        <result property="id" column="id"/>
        <result property="knowledgeId" column="knowledge_id"/>
        <result property="jobType" column="job_type"/>
        <result property="jobName" column="job_name"/>
        <result property="jobParams" column="job_params"/>
        <result property="status" column="status"/>
        <result property="progress" column="progress"/>
        <result property="startTime" column="start_time"/>
        <result property="endTime" column="end_time"/>
        <result property="errorMsg" column="error_msg"/>
        <result property="createBy" column="create_by"/>
        <result property="createTime" column="create_time"/>
        <result property="updateBy" column="update_by"/>
        <result property="updateTime" column="update_time"/>
        <result property="remark" column="remark"/>
    </resultMap>

    <sql id="selectKnowledgeJobVo">
        select id,
               knowledge_id,
               job_type,
               job_name,
               job_params,
               status,
               progress,
               start_time,
               end_time,
               error_msg,
               create_by,
               create_time,
               update_by,
               update_time,
               remark
        from knowledge_job
    </sql>

</mapper>