Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
sohyun-ku committed May 11, 2023
1 parent 20e912c commit d6d4a4e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ class SnapshotController(
}

@GetMapping("/customers/{customerId}/snapshots/{snapshotId}/export")
fun exportSnapshot(
fun getAllExportSnapshotNode(
@PathVariable customerId: Long,
@PathVariable snapshotId: Long,
@PathVariable snapshotId: Long
): List<SnapshotExportDto> {
return snapshotNodeService.getAllExportSnapshotNode(customerId, snapshotId)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class SnapshotNodeDao(
) : JdbcDaoSupport(entityJdbcProvider), SnapshotNodeRepository by snapshotNodeRepository {
private val sql: SnapshotNodeSql = super.sqls(::SnapshotNodeSql)

fun findAllExportSnapshotNode(
fun selectAllExportSnapshotNode(
customerId: Long,
snapshotId: Long
): List<SnapshotExportDbRow> {
return select(
sql.findAllExportSnapshotNode(),
sql.selectAllExportSnapshotNode(),
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 findAllExportSnapshotNode(): String =
fun selectAllExportSnapshotNode(): String =
"""
SELECT
snapshots.filterInvokedAtMillis,
Expand All @@ -13,7 +13,7 @@ class SnapshotNodeSql : SqlGeneratorSupport() {
snapshots.excludeAbstract,
snapshot_nodes.parent,
snapshot_nodes.signature,
snapshot_nodes. `type`,
snapshot_nodes.type,
snapshot_nodes.usedCount,
snapshot_nodes.unUsedCount,
snapshot_nodes.lastInvokedAtMillis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class SnapshotNodeService(
customerId: Long,
snapshotId: Long
): List<SnapshotExportDto> {
return snapshotNodeDao.findAllExportSnapshotNode(
return snapshotNodeDao.selectAllExportSnapshotNode(
customerId = customerId,
snapshotId = snapshotId
).map {
Expand Down

0 comments on commit d6d4a4e

Please sign in to comment.