Skip to content

Commit

Permalink
Merge pull request #76 from Hanaro-trip-together-bank/feature/exchange
Browse files Browse the repository at this point in the history
Feature/exchange
  • Loading branch information
ny2060 authored May 30, 2024
2 parents b4597df + d092a4e commit a1c782c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.hanaro.triptogether.exchangeRate.dto.request;

import com.hanaro.triptogether.common.BigDecimalConverter;
import com.hanaro.triptogether.enumeration.ExchangeRateAlarmType;
import com.hanaro.triptogether.exchangeRate.domain.entity.ExchangeRate;
import com.hanaro.triptogether.exchangeRate.domain.entity.ExchangeRateAlarm;
Expand All @@ -17,7 +18,7 @@ public class ExchangeRateAlarmRequestDto {

private Long teamIdx;
private String curCode;
private BigDecimal curRate;
private String curRate;
private ExchangeRateAlarmType rateAlarmType;
private String fcmToken;

Expand All @@ -28,7 +29,7 @@ public ExchangeRateAlarm toEntity(Team team, ExchangeRate exchangeRate) {
.exchangeRate(exchangeRate)
.rateType(rateAlarmType)
.curCode(curCode)
.curRate(curRate).build();
.curRate(BigDecimalConverter.convertStringToBigDecimal(curRate)).build();
}

}

0 comments on commit a1c782c

Please sign in to comment.