server:
  port: 8810
#配置数据源
spring:
  datasource:
    dynamic:
      primary: master
      strict: false
      datasource:
        master:
          db-type: com.alibaba.druid.pool.DruidDataSource
          driverClassName: com.mysql.cj.jdbc.Driver
          url: jdbc:mysql://172.16.1.141:3306/purchase?useSSL=false&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8
          username: root
          password: Jsf@Customize.2023
          # 配置监控统计
          webStatFilter:
            enabled: true
          stat-view-servlet:
            enabled: true
            url-pattern: /druid/*
            reset-enable: false
          filter:
            stat:
              enabled: true
              # 记录慢SQL
              log-slow-sql: true
              slow-sql-millis: 1000
              merge-sql: false
            wall:
              config:
                multi-statement-allow: true
          druid:
            # 初始连接数
            initial-size: 5
            # 最小连接数
            min-idle: 10
            # 最大连接数
            max-active: 20
            # 获取连接超时时间
            max-wait: 5000
            # 连接有效性检测时间
            time-between-eviction-runs-millis: 60000
            # 连接在池中最小生存的时间
            min-evictable-idle-time-millis: 300000
            # 连接在池中最大生存的时间
            max-evictable-idle-time-millis: 900000
            test-while-idle: true
            test-on-borrow: false
            test-on-return: false
            # 检测连接是否有效
            validation-query: select 1
        oa:
            db-type: com.alibaba.druid.pool.DruidDataSource
            driverClassName: oracle.jdbc.OracleDriver
            url: jdbc:oracle:thin:@172.16.1.20:1521:orcl
            username: CFTZOA
            password: CFTZOAVIEW
            druid:
              # 初始连接数
              initial-size: 5
              # 最小连接数
              min-idle: 10
              # 最大连接数
              max-active: 20
              # 获取连接超时时间
              max-wait: 5000
              # 连接有效性检测时间
              time-between-eviction-runs-millis: 60000
              # 连接在池中最小生存的时间
              min-evictable-idle-time-millis: 300000
              # 连接在池中最大生存的时间
              max-evictable-idle-time-millis: 900000
              test-while-idle: true
              test-on-borrow: false
              test-on-return: false
              # 检测连接是否有效
              validation-query: select 1 FROM DUAL


  redis:
    #数据库索引
    database: ${REDIS_DB:0}
    host: ${REDIS_HOST:172.16.1.141}
    port: ${REDIS_PORT:6379}
    password: Jsf@Customize.2023
    #连接超时时间
    timeout: 5000

  kafka:
    consumer:
      bootstrap-servers: 172.16.1.141:9092
      group-id: task.zcxt
      enable-auto-commit: true
      auto-commit-interval: 1000
      key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      value-deserializer: org.apache.kafka.common.serialization.StringDeserializer

iot:
  facerec:
    pictureUri: https://www.qdeasydo.com/api/folder/
# 登录相关配置
login:
  # 登录缓存
  cache-enable: false
  #  是否限制单用户登录
  single: false
  #  验证码
  login-code:
    #  验证码类型配置 查看 LoginProperties 类
    code-type: arithmetic
    #  登录图形验证码有效时间/分钟
    expiration: 2
    #  验证码高度
    width: 111
    #  验证码宽度
    heigth: 36
    # 内容长度
    length: 2
    # 字体名称，为空则使用默认字体
    font-name:
    # 字体大小
    font-size: 25

#jwt
jwt:
  header: Authorization
  # 令牌前缀
  token-start-with: Bearer
  # 必须使用最少88位的Base64对该令牌进行编码
  base64-secret: ZmQ0ZGI5NjQ0MDQwY2I4MjMxY2Y3ZmI3MjdhN2ZmMjNhODViOTg1ZGE0NTBjMGM4NDA5NzYxMjdjOWMwYWRmZTBlZjlhNGY3ZTg4Y2U3YTE1ODVkZDU5Y2Y3OGYwZWE1NzUzNWQ2YjFjZDc0NGMxZWU2MmQ3MjY1NzJmNTE0MzI=
  # 令牌过期时间 此处单位/毫秒 ，默认4小时，可在此网站生成 https://www.convertworld.com/zh-hans/time/milliseconds.html
  token-validity-in-seconds: 14400000
  # 在线用户key
  online-key: online-token-
  # 验证码
  code-key: code-key-
  # token 续期检查时间范围（默认30分钟，单位毫秒），在token即将过期的一段时间内用户操作了，则给用户的token续期
  detect: 1800000
  # 续期时间范围，默认1小时，单位毫秒
  renew: 3600000

#是否允许生成代码，生产环境设置为false
generator:
  enabled: true

#是否开启 swagger-ui
swagger:
  enabled: true

# IP 本地解析
ip:
  local-parsing: true

# tenantId_gld_cost: "865509948108800"
tenantId_gld_cost: "5600003"
tenantId_gld_master: "5600003"

OA:
  host: "http://218.201.101.181:8180"
  getTokenPath: "/seeyon/rest/token"
  username: "zcxt"
  password: "2679fc6b-df18-4563-9b8e-773b59bdcb62"
  getUsernamePath: "/seeyon/thirdpartyController.do?ticket="
  getUserInfoPath: "/seeyon/rest/orgMember?loginName="
  sendTodoPath: "/seeyon/rest/thirdpartyPending/receive?token="
  updateTodoPath: "/seeyon/rest/thirdpartyPending/updatePendingState?token="
  sendMessagePath: "/seeyon/rest/thirdpartyMessage/receive/singleMessage?token="
  registerCode: "3007"


GLD:
  host: "http://218.201.101.181:14780"
  COST:
    getPath: "/cost-management/openapi/contractPlanItems/list"
    updatePath: "/cost-management/openapi/contractPlanItems/replace"
    authorization: "Basic a0ZkMkE4UkhSM1l1ZlplQ1lVUGNjVWFMblJWQW5ZZ1c6VTJNakoycVZiaGNVYlI5VlVyUUdYeVFQekp1WkdoNm4="
    getContractPath: "/cost-management/openapi/contracts/list"
    contractFile: "/cost-management/openapi/attachments/"
  MASTER:
    getToken: "/account/oauth2/token?grant_type=client_credentials"
    getDept: "/admin/depts"
    getMember: "/admin/depts/memberslist?allTreePath=true&includeExternal=true"
    getProject: "/pmbasic/projects/list"
    getTenant: "/tenant/v2/tenants?size=20000"
    getMDMProject: "/qdchf-integration/query/project"
    authorization: "Basic YlFvc0tIeWJkSlZUZGtMcXA0U1VIMlE0ejNZQjc5eVA6b1ZmaU5zR1c1NVZzSW5ITTlDOVI3c2g0SHlpVGMxY2w="
  APPROVE:
    mgtGroupId: "5600082"
    startApprove: "/task/{deptId}/tasks/submit"
    getApproveInfo: "/task/{deptId}/tasks?ids={ids}&taskType=APPROVAL"
    getUserDeptList: "/admin/depts/members/userId/{userId}"
    authorization: "Basic YlFvc0tIeWJkSlZUZGtMcXA0U1VIMlE0ejNZQjc5eVA6b1ZmaU5zR1c1NVZzSW5ITTlDOVI3c2g0SHlpVGMxY2w="

PURCHASE:
  redirectUrl: "http://localhost:7801/#/redirect"
  loginUrl: "http://localhost:7801/"
  purchasePath: "process-form-infor"
  supplierPath: "supplier-evaluation-detail"
  requestUrl: "http://192.168.101.93:8810/purchase/getDetail?"

MDM:
  host: "http://172.16.1.184:8088"
  supplierPush: "/intfc/mdm/receive?serviceCode=08&sysCode=04"
