Merge remote-tracking branch 'origin/cc_20240603_wantarea_bigregion' into cc_20240603_wantarea_bigregion

This commit is contained in:
guohb
2024-06-04 21:51:22 +08:00
2 changed files with 12 additions and 1 deletions

View File

@@ -185,8 +185,17 @@ public class TempUserDetailServiceImpl implements TempUserDetailService {
}
if (StringUtil.isBlank(enterpriseUserDO.getJobnumber())) {
throw new ServiceException(ErrorCodeEnum.JOBNUMBER_NOT_EXIST);
}
return xfsgEhrService.getUserInfoByCode(enterpriseUserDO.getJobnumber());
StaffBaseInfoDTO userInfoByCode = xfsgEhrService.getUserInfoByCode(enterpriseUserDO.getJobnumber());
//默认是店员
userInfoByCode.setStoreManagerFlag(Boolean.FALSE);
//如果有店长角色 则是店长
List<Long> userRoleIds = enterpriseUserRoleDao.getUserRoleIds(enterpriseUserDO.getUserId());
if (CollectionUtils.isNotEmpty(userRoleIds)&&userRoleIds.contains(UserRoleEnum.XFSG_SHOPOWNER.getCode())){
userInfoByCode.setStoreManagerFlag(Boolean.TRUE);
}
return userInfoByCode;
}
@Override