@@ -20,9 +20,6 @@ public interface GameProjectTbRepository extends JpaRepository<GameProjectTb, In
...
@@ -20,9 +20,6 @@ public interface GameProjectTbRepository extends JpaRepository<GameProjectTb, In
@Query(value="select id,intro,name,watch,banner_img_url,apply_status,bot_account,user_nickname from game_project_tb where apply_status = 1 and id >= (select floor(RAND()*(select MAX(id) from game_project_tb))) order by id limit 10",nativeQuery=true)
@Query(value="select id,intro,name,watch,banner_img_url,apply_status,bot_account,user_nickname from game_project_tb where apply_status = 1 and id >= (select floor(RAND()*(select MAX(id) from game_project_tb))) order by id limit 10",nativeQuery=true)
List<GameProjectTb>recommendList();
List<GameProjectTb>recommendList();
@Query(value="select p.id,p.intro,p.name,p.watch,p.banner_img_url,p.apply_status,p.bot_account,p.user_nickname from game_project_tb as p,game_project_label_tb as l where l.name= :category and p.id = l.project_id and p.apply_status=1",nativeQuery=true)
@Query(value="select p.bot_account from game_project_tb as p,game_project_label_tb as l where l.name=?1 and p.apply_status=1 and p.id = l.project_id",nativeQuery=true)
@Query(value="select p.bot_account from game_project_tb as p,game_project_label_tb as l where l.name=?1 and p.apply_status=1 and p.id = l.project_id",nativeQuery=true)