新增待办任务通用领域服务

This commit is contained in:
jsowell
2026-07-16 16:11:38 +08:00
parent e65017ab22
commit 181d4a5b40
9 changed files with 757 additions and 4 deletions

View File

@@ -0,0 +1,59 @@
package com.jsowell.system.mapper;
import com.jsowell.system.domain.SysTodoTask;
import com.jsowell.system.domain.dto.TodoTaskQuery;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 待办任务数据层。
*
* @author jsowell
*/
public interface SysTodoTaskMapper {
SysTodoTask selectTodoById(@Param("todoId") Long todoId);
SysTodoTask selectTodoByIdForAssignee(@Param("todoId") Long todoId,
@Param("assigneeUserId") Long assigneeUserId);
SysTodoTask selectActiveByIdempotentKey(@Param("activeIdempotentKey") String activeIdempotentKey);
List<SysTodoTask> selectTodoList(TodoTaskQuery query);
List<SysTodoTask> selectHomeList(@Param("assigneeUserId") Long assigneeUserId,
@Param("limit") int limit);
int countActive(@Param("assigneeUserId") Long assigneeUserId);
int countUnread(@Param("assigneeUserId") Long assigneeUserId);
int insertTodoTask(SysTodoTask todoTask);
int markTodoRead(@Param("todoId") Long todoId,
@Param("assigneeUserId") Long assigneeUserId,
@Param("updateBy") String updateBy);
int markAllRead(@Param("assigneeUserId") Long assigneeUserId,
@Param("updateBy") String updateBy);
int completeTodoForAssignee(@Param("todoId") Long todoId,
@Param("assigneeUserId") Long assigneeUserId,
@Param("completedBy") Long completedBy,
@Param("updateBy") String updateBy);
int completeTodoByBusiness(@Param("businessType") String businessType,
@Param("businessId") String businessId,
@Param("assigneeUserId") Long assigneeUserId,
@Param("completedBy") Long completedBy,
@Param("updateBy") String updateBy);
int cancelTodoForAssignee(@Param("todoId") Long todoId,
@Param("assigneeUserId") Long assigneeUserId,
@Param("reason") String reason,
@Param("updateBy") String updateBy);
int cancelTodo(@Param("todoId") Long todoId,
@Param("reason") String reason,
@Param("updateBy") String updateBy);
}