update
This commit is contained in:
parent
bf461d7880
commit
d09ad1f29a
|
@ -152,13 +152,16 @@ public class WorkFlowService extends BaseService<WorkFlowMapper, WorkFlow> {
|
|||
switch (vo.getStatus()) {
|
||||
case "PASS":
|
||||
// 4.1 同意
|
||||
workFlow.setData(vo.getData());
|
||||
return workFlowTypeFactory.getWorkFlowType(workFlow.getType()).execute(vo, workFlow);
|
||||
case "REFUSE":
|
||||
//4.2 驳回
|
||||
workFlow.setData(vo.getData());
|
||||
return this.refuse(workFlow, vo.getRemarks());
|
||||
case "SUBMIT":
|
||||
// 4.3 提交
|
||||
if (StrUtil.isBlank(vo.getData())) return AjaxResult.fail("表单数据不能为空");
|
||||
workFlow.setData(vo.getData());
|
||||
if (workFlow.getStep() == 1) {
|
||||
// 4.3.1 如果是第一步,则修改流程提交数据
|
||||
workFlow.setData(vo.getData());
|
||||
|
@ -182,6 +185,7 @@ public class WorkFlowService extends BaseService<WorkFlowMapper, WorkFlow> {
|
|||
return workFlowTypeFactory.getWorkFlowType(workFlow.getType()).execute(vo, workFlow);
|
||||
case "REFUSE_SUPERIOR":
|
||||
// 4.4 驳回上级
|
||||
workFlow.setData(vo.getData());
|
||||
return this.refuseSuperior(workFlow, vo.getRemarks());
|
||||
default:
|
||||
return AjaxResult.fail("执行状态类型错误");
|
||||
|
|
Loading…
Reference in New Issue