用户活动补充字段

This commit is contained in:
2025-05-13 11:52:29 +08:00
parent 9ff2e01496
commit b767abd63e
2 changed files with 7 additions and 1 deletions

View File

@@ -27,4 +27,7 @@ public class UserEventVO extends UserEvent {
private Long roomErbanNo;
private Boolean subStatus;
private List<UserEventSubVO> subUser;
private String nick;
private Long erbanNo;
private Byte gender;
}

View File

@@ -194,7 +194,6 @@ public class UserEventServiceImpl extends ServiceImpl<UserEventMapper, UserEvent
if (userEvent.getEventStatus() == UserEventConstant.EventStatus.DELETE) {
throw new ServiceException(BusiStatus.USER_EVENT_DELETE);
}
UserEventVO userEventVO = new UserEventVO();
BeanUtils.copyProperties(userEvent, userEventVO);
Room room = roomService.getRoomByUid(userEventVO.getRoomUid());
@@ -204,6 +203,10 @@ public class UserEventServiceImpl extends ServiceImpl<UserEventMapper, UserEvent
Date now = new Date();
boolean liveStatus = now.after(userEventVO.getEventStartTime()) && now.before(userEventVO.getEventEndTime());
userEventVO.setLiveStatus(liveStatus);
Users users1 = usersService.getUsersByUid(userEvent.getUid());
userEventVO.setErbanNo(users1.getErbanNo());
userEventVO.setNick(users1.getNick());
userEventVO.setGender(users1.getGender());
PartitionEnum partitionEnum = PartitionEnum.getByPartitionId(users.getPartitionId());
userEventVO.setEventStartTimeStr(DateTimeUtil.convertWithZoneId(userEventVO.getEventStartTime(), partitionEnum.getZoneId()).format(DateTimeUtil.datetimeFormatter));
userEventVO.setEventEndTimeStr(DateTimeUtil.convertWithZoneId(userEventVO.getEventEndTime(), partitionEnum.getZoneId()).format(DateTimeUtil.datetimeFormatter));