feat(REQ-3300) - 完善不显示横条的逻辑

This commit is contained in:
wangli 2025-02-08 17:22:08 +08:00
parent 74989c04aa
commit 2ada1a4031

View File

@ -219,6 +219,7 @@ public class ChangeRecordRelationServiceImpl extends ServiceImpl<ChangeRecordRel
.visaId(req.getVisaId())
.varName(VisaRelationFieldEnum.IM_GROUP_PARTICIPATE.getCode())
.build());
List<ImGroupButton> buttons = new ArrayList<>();
if (Boolean.TRUE.equals(req.getIsGroupOwner())) {
Map<String, Long> countMap = imGroupParticipate.stream()
@ -289,6 +290,10 @@ public class ChangeRecordRelationServiceImpl extends ServiceImpl<ChangeRecordRel
.type(VisaButtonTypeEnum.REJECT.getCode())
.build());
}
} else {
// 不显示横条
resp.setStatus(null);
resp.setTipsText(null);
}
resp.setButtonList(buttons);
return resp;