<?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.jeesite.modules.sys.dao.schedule.ScheduleDao">

	<!-- 查询数据  -->
	<select id="findList" resultType="Schedule">
		SELECT ${sqlMap.column.toSql()}
		FROM ${sqlMap.table.toSql()}
		<where>
			<if test="flg == 0"> flg=1 or create_by=#{createBy} and flg=0 </if>
			<if test="flg == 1"> flg=1 </if>
		</where>
		ORDER BY ${sqlMap.order.toSql()}
	</select>

	<select id="informationweek" resultType="Schedule">
		SELECT * FROM js_sys_schedule WHERE	YEARWEEK(date_format(F_StartDate,'%Y-%m-%d')) = YEARWEEK(now()) and (flg=1 or create_by=#{createBy} and flg=0)
	</select>
</mapper>
