From d1d773cffb46cfa42a3ba9011eabbd42ddaffdb2 Mon Sep 17 00:00:00 2001 From: zainali5120 <512061637@qq.com> Date: Thu, 22 Apr 2021 14:28:56 +0800 Subject: [PATCH] 优化TRC20同步 --- src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java b/src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java index 6baf44e..d809951 100644 --- a/src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java +++ b/src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java @@ -161,6 +161,7 @@ FollowTraderProfitInfoEntity followTraderProfitInfoEntity = new FollowTraderProfitInfoEntity(); if(FollowTraderInfoEntity.IS_SETFRIST_Y.equals(type)) { followTraderProfitInfoEntity.setType(type); + followTraderProfitInfoEntity.setTotalProfitRatioSc(2); }else { String nicknameDto = recordsPageDto.getNickname(); followTraderProfitInfoEntity.setNickname(nicknameDto); @@ -216,6 +217,10 @@ FollowTraderProfitInfoVo.setDeclaration(declaration); Integer isAll = followTraderInfoEntity.getIsAll(); FollowTraderProfitInfoVo.setIsAll(isAll); + + Date entryTime = followTraderInfoEntity.getEntryTime(); + int datePoor = getDatePoor(entryTime, new Date()); + FollowTraderProfitInfoVo.setEntryDays(datePoor); String labels = followTraderInfoEntity.getLabels(); if(StrUtil.isNotEmpty(labels)) { @@ -1032,7 +1037,11 @@ tradeProfitInfoVo.setTotalFollowerCnt(totalFollowerCnt); BigDecimal totalOrderCnt = followTraderProfitInfoVo.getTotalOrderCnt(); tradeProfitInfoVo.setTotalOrderCnt(totalOrderCnt); - } + BigDecimal thirtyProfitRatio = followTraderProfitInfoVo.getThirtyProfitRatio(); + tradeProfitInfoVo.setThirtyProfitRatio(thirtyProfitRatio); + BigDecimal thirtyRatio = followTraderProfitInfoVo.getThirtyRatio(); + tradeProfitInfoVo.setThirtyRatio(thirtyRatio); + } return Result.ok(tradeProfitInfoVo); } -- Gitblit v1.9.1