feat(REQ-3300) - 放开打印按钮的取值逻辑

This commit is contained in:
wangli 2025-02-24 20:07:21 +08:00
parent ae46fdc096
commit 39fc04339c

View File

@ -11,6 +11,7 @@ import com.alibaba.fastjson.JSON;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
/**
* @author xudawei
@ -55,6 +56,9 @@ public class WorkflowGateway {
@MethodAroundLog(target = "workflow-engine", source = "nanopart", value = "更新指定流程表单最后一次编辑的内容")
public Boolean hasPrintTemplate(String processInstanceId) {
if(!StringUtils.hasText(processInstanceId)) {
return false;
}
return workflowManageService.hasPrintTemplate(processInstanceId);
}
}