<?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.younike.service.mapper.TaskLogMapper">

    <resultMap type="com.younike.service.pojo.TaskLog" id="TaskLogResult">
        <result property="taskId" column="task_id"/>
        <result property="taskFileName" column="task_file_name"/>
        <result property="taskName" column="task_name"/>
        <result property="executionTime" column="execution_time"/>
        <result property="isSuccess" column="is_success"/>
        <result property="remark" column="remark"/>
    </resultMap>

    <sql id="selectTaskLogVo">
        select task_id, task_file_name, task_name, execution_time, is_success, remark from task_log
    </sql>


    <insert id="insert" parameterType="com.younike.service.pojo.TaskLog">
        insert into task_log (task_id, task_file_name, task_name, execution_time, is_success, remark)
        values (#{taskId}, #{taskFileName}, #{taskName}, #{executionTime}, #{isSuccess}, #{remark})
    </insert>

</mapper>
