From f8804d465f7f4d7ef055f213e24f49358e98b9d3 Mon Sep 17 00:00:00 2001 From: yqy Date: Mon, 13 Jun 2022 09:40:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=A8=A1=E6=9D=BF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/baiye/modules/system/domain/PayTemplate.java | 3 +-- .../modules/system/service/impl/PayTemplateServiceImpl.java | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manage/ad-platform-management/src/main/java/com/baiye/modules/system/domain/PayTemplate.java b/manage/ad-platform-management/src/main/java/com/baiye/modules/system/domain/PayTemplate.java index 44445d0b..f777ab2a 100644 --- a/manage/ad-platform-management/src/main/java/com/baiye/modules/system/domain/PayTemplate.java +++ b/manage/ad-platform-management/src/main/java/com/baiye/modules/system/domain/PayTemplate.java @@ -48,8 +48,7 @@ public class PayTemplate implements Serializable { @Column(name = "base_amount") @ApiModelProperty(value = "基础金额") - @NotNull(message = "基础金额", groups = {AddGroup.class}) - private Double baseAmount = 30.0; + private Double baseAmount; @Column(name = "call_duration") @ApiModelProperty(value = "通话时长") diff --git a/manage/ad-platform-management/src/main/java/com/baiye/modules/system/service/impl/PayTemplateServiceImpl.java b/manage/ad-platform-management/src/main/java/com/baiye/modules/system/service/impl/PayTemplateServiceImpl.java index a38f8f49..af8124d6 100644 --- a/manage/ad-platform-management/src/main/java/com/baiye/modules/system/service/impl/PayTemplateServiceImpl.java +++ b/manage/ad-platform-management/src/main/java/com/baiye/modules/system/service/impl/PayTemplateServiceImpl.java @@ -40,6 +40,7 @@ public class PayTemplateServiceImpl implements PayTemplateService { String format = new DecimalFormat("#.00").format(payTemplate.getAmount()); Double amount = Double.parseDouble(format); payTemplate.setAmount(amount); + payTemplate.setBaseAmount(baseFee); payTemplateRepository.save(payTemplate); }