Commit 2c6af911 authored by caotao's avatar caotao

1.新增驳回、接收、撤回接口修改提交

parent 3f428011
...@@ -24,7 +24,7 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType; ...@@ -24,7 +24,7 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
* @date 2023-12-13 * @date 2023-12-13
*/ */
@RestController @RestController
@Api(tags = "Api") @Api(tags = "检验业务申请单api")
@RequestMapping(value = "/jyjc-opening-application") @RequestMapping(value = "/jyjc-opening-application")
public class JyjcOpeningApplicationController extends BaseController { public class JyjcOpeningApplicationController extends BaseController {
......
...@@ -178,11 +178,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp ...@@ -178,11 +178,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
*/ */
public void stopFlow(String instanceId) { public void stopFlow(String instanceId) {
try { try {
AjaxResult ajaxResult = Workflow.taskClient.getTask(instanceId); //撤回流程
JSONObject dataObject = JSON.parseObject(JSON.toJSONString(ajaxResult.get("data"))); AjaxResult ajaxResult1 = Workflow.taskClient.stopProcess(instanceId);
String taskId = dataObject.getString("id");
//执行流程
AjaxResult ajaxResult1 = Workflow.taskClient.stopProcess(taskId);
if (ObjectUtils.isEmpty(ajaxResult1)) { if (ObjectUtils.isEmpty(ajaxResult1)) {
} }
......
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