<?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.FtbScheduleGroupFixedParamMapper">

    <select id="selectFixedRuleDtoByGroupId" resultType="jnpf.model.attendance.dto.scheduling.FixedSchedulingRuleDto">
        SELECT
            t.F_Id AS id,
            t.F_DailyWorkHoursEnabled AS dailyWorkHoursEnabled,
            t.F_DailyWorkHoursValue AS dailyWorkHoursValue,
            t.F_DailyWorkHoursPriority AS dailyWorkHoursPriority,
            t.F_ConsecutiveWorkDaysEnabled AS consecutiveWorkDaysEnabled,
            t.F_ConsecutiveWorkDaysValue AS consecutiveWorkDaysValue,
            t.F_ConsecutiveWorkDaysPriority AS consecutiveWorkDaysPriority,
            t.F_WeeklyWorkDaysEnabled AS weeklyWorkDaysEnabled,
            t.F_WeeklyWorkDaysValue AS weeklyWorkDaysValue,
            t.F_WeeklyWorkDaysPriority AS weeklyWorkDaysPriority,
            t.F_WeeklyWorkHoursEnabled AS weeklyWorkHoursEnabled,
            t.F_WeeklyWorkHoursValue AS weeklyWorkHoursValue,
            t.F_WeeklyWorkHoursPriority AS weeklyWorkHoursPriority,
            t.F_MinRestBetweenShiftsEnabled AS minRestBetweenShiftsEnabled,
            t.F_MinRestBetweenShiftsValue AS minRestBetweenShiftsValue,
            t.F_MinRestBetweenShiftsPriority AS minRestBetweenShiftsPriority
        FROM ftb_attendance_group_fixed_param t
        WHERE t.F_GroupId = #{groupId}
        LIMIT 1
    </select>
</mapper>
