团队政策改为拥有者的countryCode
This commit is contained in:
parent
030449ab6a
commit
043029e647
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user