gongchunyi
5 天以前 e9b4ceeea014f9d81263672f3d9c46a567c39591
src/main/resources/application-dev.yml
@@ -264,3 +264,33 @@
  compress: true # 是否压缩
  needCompressSize: 10MB # 压缩阈值
  compressQuality: 0.5 # 压缩质量(0.0-1.0)
# ==================== 水电表接入 ====================
energy-meter:
  provider:
    # 基础地址
    base-url: http://nhapi.yunjichaobiao.com/WebApi
    # 授权码
    api-key: 62F19BF685484594B57FE97FC7444AF3
    mock-enabled: false
    # 两次请求的最小间隔(毫秒)
    min-interval-ms: 500
    connect-timeout-seconds: 5
    read-timeout-seconds: 30
  # 每天 08:00 同步时始终回查最近 3 天
  lookback-days: 3
  # 历史补采单个分片最大自然日(用量接口限制 31 天跨度)
  max-shard-days: 30
  # 示值接口单个分片最大自然日(集社云 GetWaterRawData 限制 15 天跨度)
  max-reading-shard-days: 15
  # 第三方最大并发数与失败重试次数(1、5、15 分钟)
  concurrency: 2
  max-attempts: 3
  # RUNNING 任务超时阈值(分钟)
  running-timeout-minutes: 30
  # 水表原始示值任务开关(分页能力确认后可关闭)
  raw-reading-enabled: true
  # 是否注册 08:00 自动同步与 10 分钟恢复作业
  scheduler-enabled: true
  sync-cron: "0 0 8 * * ?"
  recovery-cron: "0 0/10 * * * ?"