Commit b94b6244 authored by 张森's avatar 张森

定时任务问题处理

parent fe622688
...@@ -194,4 +194,8 @@ public interface PlanTaskMapper extends BaseMapper { ...@@ -194,4 +194,8 @@ public interface PlanTaskMapper extends BaseMapper {
List<Plan> getPlanIdsByDate(@Param("date") Date date); List<Plan> getPlanIdsByDate(@Param("date") Date date);
List<PlanTask> getPlanTaskList(@Param("date") Date date); List<PlanTask> getPlanTaskList(@Param("date") Date date);
PlanTask getById(@Param("planTaskId") Long planTaskId);
void updateStatusById(@Param("planTaskId") Long planTaskId, @Param("status") int status);
} }
...@@ -1140,4 +1140,11 @@ ...@@ -1140,4 +1140,11 @@
(select id from p_plan where is_delete = 0 and status = 0) (select id from p_plan where is_delete = 0 and status = 0)
</select> </select>
<select id="getById" resultType="com.yeejoin.amos.patrol.dao.entity.PlanTask">
select * from p_plan_task where id = #{planTaskId}
</select>
<update id="updateStatusById">
update p_plan_task set finish_status = #{status} where id = #{planTaskId}
</update>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment