|
@@ -54,6 +54,7 @@ public interface CrowdTestProjectDao extends CrudRepository<CrowdTestProjectPO,
|
|
|
|
|
|
CrowdTestProjectPO findByCodeAndIsDeleted(String code, int isDeleted);
|
|
|
|
|
|
+ @Query(value = "SELECT * FROM crowd_test_project where CTP_U_ID=?1 and CTP_IS_DELETED =?2 and (CTP_RM_ID <> ?1 or CTP_RM_ID IS NULL)", nativeQuery = true)
|
|
|
List<CrowdTestProjectPO> findByUserIdAndIsDeleted(Long userId, int isDeleted);
|
|
|
|
|
|
List<CrowdTestProjectPO> findAllByIsDeleted(int isDeleted);
|