Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
sohyun-ku committed May 24, 2023
1 parent f5ed8cd commit 90c8f8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ class SnapshotNodeDao(
) : JdbcDaoSupport(entityJdbcProvider), SingleValueSelectTrait, SnapshotNodeRepository by snapshotNodeRepository {
private val sql: SnapshotNodeSql = super.sqls(::SnapshotNodeSql)

fun selectAllExportSnapshotNode(
fun findAllExportSnapshotNode(
customerId: Long,
snapshotId: Long,
offset: Long,
size: Long
): List<SnapshotExportDbRow> {
return select(
sql.selectAllExportSnapshotNode(),
sql.findAllExportSnapshotNode(),
mapParameterSource()
.addValue("customerId", customerId)
.addValue("snapshotId", snapshotId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.navercorp.spring.data.jdbc.plus.sql.support.SqlGeneratorSupport

class SnapshotNodeSql : SqlGeneratorSupport() {

fun selectAllExportSnapshotNode(): String =
fun findAllExportSnapshotNode(): String =
"""
SELECT
snapshots.filterInvokedAtMillis,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class SnapshotNodeService(
snapshotId: Long,
page: Long
): List<SnapshotExportDto> {
return snapshotNodeDao.selectAllExportSnapshotNode(
return snapshotNodeDao.findAllExportSnapshotNode(
customerId = customerId,
snapshotId = snapshotId,
offset = page * EXPORT_SNAPSHOT_NODE_CHUNK_SIZE,
Expand Down

0 comments on commit 90c8f8a

Please sign in to comment.