package com.ycl.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.ycl.common.base.Result;
|
import com.ycl.common.enums.business.ProcessLogEventTypeEnum;
|
import com.ycl.domain.entity.ProcessLog;
|
import com.ycl.domain.query.ProcessLogQuery;
|
|
import java.util.List;
|
|
/**
|
* 流程日志 服务类
|
*
|
* @author xp
|
* @since 2025-01-02
|
*/
|
public interface ProcessLogService extends IService<ProcessLog> {
|
|
/**
|
* 添加
|
* @param taskId 任务id
|
* @param flowInsId 流程实例id
|
* @param eventType 事件类型
|
* @param projectId 项目id
|
* @param eventDataJson json扩展内容
|
*/
|
void add(String taskId, String flowInsId, ProcessLogEventTypeEnum eventType, Long projectId, String eventDataJson);
|
|
/**
|
* 批量删除
|
* @param ids
|
* @return
|
*/
|
Result remove(List<String> ids);
|
|
/**
|
* id删除
|
* @param id
|
* @return
|
*/
|
Result removeById(String id);
|
|
/**
|
* 分页查询
|
* @param query
|
* @return
|
*/
|
Result page(ProcessLogQuery query);
|
|
/**
|
* 根据id查找
|
* @param id
|
* @return
|
*/
|
Result detail(Long id);
|
|
/**
|
* 列表
|
* @return
|
*/
|
Result all();
|
|
/**
|
* 判断任务转办过没
|
*
|
* @param processInstanceId 流程实例id
|
* @param taskId 任务id
|
* @return
|
*/
|
Boolean taskDelegation(String processInstanceId, String taskId);
|
|
/**
|
* 检查任务是否挂起
|
*
|
* @param taskId 任务id
|
* @param processInsId 流程实例id
|
* @return true 挂起的 false没挂起
|
*/
|
Boolean taskIsHangup(String taskId, String processInsId);
|
|
/**
|
* 流程推进日志
|
*
|
* @param query
|
* @return
|
*/
|
Result projectProcessLogPage(ProcessLogQuery query);
|
}
|