REQ-3982: fix bugs
This commit is contained in:
parent
163f40ca09
commit
cb144203ba
@ -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));
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user