| | |
| | | "and t.plan.state = :planState") |
| | | List<Integer> listTaskIdsByProjectAndPlanState(@Param("projectId") Integer projectId, |
| | | @Param("planState") PlanState planState); |
| | | |
| | | @Query("select t.id from CheckTask t " + |
| | | "where t.deleted = false " + |
| | | "and t.project.id = :projectId " + |
| | | "and t.project.client.id = :clientId " + |
| | | "and t.plan.deleted = false " + |
| | | "and t.plan.state = :planState") |
| | | List<Integer> listTaskIdsByProjectAndClientAndPlanState(@Param("projectId") Integer projectId, |
| | | @Param("clientId") Integer clientId, |
| | | @Param("planState") PlanState planState); |
| | | |
| | | @Query("select t.id from CheckTask t " + |
| | | "where t.deleted = false " + |
| | | "and t.project.id = :projectId " + |
| | | "and t.project.client.id = :clientId " + |
| | | "and t.plan.deleted = false") |
| | | List<Integer> listTaskIdsByProjectAndClient(@Param("projectId") Integer projectId, |
| | | @Param("clientId") Integer clientId); |
| | | |
| | | @Query("select t from CheckTask t " + |
| | | "where t.deleted = false " + |
| | | "and t.project.id = :projectId " + |
| | | "and t.project.client.id = :clientId " + |
| | | "and t.plan.deleted = false " + |
| | | "and t.plan.state = :planState") |
| | | List<CheckTask> listByProjectAndClientAndPlanState(@Param("projectId") Integer projectId, |
| | | @Param("clientId") Integer clientId, |
| | | @Param("planState") PlanState planState); |
| | | |
| | | @Query("select t from CheckTask t " + |
| | | "where t.deleted = false " + |
| | | "and t.project.id = :projectId " + |
| | | "and t.project.client.id = :clientId " + |
| | | "and t.plan.deleted = false " + |
| | | "and t.state >= 3") |
| | | List<CheckTask> listClosedByProjectAndClient(@Param("projectId") Integer projectId, |
| | | @Param("clientId") Integer clientId); |
| | | } |