<?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="net.ferrum.business.mapper.QsBatchMapper">

    <resultMap type="net.ferrum.business.domain.QsBatch" id="QsBatchResult">
        <result property="batchId" column="batch_id"/>
        <result property="batchNo" column="batch_no"/>
        <result property="batchName" column="batch_name"/>
        <result property="batchStartDate" column="batch_start_date"/>
        <result property="batchPlanEndDate" column="batch_plan_end_date"/>
        <result property="batchEndDate" column="batch_end_date"/>
        <result property="delFlag" column="del_flag"/>
        <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>

    <select id="selectBatchList" resultMap="QsBatchResult">
        select *
        from qs_batch a
            ${ew.getCustomSqlSegment}
        order by a.batch_start_date desc
    </select>

</mapper>
