From 4b066800e4b0240688ad3b19a77657e6fda12426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyyffkk=E2=80=9D?= <“2677828211@qq.com“> Date: Thu, 29 Dec 2022 16:46:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=9F=A5=E7=99=BB=E5=BD=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=EF=BC=8C=E5=AE=8C=E6=88=90=E5=BE=AE=E4=BF=A1=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chargeManagement/impl/SysDailyPaymentServiceImpl.java | 3 +++ src/main/resources/config/application-devdb.yml | 1 + src/main/resources/config/application-testdb.yml | 8 ++++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/api/manage/service/chargeManagement/impl/SysDailyPaymentServiceImpl.java b/src/main/java/com/api/manage/service/chargeManagement/impl/SysDailyPaymentServiceImpl.java index 3e826f0..d995a65 100644 --- a/src/main/java/com/api/manage/service/chargeManagement/impl/SysDailyPaymentServiceImpl.java +++ b/src/main/java/com/api/manage/service/chargeManagement/impl/SysDailyPaymentServiceImpl.java @@ -165,6 +165,9 @@ public class SysDailyPaymentServiceImpl implements SysDailyPaymentService { try { //判断支付金额是否超出待缴金额 VoFindByIdDailyPayment byId = sysDailyPaymentDao.findById(dailyPaymentPayInfo.getDailyPaymentId()); + if(byId==null){ + throw new RuntimeException("请填写完整信息"); + } if (dailyPaymentOrder.getPayPrice().compareTo(byId.getPaymentPrice()) == 1 ){ throw new RuntimeException("支付超出待缴金额,请重新支付,待缴金额为:"+byId.getPaymentPrice()); } diff --git a/src/main/resources/config/application-devdb.yml b/src/main/resources/config/application-devdb.yml index 5d83dbc..44c41a4 100644 --- a/src/main/resources/config/application-devdb.yml +++ b/src/main/resources/config/application-devdb.yml @@ -5,6 +5,7 @@ spring: url: jdbc:mysql://localhost:3306/IntelligentCommunity?useUnicode=true&characterEncoding=utf8&useSSL=false username: root password: 111111 + # url: jdbc:mysql://121.40.163.226:3306/yjfh_community?useUnicode=true&characterEncoding=utf8&useSSL=false # username: yjfh_community # password: Rc46WeJP6Y2sx3Mn diff --git a/src/main/resources/config/application-testdb.yml b/src/main/resources/config/application-testdb.yml index 023bfbc..2a37df8 100644 --- a/src/main/resources/config/application-testdb.yml +++ b/src/main/resources/config/application-testdb.yml @@ -14,7 +14,11 @@ spring: # # 测试数据库连接 - url: jdbc:mysql://localhost:3306/star_community?useUnicode=true&characterEncoding=utf8&useSSL=false +# url: jdbc:mysql://localhost:3306/star_community?useUnicode=true&characterEncoding=utf8&useSSL=false +# username: star_community +# password: GhNWYYynXcTC28Ce + + url: jdbc:mysql://47.92.73.187:3306/star_community?useUnicode=true&characterEncoding=utf8&useSSL=false username: star_community - password: GhNWYYynXcTC28Ce + password: nXxNknd4XpPWN8zp driver-class-name: com.mysql.jdbc.Driver \ No newline at end of file