File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/kotlin/dsm/pick2024/domain/earlyreturn/service Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,10 @@ class ChangeEarlyReturnStatusService(
3939 @Transactional
4040 override fun statusEarlyReturn (request : StatusEarlyReturnRequest ) {
4141 val admin = adminFacadeUseCase.currentAdmin()
42+ val userIdList = request.idList.stream().map { findApplicationById(it).userId }.toList()
4243
4344 if (request.status == Status .NO ) {
44- handleStatusNo(request.idList)
45+ handleStatusNo(request.idList, userIdList )
4546 return
4647 }
4748
@@ -65,8 +66,8 @@ class ChangeEarlyReturnStatusService(
6566 eventPublisher.publishEvent(ChangeStatusRequest (this , updateEarlyReturnList.map { it.userId }))
6667 }
6768
68- private fun handleStatusNo (idList : List <UUID >) {
69- eventPublisher.publishEvent(ChangeStatusRequest (this , idList ))
69+ private fun handleStatusNo (idList : List <UUID >, userIdList : List < UUID > ) {
70+ eventPublisher.publishEvent(ChangeStatusRequest (this , userIdList ))
7071 idList.forEach { id ->
7172 deleteApplicationPort.deleteByIdAndApplicationKind(id, ApplicationKind .EARLY_RETURN )
7273 }
You can’t perform that action at this time.
0 commit comments