1010import com .yedu .common .event .bizppurio .ClassGuideEvent ;
1111import com .yedu .common .event .bizppurio .ParentsClassInfoEvent .ClassTime ;
1212import com .yedu .common .event .bizppurio .ParentsClassInfoEvent .FirstDay ;
13+ import java .text .DecimalFormat ;
1314import java .time .DayOfWeek ;
1415import java .time .LocalTime ;
1516import java .time .format .DateTimeFormatter ;
@@ -52,6 +53,9 @@ public class BizppurioMapper {
5253 private static final String CHANNEL = "AC" ;
5354 private static final String MESSAGE = "MD" ;
5455
56+
57+ private static final DecimalFormat PAY_FORMAT = new DecimalFormat ("#.##" );
58+
5559 public CommonRequest mapToApplyAgree (ApplyAgreeEvent applyAgreeEvent ) {
5660 String message =
5761 ("이제 한 단계만 남았어요! \n "
@@ -692,7 +696,7 @@ public CommonRequest mapToPayNotification(PayNotificationEvent event) {
692696 """
693697 .strip ()
694698 .replace ("#{name}" , event .nickName ())
695- .replace ("#{pay}" , String . valueOf (event .pay () / 10_000 ));
699+ .replace ("#{pay}" , formatPay (event .pay ()));
696700
697701 Message messageBody =
698702 new TextMessage (
@@ -702,6 +706,11 @@ public CommonRequest mapToPayNotification(PayNotificationEvent event) {
702706 return createCommonRequest (messageBody , event .parentPhoneNumber ());
703707 }
704708
709+ private String formatPay (int amount ) {
710+ double pay = amount / 10_000.0 ;
711+ return PAY_FORMAT .format (pay );
712+ }
713+
705714 public CommonRequest mapToTeacherCompleteTalkChangeNoticeEvent (
706715 TeacherCompleteTalkChangeNoticeEvent event ) {
707716
0 commit comments