|
@@ -20,9 +20,11 @@ import java.util.Map;
|
|
|
public interface TaskInfoMapper extends JpaRepository<TaskInfoEntity, Integer>, JpaSpecificationExecutor<TaskInfoEntity> {
|
|
|
|
|
|
|
|
|
- @Query(value = "SELECT t.task_id taskId,t.target_task targetTask,t.task_priority taskPriority,t.task_participant taskParticipant,t.start_time startTime,t.end_time endTime,\n" +
|
|
|
- "t.task_status taskStatus,t.task_creator taskCreator,t.task_index taskIndex,t.task_standard taskStandard,t.task_statements\n" +
|
|
|
- "taskStatements,t.project_id projectId,t.process_instance_id processInstanceId,t.flow_task_status flowTaskStatus,t.process_definition_id processDefinitionId from task_info t WHERE if( ?1 !='', t.target_task = ?1 , 1=1) AND if( ?2 !='', t.task_status = ?2 , 1=1) and is_delete='1' order by t.create_date desc ",
|
|
|
+ @Query(value = "SELECT t.task_id taskId,t.target_task targetTask,t.task_priority taskPriority,t.task_participant taskParticipant," +
|
|
|
+ "t.start_time startTime,t.end_time endTime,t.task_status taskStatus,t.task_creator taskCreator,t.task_index taskIndex," +
|
|
|
+ "t.task_standard taskStandard,t.task_statements taskStatements,t.project_id projectId,t.process_instance_id processInstanceId," +
|
|
|
+ "t.flow_task_status flowTaskStatus,t.process_definition_id processDefinitionId from task_info t WHERE if( ?1 !='', t.target_task = ?1 , 1=1) " +
|
|
|
+ "AND if( ?2 !='', t.task_status = ?2 , 1=1) and is_delete='1' order by t.create_date desc ",
|
|
|
countQuery = "select count(1)from task_info t WHERE if( ?1 !='', t.target_task = ?1 , 1=1) AND if( ?2 !='', t.task_status = ?2 , 1=1)", nativeQuery = true)
|
|
|
Page<Map<String, String>> findTaskInfo(String targetTask, String taskStatus, Pageable page);
|
|
|
|