<?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.ruoyi.oa.mapper.OaScheduleTemplateStepMapper">

    <resultMap type="com.ruoyi.oa.domain.OaScheduleTemplateStep" id="OaScheduleTemplateStepResult">
        <result property="stepId" column="step_id"/>
        <result property="templateId" column="template_id"/>
        <result property="stepOrder" column="step_order"/>
        <result property="stepName" column="step_name"/>
        <result property="expectedDays" column="expected_days"/>
        <result property="header" column="header"/>
        <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="delFlag" column="del_flag"/>
        <result property="description" column="description"/>
    </resultMap>
    <select id="selectVoPagePlus" resultType="com.ruoyi.oa.domain.vo.OaScheduleTemplateStepVo">

        select max(step_id) as stepId,
               max(template_id) as templateId,
               max(step_order) as stepOrder,
               step_name,
               expected_days,
               header,
               description
        from oa_schedule_template_step
                 ${ew.getCustomSqlSegment}
    </select>


</mapper>
