@Query(value="select * from app where id in ?1",nativeQuery=true)
List<App>findByIds(List<Long>ids);
@Query(value="SELECT DISTINCT t2.* FROM campaign t0 JOIN channel t1 ON t0.channel = t1.id JOIN app t2 ON t0.app = t2.id WHERE t0.del_flag is not true and (t1.type!='ry_coop' or t1.type is NULL) and t1.category = 'ADVERTISING' and t2.id in ?1 and t2.platform = ?2 and t2.del_flag is not TRUE",nativeQuery=true)
@Query(value="SELECT DISTINCT t2.* FROM campaign t0 JOIN channel t1 ON t0.channel = t1.id JOIN app t2 ON t0.app = t2.id WHERE t0.del_flag is not true and (t1.type!='ry_coop' or t1.type is NULL) and t1.category = 'ADVERTISING' and t2.id = ?1",nativeQuery=true)
AppfindAppFromOnelink(Longappid);
@Query(value="select * from app where appkey in ?1",nativeQuery=true)
@Query(value="select create_account from app where appkey=?1",nativeQuery=true)
StringfindCreateAccountByAppkey(StringappKey);
@Query(value="select DISTINCT a.* from app a right join data_auth d on a.id = d.app where d.account = ?1 and d.channel = ?2 and (d.all_campaign is true or d.channel_permit is true)",nativeQuery=true)