团队政策改为拥有者的countryCode

This commit is contained in:
tianfeng 2026-02-04 10:08:22 +08:00
parent 030449ab6a
commit 043029e647

View File

@ -37,7 +37,7 @@ public class TeamReleasePolicyQryExe {
TeamProfile teamProfile = teamProfileService.getById(cmd.getId());
ResponseAssert.notNull(TeamErrorCode.TEAM_NOT_FOUND, teamProfile);
UserProfile userProfile = userProfileGateway.getByUserId(cmd.getReqUserId());
UserProfile userProfile = userProfileGateway.getByUserId(teamProfile.getOwnUserId());
Map<String, TeamPolicyManager> policyManagerMap = teamPolicyManagerService.mapRegionReleaseWithCountry(Set.of(teamProfile.getRegion()));
TeamPolicyManager teamPolicyManager = TeamBillCycleUtils.getPolicyFromMap(policyManagerMap, teamProfile.getRegion(), userProfile.getCountryCode());