From 19a667c43a16531b7c4b315fbdad44c68d4792e7 Mon Sep 17 00:00:00 2001 From: du <1725534722@qq.com> Date: Thu, 26 Sep 2024 17:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E7=8E=AF=E5=A2=83=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E7=9F=AD=E4=BF=A1=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/jjh/declaration/regular/TimeChange.java | 7 +++++-- ruoyi-admin/src/main/resources/application-druid.yml | 2 ++ ruoyi-admin/src/main/resources/application-internet.yml | 4 +++- ruoyi-admin/src/main/resources/application-test.yml | 2 ++ ruoyi-admin/src/main/resources/application.yml | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/regular/TimeChange.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/regular/TimeChange.java index 33327e8..e2a1277 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/regular/TimeChange.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/regular/TimeChange.java @@ -53,6 +53,9 @@ public class TimeChange { @Value("${isTiming}") private Boolean isTiming; + @Value("${updateEnterprise}") + private Boolean updateEnterprise; + @Autowired private ISysJobService jobService; /** @@ -170,7 +173,7 @@ public class TimeChange { */ @Scheduled(cron = "0 0 2 * * *") public void changeEnterpriseInfo() { - if (isTiming) { + if (updateEnterprise) { List list = bmsEnterpriseBasicInfoService.list(); List allList = new ArrayList<>(); for (BmsEnterpriseBasicInfo items : list) { @@ -213,7 +216,7 @@ public class TimeChange { */ @Scheduled(cron = "0 0 3 * * *") public void changeContacts() { - if (isTiming) { + if (updateEnterprise) { List list = bmsEnterpriseBasicInfoService.list(); for (BmsEnterpriseBasicInfo items : list) { String contacts = enterpriseUrl + "/645383/qyllrytyshxydm"; diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index fb93cb9..806f157 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -65,6 +65,8 @@ spring: returnUrl: http://39.101.188.84:9999/demo/JinJiHu #returnUrl: http://192.168.0.113:80 #定时任务更新企业信息和联系人的开启 +updateEnterprise: false +#发送短信 isTiming: false # 开发环境配置 diff --git a/ruoyi-admin/src/main/resources/application-internet.yml b/ruoyi-admin/src/main/resources/application-internet.yml index 1fb54c6..3474141 100644 --- a/ruoyi-admin/src/main/resources/application-internet.yml +++ b/ruoyi-admin/src/main/resources/application-internet.yml @@ -115,7 +115,9 @@ knife4j: #自己客户端地址 returnUrl: https://idp.sipac.gov.cn/bms #定时任务更新企业信息和联系人的开启 -isTiming: true +updateEnterprise: true +#发送短信 +isTiming: false #企业端正式环境应用系统编号 enterpriseAppId: 03f70874-39e9-11ef-bbd6-fa163e2b2e10 diff --git a/ruoyi-admin/src/main/resources/application-test.yml b/ruoyi-admin/src/main/resources/application-test.yml index d8d24a6..487318b 100644 --- a/ruoyi-admin/src/main/resources/application-test.yml +++ b/ruoyi-admin/src/main/resources/application-test.yml @@ -65,6 +65,8 @@ spring: returnUrl: http://39.101.188.84:9999/demo/JinJiHuTest #returnUrl: http://192.168.0.113:80 #定时任务更新企业信息和联系人的开启 +updateEnterprise: false +#发送短信 isTiming: false # 开发环境配置 diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index f04e035..ba65377 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -34,7 +34,7 @@ spring: # 国际化资源文件路径 basename: i18n/messages profiles: - active: druid + active: internet # 文件上传 servlet: multipart: