Ver código fonte

修改查询计划时间

guozx 3 anos atrás
pai
commit
7add7780bb

+ 1 - 1
application-task/src/main/resources/mappers/FirstTaskMapper.xml

@@ -24,7 +24,7 @@
 
     <select id="getCalenderFirstForType" resultMap="calendarFirst">  <!-- todo  这个还需要状态 -->
         SELECT b.* FROM  benteler_plan a,first_article_calendar b
-        WHERE a.id=b.benteler_plan_id and a.pause_flag=0 and a.deleted=0 and a.updated_time &lt;= now()
+        WHERE a.id=b.benteler_plan_id and a.pause_flag=0 and a.deleted=0 and a.effective_date &lt;= now()
         and b.type_flag=${type_flag}
     </select>
 

+ 1 - 1
application-task/src/main/resources/mappers/OnsiteTaskMapper.xml

@@ -33,7 +33,7 @@
     <select id="getCalenderOnsitesForType" resultMap="calendarOnsite">  <!-- todo  这个还需要状态 -->
         SELECT b.* FROM  benteler_plan a,onsite_calendar b
         WHERE
-        a.id=b.benteler_plan_id and a.pause_flag=0 and a.deleted=0 and a.updated_time &lt;= now()
+        a.id=b.benteler_plan_id and a.pause_flag=0 and a.deleted=0 and a.effective_date &lt;= now()
         and b.type_flag=${type_flag}
         <if test="week_day != null and week_day != ''">
             and  b.week_day = ${week_day}