From 3b15cc576be7e4b7d793505b8122e5197e5d74e5 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Fri, 21 Nov 2025 11:22:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=A2=E9=98=9F=E6=98=BE=E7=A4=BA=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E5=A4=A9=E6=95=B0=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/command/team/query/TeamBillWorkMembersQryExe.java | 3 +++ .../infra/database/mongo/service/team/TeamBillCycleUtils.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/query/TeamBillWorkMembersQryExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/query/TeamBillWorkMembersQryExe.java index e7fbbb1a..e45ac595 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/query/TeamBillWorkMembersQryExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/query/TeamBillWorkMembersQryExe.java @@ -11,6 +11,7 @@ import com.red.circle.other.domain.gateway.user.UserProfileGateway; import com.red.circle.other.domain.model.user.UserProfile; import com.red.circle.other.infra.database.mongo.entity.team.team.TeamBillCycle; import com.red.circle.other.infra.database.mongo.entity.team.team.TeamMemberTarget; +import com.red.circle.other.infra.database.mongo.service.team.TeamBillCycleUtils; import com.red.circle.other.infra.database.mongo.service.team.team.TeamBillCycleService; import com.red.circle.other.infra.database.mongo.service.team.team.TeamMemberTargetService; import com.red.circle.other.infra.database.rds.entity.team.BillDiamondBalance; @@ -81,6 +82,7 @@ public class TeamBillWorkMembersQryExe { .setId(target.getTeamId()) .setAcceptGiftValue(target.sumAcceptGiftValue()) .setAcceptGiftValueFormat(NumUtils.formatLong(target.sumAcceptGiftValue())) + .setEffectiveDay(TeamBillCycleUtils.calculateEffectiveDay(target)) .setOnlineTime(target.sumAllTargetTime()); } return new TeamMemberWorkTargetCO() @@ -88,6 +90,7 @@ public class TeamBillWorkMembersQryExe { .setAcceptGiftValue(settlementResult.getAcceptGiftValue()) .setAcceptGiftValueFormat(NumUtils.formatLong(settlementResult.getAcceptGiftValue())) .setOnlineTime(settlementResult.getOnlineTime()) + .setEffectiveDay(TeamBillCycleUtils.calculateEffectiveDay(target)) .setSettlementResult( teamAppConvertor.toTeamMemberTargetSettlementResultCO(settlementResult)); } diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/team/TeamBillCycleUtils.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/team/TeamBillCycleUtils.java index 13a49f03..993a3ea5 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/team/TeamBillCycleUtils.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/team/TeamBillCycleUtils.java @@ -142,7 +142,7 @@ public final class TeamBillCycleUtils { * @param target 成员目标数据 * @return 有效天数 */ - private static Integer calculateEffectiveDay(TeamMemberTarget target) { + public static Integer calculateEffectiveDay(TeamMemberTarget target) { if (target == null || target.getDailyTargets() == null) { return 0; }