|
|
@@ -9,16 +9,12 @@ import org.springframework.data.jpa.repository.Modifying;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
|
|
|
import javax.transaction.Transactional;
|
|
|
-import java.time.LocalDateTime;
|
|
|
import java.util.List;
|
|
|
|
|
|
public interface MetaTaskToUserRepo extends JpaRepository<MetaTaskToUser, Long>, JpaSpecificationExecutor<MetaTaskToUser> {
|
|
|
|
|
|
MetaTaskToUser findByUserIdAndTaskIdAndDel(Long userId, Long taskId, boolean del);
|
|
|
|
|
|
- @Query(value = "select * from meta_task_to_user where user_id = ?1 and task_id = ?2 and del = false and get_time > ?3", nativeQuery = true)
|
|
|
- MetaTaskToUser findByCondition(Long userId, Long taskId, LocalDateTime startTime);
|
|
|
-
|
|
|
MetaTaskToUser findByIdAndDel(Long id, boolean del);
|
|
|
|
|
|
List<MetaTaskToUser> findAllByUserIdAndStatusAndDel(Long userId, MetaTaskStatus status, boolean del);
|