Helius
2020-10-12 99124cb0cd6a58d9241b8276eba9ec5e7695b42d
modify
3 files modified
15 ■■■■ changed files
src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java 1 ●●●● patch | view | raw | blame | history
src/main/resources/application.yml 12 ●●●● patch | view | raw | blame | history
src/test/java/com/xcong/excoin/WholeTest.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java
@@ -78,6 +78,7 @@
            @Override
            public void run() {
                try {
                    Thread.sleep(2000);
                    CalculateUtil.getForceSetPriceForWhole(symbol, memberEntity);
                } catch (Exception e) {
                    log.error("全仓模式预估强平价", e);
src/main/resources/application.yml
@@ -7,12 +7,12 @@
  profiles:
    active: dev
  datasource:
#    url: jdbc:mysql://rm-bp151tw8er79ig9kb5o.mysql.rds.aliyuncs.com:3306/db_biue?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
#    username: ctcoin_data
#    password: ctcoin_123
    url: jdbc:mysql://120.27.238.55:3306/kss_framework?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
    username: ct_test
    password: 123456
    url: jdbc:mysql://rm-bp151tw8er79ig9kb5o.mysql.rds.aliyuncs.com:3306/db_hibit?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
    username: ctcoin_data
    password: ctcoin_123
#    url: jdbc:mysql://120.27.238.55:3306/kss_framework?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
#    username: ct_test
#    password: 123456
    driver-class-name: com.mysql.jdbc.Driver
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
src/test/java/com/xcong/excoin/WholeTest.java
@@ -111,7 +111,7 @@
     */
    @Test
    public void forceSetPriceTest() {
        MemberEntity memberEntity = memberDao.selectById(5L);
        MemberEntity memberEntity = memberDao.selectById(66L);
        CalculateUtil.getForceSetPriceForWhole("BTC/USDT", memberEntity);
    }