|
@@ -22,10 +22,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <select id="getCalenderFirstForType" resultMap="calendarFirst"> <!-- todo 这个还需要状态 -->
|
|
|
- SELECT b.* FROM benteler_plan a,first_article_calendar b
|
|
|
+ <select id="getCalenderFirstForType" resultMap="calendarFirst">
|
|
|
+ SELECT b.* FROM benteler_plan a,first_article_calendar b,onsite_approval_plan oap
|
|
|
WHERE 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}
|
|
|
+ and a.id = oap.benteler_plan_id
|
|
|
+ and a.plan_type = 1
|
|
|
+ and oap.approval_level = 2
|
|
|
+ and oap.status = 1
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertFirstTask" parameterType="com.jihengbel.intelligent.applicationtask.entry.FirstTask">
|