feat(REQ-3300) - 放开打印按钮的取值逻辑
This commit is contained in:
parent
ae46fdc096
commit
39fc04339c
@ -11,6 +11,7 @@ import com.alibaba.fastjson.JSON;
|
|||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author xudawei
|
* @author xudawei
|
||||||
@ -55,6 +56,9 @@ public class WorkflowGateway {
|
|||||||
|
|
||||||
@MethodAroundLog(target = "workflow-engine", source = "nanopart", value = "更新指定流程表单最后一次编辑的内容")
|
@MethodAroundLog(target = "workflow-engine", source = "nanopart", value = "更新指定流程表单最后一次编辑的内容")
|
||||||
public Boolean hasPrintTemplate(String processInstanceId) {
|
public Boolean hasPrintTemplate(String processInstanceId) {
|
||||||
|
if(!StringUtils.hasText(processInstanceId)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return workflowManageService.hasPrintTemplate(processInstanceId);
|
return workflowManageService.hasPrintTemplate(processInstanceId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user