2023-09-09 01:36:45 +08:00
|
|
|
package com.ruoyi.system.mapper;
|
|
|
|
|
2024-04-05 19:25:29 +08:00
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
2023-09-09 01:36:45 +08:00
|
|
|
import com.ruoyi.system.domain.FlowTaskEntity;
|
2024-04-05 19:25:29 +08:00
|
|
|
import org.apache.ibatis.annotations.Param;
|
2023-09-09 01:36:45 +08:00
|
|
|
|
|
|
|
import java.util.List;
|
2023-09-09 22:33:35 +08:00
|
|
|
import java.util.Map;
|
2023-09-09 01:36:45 +08:00
|
|
|
|
|
|
|
/***
|
|
|
|
* 工作流业务相关
|
|
|
|
*/
|
|
|
|
public interface FlowBusinessKeyMapper {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据条件查询所有流任务
|
|
|
|
* @param flowTaskEntity
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public List<FlowTaskEntity> selectAllFlowTaskByParams(FlowTaskEntity flowTaskEntity);
|
2023-09-09 22:33:35 +08:00
|
|
|
|
2024-04-05 19:25:29 +08:00
|
|
|
/**
|
|
|
|
* 根据条件查询流程任务
|
|
|
|
* @param procInsId
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public FlowTaskEntity findFlowTaskByProcInsId(String procInsId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询项目信息
|
|
|
|
* @param proId
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public Map<String,Object> selectSurProjectById(Long proId);
|
|
|
|
|
2023-09-09 22:33:35 +08:00
|
|
|
/**
|
|
|
|
* 根据流程Id查询操作日志
|
|
|
|
* @param procInsId
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public List<Map<String, Object>> selectCommentByProcInsId(String procInsId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据流程Id查询表单数据
|
|
|
|
* @param procInsId
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public List<Map<String, Object>> selectFormDatasByProcInsId(String procInsId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询我的代办任务
|
|
|
|
* @param flowTaskEntity
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public List<Map<String, Object>> selectMyAwaitFlowTask(FlowTaskEntity flowTaskEntity);
|
|
|
|
|
2024-03-17 16:59:49 +08:00
|
|
|
/**
|
|
|
|
* 根据条件查询我的代办分组数量统计
|
|
|
|
* @param flowTaskEntity
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public List<Map<String, Object>> findAwaitCountGroupByCategory(FlowTaskEntity flowTaskEntity);
|
|
|
|
|
2023-09-09 22:33:35 +08:00
|
|
|
/**
|
|
|
|
* 查询我的已办任务
|
|
|
|
* @param flowTaskEntity
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public List<Map<String, Object>> selectMyFinishedFlowTask(FlowTaskEntity flowTaskEntity);
|
|
|
|
|
2023-09-22 00:32:08 +08:00
|
|
|
public List<FlowTaskEntity> groupByCategory(FlowTaskEntity where);
|
|
|
|
|
|
|
|
public List<FlowTaskEntity> groupByUnit(FlowTaskEntity where);
|
2023-10-01 19:45:32 +08:00
|
|
|
|
|
|
|
public List<FlowTaskEntity> listByUnit(FlowTaskEntity where);
|
|
|
|
|
|
|
|
public List<FlowTaskEntity> listByState(FlowTaskEntity where);
|
2023-10-22 23:45:32 +08:00
|
|
|
|
|
|
|
public List<FlowTaskEntity> groupByUnitTotal(FlowTaskEntity where);
|
|
|
|
|
|
|
|
public List<FlowTaskEntity> groupByUnitFinish(FlowTaskEntity where);
|
|
|
|
|
2024-04-07 21:38:37 +08:00
|
|
|
public List<FlowTaskEntity> groupByProject(@Param("deptId")long deptId,@Param("proType")String proType);
|
2023-12-13 02:35:55 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据条件查询安全类作业工作流列表
|
|
|
|
* @param flowTaskEntity
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public List<FlowTaskEntity> findSafetyWorkList(FlowTaskEntity flowTaskEntity);
|
|
|
|
|
2023-12-28 23:34:54 +08:00
|
|
|
public List<FlowTaskEntity> listByCategory(FlowTaskEntity where);
|
2024-04-05 19:25:29 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据条件查询流程用户
|
|
|
|
* @param businessKey 流程归属表单
|
|
|
|
* @param candidateUsers 办理用户列表
|
|
|
|
* @param candidateGroups 办理角色列表
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public List<SysUser> findFlowTaskUsers(@Param("businessKey") String businessKey, @Param("candidateUsers") List<String> candidateUsers, @Param("candidateGroups") List<String> candidateGroups);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据条件查询流程用户
|
|
|
|
* @param businessKey 流程归属表单
|
|
|
|
* @param candidateUsers 办理用户列表
|
|
|
|
* @param candidateGroups 办理角色列表
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public List<SysUser> findFlowTaskDeptUsers(@Param("businessKey") String businessKey, @Param("candidateUsers") List<String> candidateUsers, @Param("candidateGroups") List<String> candidateGroups);
|
2023-09-09 01:36:45 +08:00
|
|
|
}
|