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: