feat(REQ-3300) - 调整IM群中查询参与人的 tips 操作条
This commit is contained in:
parent
29cea016ba
commit
7b80a4665c
@ -281,7 +281,7 @@ public class ChangeRecordRelationServiceImpl extends ServiceImpl<ChangeRecordRel
|
||||
// IM 群中非群主的人
|
||||
Optional<ChangeRecordRelation> any = imGroupParticipate.stream()
|
||||
.filter(i -> Objects.equals(i.getCreateBy(), req.getPersonId()))
|
||||
.filter(i -> Objects.equals(i.getContentExt(), String.valueOf(req.getOuId())))
|
||||
.filter(i -> Objects.equals(i.getContent(), String.valueOf(req.getOuId())))
|
||||
.findAny();
|
||||
PersonProfileDto profile = visaProfileGateway.getProfile(record.getCreateBy());
|
||||
if (any.isPresent()) {
|
||||
@ -290,14 +290,14 @@ public class ChangeRecordRelationServiceImpl extends ServiceImpl<ChangeRecordRel
|
||||
resp.setTipsText(String.format(IM_GROUP_PARTICIPATE_TIPS_OPERATED, buttonType.getDesc(), profile.getRealName(), record.getTopic()));
|
||||
} else {
|
||||
resp.setTipsText(String.format(IM_GROUP_PARTICIPATE_TIPS, profile.getRealName(), record.getTopic()));
|
||||
buttons.add(ImGroupButton.builder()
|
||||
.name(VisaButtonTypeEnum.AGREE.getDesc())
|
||||
.type(VisaButtonTypeEnum.AGREE.name())
|
||||
.build());
|
||||
buttons.add(ImGroupButton.builder()
|
||||
.name(VisaButtonTypeEnum.REJECT.getDesc())
|
||||
.type(VisaButtonTypeEnum.REJECT.name())
|
||||
.build());
|
||||
buttons.add(ImGroupButton.builder()
|
||||
.name(VisaButtonTypeEnum.AGREE.getDesc())
|
||||
.type(VisaButtonTypeEnum.AGREE.name())
|
||||
.build());
|
||||
|
||||
}
|
||||
} else {
|
||||
|
||||
@ -1414,6 +1414,7 @@ public class ChangeRecordServiceImpl extends ServiceImpl<ChangeRecordDao, Change
|
||||
req.setVisaId(req.getVisaId());
|
||||
// 解散 IM 群聊
|
||||
msgCenterGateway.dismissImGroup(request);
|
||||
log.info("dismiss im group success");
|
||||
}
|
||||
if (StringUtils.hasText(record.getApprovalId())) {
|
||||
BpmnProcessInstanceAbortDTO abort = new BpmnProcessInstanceAbortDTO();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user