From f3948fa31158c7b7dea3b038e01c43ce54c55a1c Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 14 Apr 2021 11:09:57 +0800 Subject: [PATCH] modify --- src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java | 10 +++++++++- 1 files changed, 9 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..4df5e40 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 @@ -216,6 +216,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 +1036,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