<?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="jnpf.attendance.mapper.FtbScheduleGroupDrawingParamMapper">

    <select id="selectLineRuleDtoByGroupId" resultType="jnpf.model.attendance.dto.scheduling.LineSchedulingRuleDto">
        SELECT
            t.F_Id AS id,
            t.F_MaxDailySegmentsEnabled AS maxDailySegmentsEnabled,
            t.F_MaxDailySegmentsValue AS maxDailySegmentsValue,
            t.F_MaxDailySegmentsPriority AS maxDailySegmentsPriority,
            t.F_MaxSingleSegmentHoursEnabled AS maxSingleSegmentHoursEnabled,
            t.F_MaxSingleSegmentHoursValue AS maxSingleSegmentHoursValue,
            t.F_MaxSingleSegmentHoursPriority AS maxSingleSegmentHoursPriority,
            t.F_MinSingleSegmentHoursEnabled AS minSingleSegmentHoursEnabled,
            t.F_MinSingleSegmentHoursValue AS minSingleSegmentHoursValue,
            t.F_MinSingleSegmentHoursPriority AS minSingleSegmentHoursPriority
        FROM ftb_attendance_group_drawing_param t
        WHERE t.F_GroupId = #{groupId}
        LIMIT 1
    </select>
</mapper>
