<?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.qy.worksheetsystem.model.mapper.WorkCalendarMapper">

    <select id="getWorkCalendar" resultType="com.qy.worksheetsystem.vo.WorkCalendarVo">
        SELECT
        item.fid as "id",
        to_char(item.FDate, 'YYYY-MM-DD') as "date",
         (item.FDayType) as "dateType",
        item.FWEEK "week"
        FROM
        T_HR_ATS_WorkCalendarItem item
        left join T_HR_ATS_WorkCalendar w on w.fid=item.FCALENDARGROUPID
        WHERE
        item.FDate BETWEEN  to_date(#{startDate},'YYYY-MM-DD')
        AND  to_date(#{endDate},'YYYY-MM-DD')
        AND w.FISDEFAULT=1
        order by item.FDate
    </select>


</mapper>