account -> member
This commit is contained in:
		| @@ -85,7 +85,7 @@ class AdminChargeStatusService(val repository: AdminChargeStatusQueryRepository) | |||||||
|             } |             } | ||||||
|             .map { |             .map { | ||||||
|                 GetChargeStatusDetailResponse( |                 GetChargeStatusDetailResponse( | ||||||
|                     accountId = it.accountId, |                     memberId = it.memberId, | ||||||
|                     nickname = it.nickname, |                     nickname = it.nickname, | ||||||
|                     method = it.method, |                     method = it.method, | ||||||
|                     amount = if (paymentGateway == PaymentGateway.APPLE_IAP) { |                     amount = if (paymentGateway == PaymentGateway.APPLE_IAP) { | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ package kr.co.vividnext.sodalive.admin.charge | |||||||
| import com.querydsl.core.annotations.QueryProjection | import com.querydsl.core.annotations.QueryProjection | ||||||
|  |  | ||||||
| data class GetChargeStatusDetailQueryDto @QueryProjection constructor( | data class GetChargeStatusDetailQueryDto @QueryProjection constructor( | ||||||
|     val accountId: Long, |     val memberId: Long, | ||||||
|     val nickname: String, |     val nickname: String, | ||||||
|     val method: String, |     val method: String, | ||||||
|     val appleChargeAmount: Double, |     val appleChargeAmount: Double, | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| package kr.co.vividnext.sodalive.admin.charge | package kr.co.vividnext.sodalive.admin.charge | ||||||
|  |  | ||||||
| data class GetChargeStatusDetailResponse( | data class GetChargeStatusDetailResponse( | ||||||
|     val accountId: Long, |     val memberId: Long, | ||||||
|     val nickname: String, |     val nickname: String, | ||||||
|     val method: String, |     val method: String, | ||||||
|     val amount: Int, |     val amount: Int, | ||||||
|   | |||||||
| @@ -149,12 +149,12 @@ class ExplorerQueryRepository( | |||||||
|             .distinct() |             .distinct() | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     fun getSearchChannel(channel: String, accountId: Long): List<Member> { |     fun getSearchChannel(channel: String, memberId: Long): List<Member> { | ||||||
|         return queryFactory.selectFrom(member) |         return queryFactory.selectFrom(member) | ||||||
|             .where( |             .where( | ||||||
|                 member.nickname.containsIgnoreCase(channel) |                 member.nickname.containsIgnoreCase(channel) | ||||||
|                     .and(member.isActive.isTrue) |                     .and(member.isActive.isTrue) | ||||||
|                     .and(member.id.ne(accountId)) |                     .and(member.id.ne(memberId)) | ||||||
|                     .and(member.role.eq(MemberRole.CREATOR)) |                     .and(member.role.eq(MemberRole.CREATOR)) | ||||||
|             ) |             ) | ||||||
|             .fetch() |             .fetch() | ||||||
| @@ -266,8 +266,8 @@ class ExplorerQueryRepository( | |||||||
|                     }, |                     }, | ||||||
|                     account.tags |                     account.tags | ||||||
|                         .asSequence() |                         .asSequence() | ||||||
|                         .filter { accountCounselorTag -> accountCounselorTag.tag.isActive } |                         .filter { tag -> tag.tag.isActive } | ||||||
|                         .map { accountCounselorTag -> accountCounselorTag.tag.tag } |                         .map { tag -> tag.tag.tag } | ||||||
|                         .toList() |                         .toList() | ||||||
|                 ) |                 ) | ||||||
|             } |             } | ||||||
| @@ -313,8 +313,8 @@ class ExplorerQueryRepository( | |||||||
|                     }, |                     }, | ||||||
|                     it.tags |                     it.tags | ||||||
|                         .asSequence() |                         .asSequence() | ||||||
|                         .filter { accountCounselorTag -> accountCounselorTag.tag.isActive } |                         .filter { tag -> tag.tag.isActive } | ||||||
|                         .map { accountCounselorTag -> accountCounselorTag.tag.tag } |                         .map { tag -> tag.tag.tag } | ||||||
|                         .toList() |                         .toList() | ||||||
|                 ) |                 ) | ||||||
|             } |             } | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ import org.springframework.stereotype.Service | |||||||
| class LiveRoomKickOutService( | class LiveRoomKickOutService( | ||||||
|     private val roomInfoRepository: LiveRoomInfoRedisRepository, |     private val roomInfoRepository: LiveRoomInfoRedisRepository, | ||||||
|     private val repository: LiveRoomKickOutRedisRepository, |     private val repository: LiveRoomKickOutRedisRepository, | ||||||
|     private val accountRepository: MemberRepository, |     private val memberRepository: MemberRepository, | ||||||
|     private val roomRepository: LiveRoomRepository, |     private val roomRepository: LiveRoomRepository, | ||||||
|  |  | ||||||
|     @Value("\${cloud.aws.cloud-front.host}") |     @Value("\${cloud.aws.cloud-front.host}") | ||||||
| @@ -43,7 +43,7 @@ class LiveRoomKickOutService( | |||||||
|         liveRoomKickOut.kickOut(request.userId) |         liveRoomKickOut.kickOut(request.userId) | ||||||
|         repository.save(liveRoomKickOut) |         repository.save(liveRoomKickOut) | ||||||
|  |  | ||||||
|         val kickOutUser = accountRepository.findByIdOrNull(request.userId) |         val kickOutUser = memberRepository.findByIdOrNull(request.userId) | ||||||
|         if (kickOutUser != null) { |         if (kickOutUser != null) { | ||||||
|             roomInfo.removeSpeaker(kickOutUser) |             roomInfo.removeSpeaker(kickOutUser) | ||||||
|             roomInfo.removeListener(kickOutUser) |             roomInfo.removeListener(kickOutUser) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user