<?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="io.wdd.server.mapper.ScriptSchedulerMapper">

    <resultMap id="BaseResultMap" type="io.wdd.server.beans.po.ScriptSchedulerPO">
            <id property="schedulerUuid" column="scheduler_uuid" jdbcType="VARCHAR"/>
            <result property="name" column="name" jdbcType="VARCHAR"/>
            <result property="cronExpress" column="cron_express" jdbcType="VARCHAR"/>
            <result property="description" column="description" jdbcType="VARCHAR"/>
            <result property="scriptContent" column="script_content" jdbcType="VARCHAR"/>
            <result property="targetMachine" column="target_machine" jdbcType="VARCHAR"/>
            <result property="lastExecutionId" column="last_execution_id" jdbcType="BIGINT"/>
            <result property="lastExecutionResultKey" column="last_execution_result_key" jdbcType="VARCHAR"/>
            <result property="lastExecutionStatus" column="last_execution_status" jdbcType="TINYINT"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="nextScheduleTime" column="next_schedule_time" jdbcType="TIMESTAMP"/>
            <result property="lastScheduleTime" column="last_schedule_time" jdbcType="TIMESTAMP"/>
    </resultMap>

    <sql id="Base_Column_List">
        scheduler_uuid,name,cron_express,
        description,script_content,target_machine,
        last_execution_id,last_execution_result_key,last_execution_status,
        create_time,update_time,next_schedule_time,
        last_schedule_time
    </sql>
</mapper>
