|
@@ -156,7 +156,7 @@ public class TFCustomFlowController {
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = FlowViewResult.class)})
|
|
|
public Result flowView(@ApiParam(value = "流程id") @RequestParam(required = false) Long flowId,
|
|
|
@ApiParam(value = "流程编号") @RequestParam(required = false) String code) {
|
|
|
- if (Objects.isNull(flowId) || Objects.isNull(code)) {
|
|
|
+ if (Objects.isNull(flowId) && Objects.isNull(code)) {
|
|
|
throw ExceptionResultEnum.PARAMS_ERROR.exception();
|
|
|
}
|
|
|
return ResultUtil.ok(activitiService.flowView(flowId, code));
|