REQ-3982: fix bugs

This commit is contained in:
yanglin 2025-04-25 16:44:54 +08:00
parent 163f40ca09
commit cb144203ba
2 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ public class VisaDetailByIdResponse {
return buttons.stream().anyMatch(button -> button.type == type);
}
public void removeButtonOfType(WorkflowButtonType... types) {
public void removeButtonsOfType(WorkflowButtonType... types) {
if (buttons == null || types.length == 0) return;
HashSet<WorkflowButtonType> typesSet = Sets.newHashSet(types);
buttons.removeIf(button -> typesSet.contains(button.type));

View File

@ -109,7 +109,7 @@ public class DetailCardBuilder {
if (!workflowGateway.hasPrintTemplate(detail.getWorkflowInstanceId())) {
log.info("没有打印模版, 去掉打印/用印相关按钮. workflowInstanceId={}", detail.getWorkflowInstanceId());
detail.removeButtonOfType(WorkflowButtonType.PRINT, //
detail.removeButtonsOfType(WorkflowButtonType.PRINT, //
WorkflowButtonType.STAMP_PROGRESS, //
WorkflowButtonType.REQUEST_STAMP);
}