新代理政策-目标初始化countryCode改为根据团队长国家
This commit is contained in:
parent
4878c1755c
commit
030449ab6a
@ -130,7 +130,7 @@ public class TeamTargetCommon {
|
||||
Boolean.FALSE);
|
||||
}
|
||||
|
||||
UserProfile userProfile = userProfileGateway.getByUserId(userId);
|
||||
UserProfile userProfile = userProfileGateway.getByUserId(teamProfile.getOwnUserId());
|
||||
|
||||
// 成员目标单据不存在
|
||||
if (Boolean.FALSE.equals(existsBillTarget(userId))) {
|
||||
|
||||
@ -97,9 +97,6 @@ public class UpdateMemberTeamDecay {
|
||||
TeamProfile teamProfile = teamProfileService.getById(teamMember.getTeamId());
|
||||
ResponseAssert.notNull(TeamErrorCode.USER_NOT_TEAM_MEMBER, teamProfile);
|
||||
|
||||
UserProfile userProfile = userProfileGateway.getByUserId(param.getMemberUserId());
|
||||
ResponseAssert.notNull(UserErrorCode.USER_INFO_NOT_FOUND, userProfile);
|
||||
|
||||
// 移除成员
|
||||
TeamMember removeTeamMember = processRemoveTeamMember(teamMember.getSortId());
|
||||
if (Objects.isNull(removeTeamMember)) {
|
||||
@ -141,6 +138,9 @@ public class UpdateMemberTeamDecay {
|
||||
.setCreateUser(param.getUpdateUser())
|
||||
);
|
||||
|
||||
UserProfile userProfile = userProfileGateway.getByUserId(param.getMemberUserId());
|
||||
ResponseAssert.notNull(UserErrorCode.USER_INFO_NOT_FOUND, newTeamProfile.getOwnUserId());
|
||||
|
||||
// 移除历史申请
|
||||
teamApplicationProcessService.removeByUserId(param.getMemberUserId());
|
||||
|
||||
|
||||
@ -334,7 +334,7 @@ public class TeamBillCycleClientServiceImpl implements TeamBillCycleClientServic
|
||||
teamProfileService.getById(teamMember.getTeamId());
|
||||
ResponseAssert.notNull(TeamErrorCode.TEAM_NOT_FOUND, teamProfile);
|
||||
|
||||
UserProfile userProfile = userProfileGateway.getByUserId(teamMember.getMemberId());
|
||||
UserProfile userProfile = userProfileGateway.getByUserId(teamProfile.getOwnUserId());
|
||||
ResponseAssert.notNull(UserErrorCode.USER_INFO_NOT_FOUND, userProfile);
|
||||
|
||||
Boolean isOpenAutoSalary = isOpenDailyAutoSalary(teamProfile.getRegion());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user