|
|
@ -167,12 +167,14 @@ public class PartyTopicServiceImpl extends BaseServiceImpl<PartyTopicDao, PartyT |
|
|
|
PartyTopicResultDTO partyTopicResultDTO = new PartyTopicResultDTO(); |
|
|
|
//获取当前用户在当前党群禁言状态
|
|
|
|
PartyUserGroupDTO userByGroupIdAndUserId = partyUserGroupService.getUserByGroupIdAndUserId(formDto.getPartyGroupId(), formDto.getUserId()); |
|
|
|
if(userByGroupIdAndUserId!=null && userByGroupIdAndUserId.getBannedEndTime()!=null && new Date().before(userByGroupIdAndUserId.getBannedEndTime())){ |
|
|
|
partyTopicResultDTO.setBannedFlag("1"); |
|
|
|
}else{ |
|
|
|
partyTopicResultDTO.setBannedFlag("0"); |
|
|
|
if(userByGroupIdAndUserId!=null){ |
|
|
|
if (userByGroupIdAndUserId.getBannedEndTime()!=null && new Date().before(userByGroupIdAndUserId.getBannedEndTime())) { |
|
|
|
partyTopicResultDTO.setBannedFlag("1"); |
|
|
|
} else{ |
|
|
|
partyTopicResultDTO.setBannedFlag("0"); |
|
|
|
} |
|
|
|
partyTopicResultDTO.setCurrentUserIdentity(userByGroupIdAndUserId.getIdentityFlag()); |
|
|
|
} |
|
|
|
partyTopicResultDTO.setCurrentUserIdentity(userByGroupIdAndUserId.getIdentityFlag()); |
|
|
|
partyTopicResultDTO.setTopicList(topicLists); |
|
|
|
return new Result<PartyTopicResultDTO>().ok(partyTopicResultDTO); |
|
|
|
} |
|
|
|