|
@@ -78,10 +78,10 @@
|
|
|
a.id=b.benteler_plan_id and a.pause_flag=0 and a.deleted=0 and a.effective_date <= now()
|
|
|
and b.type_flag=${type_flag}
|
|
|
<if test="week_day != null and week_day != ''">
|
|
|
- and b.week_day = ${week_day}
|
|
|
+ and b.week_day >= ${week_day}
|
|
|
</if>
|
|
|
<if test="month_day != null and month_day != ''">
|
|
|
- and b.month_day = ${month_day}
|
|
|
+ and b.month_day >= ${month_day}
|
|
|
</if>
|
|
|
and a.id = oap.benteler_plan_id
|
|
|
and a.plan_type = 2
|
|
@@ -90,6 +90,12 @@
|
|
|
|
|
|
</select>
|
|
|
|
|
|
+ <delete id="delTaskOld">
|
|
|
+ delete from onsite_task where status=0
|
|
|
+ and onsite_calendar_id in (select id from onsite_calendar where type_flag in (1,2) )
|
|
|
+ and ADDDATE(task_time, interval 1 day) < now()
|
|
|
+ </delete>
|
|
|
+
|
|
|
<select id="getRemindWork" resultMap="calendarOnsite">
|
|
|
select b.*,a.task_time ,a.id onsite_task_id
|
|
|
from onsite_task a,onsite_calendar b
|
|
@@ -97,7 +103,7 @@
|
|
|
<if test="remind_task_flag != null">
|
|
|
and a.remind_task_flag = ${remind_task_flag}
|
|
|
</if>
|
|
|
- <if test="remind_nowork_flag">
|
|
|
+ <if test="remind_nowork_flag != null">
|
|
|
and a.remind_nowork_flag = ${remind_nowork_flag}
|
|
|
</if>
|
|
|
</select>
|