|
@@ -38,25 +38,21 @@ public interface FsTodoItemsMapper {
|
|
|
/**
|
|
|
* 查询所有待办事项
|
|
|
*/
|
|
|
- @Select("SELECT * FROM fs_todo_items ORDER BY create_time DESC")
|
|
|
List<FsTodoItems> selectAll();
|
|
|
|
|
|
/**
|
|
|
* 根据状态查询待办事项
|
|
|
*/
|
|
|
- @Select("SELECT * FROM fs_todo_items WHERE status = #{status} ORDER BY create_time DESC")
|
|
|
List<FsTodoItems> selectByStatus(@Param("status") Integer status);
|
|
|
|
|
|
/**
|
|
|
* 根据创建者ID查询待办事项
|
|
|
*/
|
|
|
- @Select("SELECT * FROM fs_todo_items WHERE creator_id = #{creatorId} ORDER BY create_time DESC")
|
|
|
List<FsTodoItems> selectByCreatorId(@Param("creatorId") Long creatorId);
|
|
|
|
|
|
/**
|
|
|
* 根据负责人ID查询待办事项
|
|
|
*/
|
|
|
- @Select("SELECT * FROM fs_todo_items WHERE assignee_id = #{assigneeId} ORDER BY create_time DESC")
|
|
|
List<FsTodoItems> selectByAssigneeId(@Param("assigneeId") Long assigneeId);
|
|
|
|
|
|
/**
|