Fixed teamranking again

This commit is contained in:
Maximilian Leopold 2019-05-09 14:00:56 +02:00
parent 6ee35d4b35
commit 8f7ed1516e
2 changed files with 5 additions and 5 deletions

View File

@ -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'

View File

@ -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);