|
|
@ -2,6 +2,7 @@ package com.zc.business.controller; |
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import com.ruoyi.common.config.RuoYiConfig; |
|
|
@ -100,6 +101,12 @@ public class DcEventProcessController extends BaseController |
|
|
|
@Log(title = "事件处理流程", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping |
|
|
|
public AjaxResult add(@RequestBody DcEventProcess dcEventProcess){ |
|
|
|
if (dcEventProcess.getProcessType() != null && dcEventProcess.getProcessType() == 1){ |
|
|
|
int status = dcEventProcessService.selectPreviousNodeStatus(dcEventProcess.getEventId(),dcEventProcess.getProcessId()); |
|
|
|
if (status < 1){ |
|
|
|
return AjaxResult.error("前置节点未点亮!"); |
|
|
|
} |
|
|
|
} |
|
|
|
return toAjax(dcEventProcessService.insertDcEventProcess(dcEventProcess)); |
|
|
|
} |
|
|
|
|
|
|
|