From 01dae4bb95a58b4f043ace22bac4f197c6953cb3 Mon Sep 17 00:00:00 2001 From: haotian <2421912570@qq.com> Date: Mon, 14 Apr 2025 10:15:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9--=E6=9F=A5=E7=9C=8B=E4=BB=96?= =?UTF-8?q?=E4=BA=BA=E5=8F=91=E5=B8=83=E4=BD=9C=E5=93=81=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=89=A9=E4=BD=99=E5=A4=A9=E6=95=B0=E8=AE=A1?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/app/AppSystemController.java | 2 +- ruoyi-admin/src/main/resources/application.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppSystemController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppSystemController.java index d0423205..3685309b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppSystemController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppSystemController.java @@ -1418,7 +1418,7 @@ public class AppSystemController extends BaseController { //--------------------------------------测试时直接注释掉------------------------------------------------- LocalDate now = LocalDate.now(); long daysBetween = ChronoUnit.DAYS.between(now, userPublishWorkSourceListDto.getEndTime()); - userPublishWorkSourceListDto.setrDays(daysBetween); + userPublishWorkSourceListDto.setrDays(Math.max(daysBetween, 0L)); //--------------------------------------测试时直接注释掉end----------------------------------------------- // userPublishWorkSourceListDto.setrDays(0L); } diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 93bcc44f..260eb573 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -15,7 +15,10 @@ ruoyi: idCardPath: D:/ruoyi/IdCard domain: http://10.0.0.17:8081 +# # 腾讯云 # domain: http://82.156.153.112:8081 + +# # 火山云 # domain: http://14.103.162.172:8081 # # idCardPath: /home/IdCard