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