Commit 2097ec1e authored by 赵啸非's avatar 赵啸非

修改部分pom

parent 40844127
......@@ -39,9 +39,9 @@ public class CompleteTaskReq extends BaseTaskReq implements Serializable {
private Map<String, Object> variables;
/**
* 任务参数 附件 选填
* 附件列表 附件 选填
*/
@ApiModelProperty(value = "任务参数")
@ApiModelProperty(value = "附件列表")
private List<AttachmentEntity> attachments;
......
package com.mortals.xhx.busiz.web;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.PageInfo;
......@@ -18,6 +19,7 @@ import com.mortals.xhx.feign.flowable.IApiFlowDefinitionFeign;
import com.mortals.xhx.feign.flowable.IApiFlowInstanceFeign;
import com.mortals.xhx.flowable.runtime.StartProcessInstanceReq;
import lombok.extern.apachecommons.CommonsLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
......@@ -38,7 +40,7 @@ import java.util.stream.Collectors;
* @date: 2021/8/24 20:28
*/
@RestController
@CommonsLog
@Slf4j
@RequestMapping("/api/definition")
public class FlowDefinitionApiController {
......@@ -60,6 +62,7 @@ public class FlowDefinitionApiController {
PageInfo page = new PageInfo();
page.setPrePageResult(-1);
DefinitionDeployRsp deployRsp = new DefinitionDeployRsp();
log.info("deploy req:{}", JSON.toJSONString(req));
try {
if (!ObjectUtils.isEmpty(req.getPage())) {
page.setPrePageResult(req.getPage().getPer() == 0 ? -1 : req.getPage().getPer());
......@@ -68,7 +71,10 @@ public class FlowDefinitionApiController {
ApiRespPdu<Result<FlowProcDefPdu>> resp = apiFlowDefinitionFeign.list( req.getQuery().getPlatformSn(), page);
if (YesNoEnum.NO.getValue() == resp.getCode()) {
log.error("获取流程定义列表异常:" + resp.getMsg());
throw new AppException("获取流程定义列表异常:" + resp.getMsg());
rsp.setCode(ApiRespCodeEnum.FAILED.getValue());
rsp.setMsg(resp.getMsg());
return rsp;
// throw new AppException("获取流程定义列表异常:" + resp.getMsg());
}
List<FlowProcDef> collect = resp.getData().getList().stream().map(item -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment