• 银企直联服务


    服务简码 HEBK

    默认端口 8075

    默认路由 /hebk/**

    组件编码 hzero-ebank

    简介

    1 概述

    银企直联服务为HZERO系统提供多家银行的统一接口封装且易于拓展,记录银行接口调用的审计事件,定时同步银行账户、金融类交易记录、票据、票据交易记录,并发送状态变更事件方便其他服务处理。

    2 组件坐标

    2.1 服务

        <dependency>
            <groupId>org.hzero</groupId>
            <artifactId>hzero-ebank</artifactId>
            <version>${hzero.service.version}</version>
        </dependency>
    

    2.2 代理

        <dependency>
            <groupId>org.hzero</groupId>
            <artifactId>hzero-ebank-proxy</artifactId>
            <version>${hzero.service.version}</version>
        </dependency>
    

    3 主要功能

    4 配置参数

    4.1 代理

    hzero:
      hebk:
        proxy:
          server:
            # 代理服务端是否启用
            enabled: true
            # 代理服务端端口
            port: 8077
            ssl:
              # 代理服务端SSL是否启用
              enabled: true
              # 代理服务端SSL CA 证书
              trusted-ca-file: |
                -----BEGIN CERTIFICATE-----
                MIIDgjCCAmqgAwIBAgIURJBmeO30Mr0p+MrsBnUuTECwA+8wDQYJKoZIhvcNAQELBQAwWTELMAkGA1UEBhMCQ04xETAPBgNVBAgTCENoYW5nc2hhMREwDwYDVQQHEwhDaGFuZ3NoYTEQMA4GA1UEChMHY2FybGxodzESMBAGA1UEAxMJTXkgb3duIENBMB4XDTE5MTEyODAxMjIwMFoXDTI0MTEyNjAxMjIwMFowWTELMAkGA1UEBhMCQ04xETAPBgNVBAgTCENoYW5nc2hhMREwDwYDVQQHEwhDaGFuZ3NoYTEQMA4GA1UEChMHY2FybGxodzESMBAGA1UEAxMJTXkgb3duIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsjvYmFygsSRwwemXuXAdNh1XvpZP4/U7eK+cYRhG/Fr4g7nfiMR2M43yJbVcwcAnwY/UU9ipcvD+iq+VPVk6K9RvstFBRkZB9gVS6TvNOD9tM4P/8V823RzRS4UTI9hHFCWtGbwNh9eq5epxcKS99bkwEU9BUcSz/ljGtKZkhwxRcQrwvX2pVsVSQTuACpyQ9SSvOrA6uMPTIxbPFQ1wZeJLRSjjkRkdWpxFkCZccDABDz2fF7JonYXuoWTvoql+VP6BKe3ZFAET7zgB8PaGLM+mpum+NkNip7sKIa2jCKoJboiY7Ta0xwaS5e0QxyH3Pk/YiGvJEAo6wae7VYNEfwIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUGfjnsr1/ljejqP3hRzDrWsRPdgcwDQYJKoZIhvcNAQELBQADggEBABYVU380uJfC17f6/ifu4tuFfn0ClePzQFO3UPq3zwpf+DFaYwgT/xX1Z9qzcxM6T3FSn5QktATggKwR25pJKnRxgAR/eb12GY5E84XpdX3uDjtcyPty9/lBBgVeCdZbSsYvt8oqU7TBpZaPjIvPGENllv1nwaXRyiyqFhTyCmFtfWYS5E4fh1dKDHqtPakLB0VLDMymSbwPtgmqS0wN92YFAqNWjb9Ojrc3Zz95f1NUSWq+89SQQB9IZbyykR6O05S+P+aWCEcCor9aHLJi4nIjLk2ZTEd4OwrFLIR/XenTbM6U6gYzIUIwyE1tloR/fftmpWAnU4rlGGWNy6uh1ZQ=
                -----END CERTIFICATE-----            
              # 代理服务端公钥
              cert-file: |
                -----BEGIN CERTIFICATE-----
                MIIDijCCAnKgAwIBAgIUZd0V6l15wpT+wuWLQd6Vozai4xUwDQYJKoZIhvcNAQELBQAwWTELMAkGA1UEBhMCQ04xETAPBgNVBAgTCENoYW5nc2hhMREwDwYDVQQHEwhDaGFuZ3NoYTEQMA4GA1UEChMHY2FybGxodzESMBAGA1UEAxMJTXkgb3duIENBMB4XDTE5MTEyODAxMzIwMFoXDTI0MTEyNjAxMzIwMFowETEPMA0GA1UEAxMGc2VydmVyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxYx+tRHS3WryHzt76B8daLKjmpR+7nw+FIBG4Qt+76MeLEt97p36FWEGY/gHN3UvaWW9y3Fx83/hNqHrAqy6Y/qY8N3C8ttUpt0+Qkc3vvX7MXKg31cuJnxNIwcSD2BK7WkoHqJZYRh1JYLYFXx16kgXeZQ8B1WTWwD6i1CaZjnOPo6K/d11pw74ojJTqURwC16jRkjxOgG2RtEawwE0WgguVJFa4QGfO3B0QN1wwTo5XQFfQJIqU8cydH6CdunjXC/tzhAi1rBtkEJtEjOAOIuFl4HR1DjZ92ooC+3K1EpBkpWKBBvVvbqd34c2YmUN3W7vSEP05HhIx+bgql64aQIDAQABo4GRMIGOMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUDJY8UYfpzXPpFDr7wzPsbP9h3PIwHwYDVR0jBBgwFoAUGfjnsr1/ljejqP3hRzDrWsRPdgcwDwYDVR0RBAgwBocEfwAAATANBgkqhkiG9w0BAQsFAAOCAQEAqR1Fqv4tEr/O4dn4ov1MQ7OqqbImimo+DiKJANQc+74kdmlSyWn+Mj5bfq+tHzZm9BOUXLBUBtZACNKvuMeqmDi9t2Y3/xxHyqDfH2FFsVjWGHodgMegNtyxd71bAgAV1vN4E+65hlg4PdTc5m9BDHfBWnSyPY1R02HThdEXatAxWL4QqVD1TZ+QndudoYNWilcGafKQRU2WHQbQMksAK5k3xboPqFcvNHF5OolxO5+qL8bN+avoR3lc9HVgJTJHTn9YoWvHcn/ZfyXb1y9h3p3itR4OxLkHBUN/SuSNnHcq1OUEQTZe9yhAGov0uJUM1NWH/GHW7862p3KeZ4vspw==
                -----END CERTIFICATE-----            
              # 代理服务端私钥
              key-file: |
                -----BEGIN PRIVATE KEY-----
                MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDFjH61EdLdavIfO3voHx1osqOalH7ufD4UgEbhC37vox4sS33unfoVYQZj+Ac3dS9pZb3LcXHzf+E2oesCrLpj+pjw3cLy21Sm3T5CRze+9fsxcqDfVy4mfE0jBx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ZBiCkwjhTbP07AoGANjj1YLcidawq81BY+oLg0iNpwSc7+5Z60Ia00/Cu0Ju+SsMGHcqm/Ro/fv5wnd5RkpckXFCbT9MsBMt9ce5w9SMQDMLe9n87zoKCtMVJ+EyiOOibRc9KLhQPvZtQ58lFFj3iPiyJ2+YHFuOp6HvSaH2tJfkpyZaVAVpX4Q0WNc8CgYEAtEv/uLZFcCGCPkB01zPL/NTvFxf+UIB4ptNZPWUUUwAg2qXuS35vDrI1/Oy4Kx5KZnjIYWloHZ9cKDIM91OU0lZ+OW3JwlKdbPhk8MQNSdtC3dPNWBV06g38gSJlSCNgqmIwClLSo6J2thHMoPEbuFBq1czvc+agLJqC28qh2UY=
                -----END PRIVATE KEY-----            
    

    4.1.1 中国银行

    hzero:
      hebk:
        proxy:
          bank:
            boc:
              enabled: 中国银行是否启用
              url: 中国银行地址
              connect-timeout: 中国银行连接超时时间
              read-timeout: 中国银行读取超时时间
              write-timeout: 中国银行读取超时时间
              maximum-size: 中国银行最大并发量
              receipt-path: 中国银行回单路径
              frontend:
                terminalId: 中国银行前置机终端号
                customerId: 中国银行前置机客户号
                operator: 中国银行前置机操作员
                password: 中国银行前置机操作员密码
              ftp:
                host: 中国银行前置机SFTP地址
                port: 中国银行前置机SFTP端口
                username: 中国银行前置机SFTP用户名
                password: 中国银行前置机SFTP密码
    

    5 展望