server:
  port: 18093
spring:
  application:
    name: entrance
  datasource:
    druid:
      driver-class-name: com.mysql.cj.jdbc.Driver
      url: jdbc:mysql://192.168.1.24:13306/pqs9100?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
#      username: root
#      password: njcnpqs
#      url: jdbc:mysql://127.0.0.1:3306/pqs9100?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
      username: root
      password: njcnpqs
      #初始化建立物理连接的个数、最小、最大连接数
      initial-size: 5
      min-idle: 5
      max-active: 50
      #获取连接最大等待时间，单位毫秒
      max-wait: 60000
      #链接保持空间而不被驱逐的最长时间，单位毫秒
      min-evictable-idle-time-millis: 300000
      validation-query: select 1
      test-while-idle: true
      test-on-borrow: false
      test-on-return: false
      pool-prepared-statements: true
      max-pool-prepared-statement-per-connection-size: 20

#mybatis配置信息
mybatis-plus:
  mapper-locations: classpath*:com/njcn/**/mapping/*.xml
  #别名扫描
  type-aliases-package: com.njcn.gather.system.dictionary.pojo.po,com.njcn.gather.machine.pojo.po
  configuration:
    #驼峰命名
    map-underscore-to-camel-case: true
    #配置sql日志输出
    # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    #关闭日志输出
    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  global-config:
    db-config:
      #指定主键生成策略
      id-type: assign_uuid


socket:
  source:
    ip: 127.0.0.1
    port: 62000
  device:
    ip: 127.0.0.1
    port: 61000
#  source:
#    ip: 192.168.1.121
#    port: 10086
#  device:
#    ip: 192.168.1.121
#    port: 61000

webSocket:
  port: 7778

#源参数下发，暂态数据默认值
Dip:
#  暂态前时间（s）
#  fPreTime: 2f
  #写入时间（s）
  fRampIn: 0.001f
  #写出时间（s）
  fRampOut: 0.001f
#  暂态后时间（s）
#  fAfterTime: 3f


#Flicker:
#  waveFluType: CPM
#  waveType: SQU
#  fDutyCycle: 50f

#log:
#  homeDir: D:\logs
#  commonLevel: info
report:
#  template: D:\template
#  reportDir: D:\report
  dateFormat: yyyy年MM月dd日
#data:
#  homeDir: D:\data
#resource:
#  videoDir: ${data.homeDir}\resources\videos
qr:
  cloud: http://pqmcc.com:18082/api/file
  dev:
    name: njcn
    password: Pqs@12345678
    port: 21
    path: /etc/qrc.bin
  gcDev:
    name: root
    password: Pqs@12345678
    port: 21
    path: /emmc/qrc.bin

db:
  type: mysql


# 比对录波需要的配置，晚点再做优化
# 系统配置
power-quality:
  # 文件读取配置
  reading:
    encoding: GBK      # 文件编码（支持中文）

  # 计算参数
  calculation:
    sampling:
      default-rate: 256  # 默认采样率（每周波采样点数）
    harmonic-times: 50   # 谐波次数
    ib-add: false        # 电流基波叠加标志
    uharm-add: false     # 电压谐波叠加标志
# 激活配置
activate:
  private-key: "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCcUyYhVqczGxblL+o/xZzF/8nf+LjrfUE/dS1aRHM7uMDD0cgCArhjtfneFePrMxt+Z7W8yNBzSarub8qsfhaVNikV7Es7oaeTygfjQXTi2n4AFkir3fM07J08RpWhl5M8f8uWTCuvFUYAw00gq55typqmnbkmJa2VIUy/iQf+cMCP7abz4/jNhUzUR3qA7TV4oMRgTdIEDUp63YF8dOC+JH8XxYrCVeHXV6fLCwmesdMzl0lB2VTEKMfLbXhOmF5g7P9y/16VCcN8UBuZlbyYfn+GAxJOSbeHi5HshOKfoSuD7Jz+3WQZpNavOWjIFExKIU38/CvnJCOP7XBCqpSTAgMBAAECggEAYeWokWRE3TpvwiOZnUpR/aVMdVi75a3ROL5XIpqPV61B+t/bU3cEpl0GF9C5pUeiRi0IoStZb3mI9D1KPW/REKyUWkhabQO1gFYbTnRlkNOn6MILzKX4cwJjDaZeeo4EBPU7N+qHyOOXrU6hdH5FfxhMdV983ajm5eeuupxER1C2kAcIklTeVpTX6EKOgZb5LBp5ssOVm2P42pOauvcRozRcvZmqnErXmukv0H4l3EVNt4rHpTn9riHUC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