Fixed teamranking again
This commit is contained in:
parent
6ee35d4b35
commit
8f7ed1516e
@ -7,7 +7,7 @@ plugins {
|
|||||||
apply plugin: 'io.spring.dependency-management'
|
apply plugin: 'io.spring.dependency-management'
|
||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'com.moowork.node'
|
apply plugin: 'com.moowork.node'
|
||||||
apply plugin: 'war'
|
//apply plugin: 'war'
|
||||||
|
|
||||||
group = 'de.hhn.labsw'
|
group = 'de.hhn.labsw'
|
||||||
version = '0.0.1-SNAPSHOT'
|
version = '0.0.1-SNAPSHOT'
|
||||||
@ -47,7 +47,7 @@ dependencies {
|
|||||||
compile group: 'org.springframework.security', name: 'spring-security-core', version: '5.1.4.RELEASE'
|
compile group: 'org.springframework.security', name: 'spring-security-core', version: '5.1.4.RELEASE'
|
||||||
//compile group: 'at.favre.lib', name: 'bcrypt', version: '{latest-version}'
|
//compile group: 'at.favre.lib', name: 'bcrypt', version: '{latest-version}'
|
||||||
|
|
||||||
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
|
//providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
|
||||||
|
|
||||||
//JWT
|
//JWT
|
||||||
compile 'io.jsonwebtoken:jjwt-api:0.10.5'
|
compile 'io.jsonwebtoken:jjwt-api:0.10.5'
|
||||||
|
|||||||
@ -15,9 +15,9 @@ public interface TeamRepository extends JpaRepository<Team, Integer> {
|
|||||||
@Query(value = "SELECT *\n" +
|
@Query(value = "SELECT *\n" +
|
||||||
"FROM user\n" +
|
"FROM user\n" +
|
||||||
"WHERE id IN (\n" +
|
"WHERE id IN (\n" +
|
||||||
" SELECT user_id\n" +
|
"SELECT user_id\n" +
|
||||||
" FROM user_info\n" +
|
"FROM user_info\n" +
|
||||||
" WHERE team_id = (SELECT team_id FROM team WHERE name = ?1))", nativeQuery = true)
|
"WHERE team_id = (SELECT team.id FROM team WHERE name = ?1));", nativeQuery = true)
|
||||||
List<Object[]> getTeammembers(String name);
|
List<Object[]> getTeammembers(String name);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user