Skip to content

Commit

Permalink
add: 오름이름 끝에 오름 문자열 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Song-EunJu committed Nov 17, 2022
1 parent f458f55 commit 2d45984
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/example/goorm/FileItemReaderJobConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public Step csvFileItemReaderStep() {
public ItemProcessor<CsvReaderDto, Oreum> csvProcessor() {
return csvReaderDto -> {
String name = csvReaderDto.getName();
if(!name.contains("오름"))
name += "오름";
String type = csvReaderDto.getType().split("/")[1];
String pos = csvReaderDto.getPos();
double x = Double.parseDouble(pos.split(" ")[0]);
Expand Down

0 comments on commit 2d45984

Please sign in to comment.