<?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.docus.server.report.mapper.AfCollectTaskMapper">
    <insert id="saveTask">
        INSERT INTO `docus_archivefile`.`af_collect_task`(`id`, `patient_id`, `sysflag`,
                                                          `state`, `C1`,`C2`, `C3`)
        VALUES (#{task.id}, #{task.patientId}, #{task.sysflag}, '0', #{task.C1}, #{task.C2}, #{task.C3});
    </insert>

    <select id="getTaskById" resultType="com.docus.server.report.entity.AfCollectTask">
        select *
        from `docus_archivefile`.`af_collect_task`
        where `id` = #{id}
    </select>
</mapper>
