이벤트 배너, 충전 이벤트 - 기간 설정에 시간 추가 #285
@@ -26,7 +26,7 @@ class AdminEventBannerQueryRepositoryImpl(
 | 
				
			|||||||
    override fun getEventList(): List<GetAdminEventResponse> {
 | 
					    override fun getEventList(): List<GetAdminEventResponse> {
 | 
				
			||||||
        val now = LocalDateTime.now()
 | 
					        val now = LocalDateTime.now()
 | 
				
			||||||
        val where = event.isActive.isTrue
 | 
					        val where = event.isActive.isTrue
 | 
				
			||||||
            .and(event.startDate.loe(now))
 | 
					            .and(event.endDate.goe(now))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return queryFactory
 | 
					        return queryFactory
 | 
				
			||||||
            .select(
 | 
					            .select(
 | 
				
			||||||
@@ -65,7 +65,7 @@ class AdminEventBannerQueryRepositoryImpl(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private fun getProcessedUrlExpression(path: StringPath): StringExpression {
 | 
					    private fun getProcessedUrlExpression(path: StringPath): StringExpression {
 | 
				
			||||||
        return Expressions.stringTemplate(
 | 
					        return Expressions.stringTemplate(
 | 
				
			||||||
            "CASE WHEN {0} LIKE '$cloudFrontHost%' THEN {0} ELSE CONCAT('$cloudFrontHost', {0}) END",
 | 
					            "CASE WHEN {0} LIKE '$cloudFrontHost%' THEN {0} ELSE CONCAT('$cloudFrontHost/', {0}) END",
 | 
				
			||||||
            path
 | 
					            path
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user