提交 04f64939 authored 作者: kxjia's avatar kxjia

修改找不到ID的问题

上级 070bc6c0
......@@ -79,7 +79,7 @@ public class FlowDefinitionController {
return Result.OK("导入成功");
}
@GetMapping("/readXml/{deployId}")
@GetMapping("/readXml")
public Result readXml(@RequestParam(value = "deployId") String deployId) {
try {
return flowDefinitionService.readXml(deployId);
......@@ -89,7 +89,7 @@ public class FlowDefinitionController {
}
@GetMapping("/readXmlByDataId/{dataId}")
@GetMapping("/readXmlByDataId")
public Result readXmlByDataId(@RequestParam(value = "dataId") String dataId) {
try {
return flowDefinitionService.readXmlByDataId(dataId);
......@@ -99,7 +99,7 @@ public class FlowDefinitionController {
}
@GetMapping("/readImage/{deployId}")
@GetMapping("/readImage")
public void readImage(@RequestParam(value = "deployId") String deployId, HttpServletResponse response) {
OutputStream os = null;
BufferedImage image = null;
......@@ -125,7 +125,7 @@ public class FlowDefinitionController {
}
@GetMapping("/readImageByDataId/{dataId}")
@GetMapping("/readImageByDataId")
public void readImageByDataId(@RequestParam(value = "dataId") String dataId, HttpServletResponse response) {
OutputStream os = null;
BufferedImage image = null;
......@@ -174,20 +174,20 @@ public class FlowDefinitionController {
return Result.OK("导入成功");
}
@PostMapping("/startByProcDefId/{procDefId}")
@PostMapping("/startByProcDefId")
public Result startByProcDefId(@RequestParam(value = "procDefId") String procDefId,
@RequestBody Map<String, Object> variables) {
return flowDefinitionService.startProcessInstanceById(procDefId, variables);
}
@PostMapping("/startByProcDefKey/{procDefKey}")
@PostMapping("/startByProcDefKey")
public Result startByProcDefKey(@RequestParam(value = "procDefKey") String procDefKey,
@RequestBody Map<String, Object> variables) {
return flowDefinitionService.startProcessInstanceByKey(procDefKey, variables);
}
@PostMapping("/startByDataId/{dataId}")
@PostMapping("/startByDataId")
public Result startByDataId(@RequestParam(value = "dataId") String dataId,
@RequestBody Map<String, Object> variables) {
variables.put("dataId",dataId);
......@@ -249,7 +249,7 @@ public class FlowDefinitionController {
return Result.OK(arylist);
}
@PostMapping("/startByDeployId/{deployId}")
@PostMapping("/startByDeployId")
public Result startByDeployId(@RequestParam(value = "deployId") String deployId,
@RequestBody Map<String, Object> variables) {
return flowDefinitionService.startProcessInstanceByDeployId(deployId, variables);
......
......@@ -53,7 +53,7 @@ public class FlowInstanceController {
return Result.OK();
}
@DeleteMapping(value = "/delete/{instanceIds}")
@DeleteMapping(value = "/delete")
public Result delete(@PathVariable String[] instanceIds,
@RequestParam(required = false) String deleteReason) {
for (String instanceId : instanceIds) {
......
......@@ -69,7 +69,7 @@ public class FlowTaskController {
}
*/
@GetMapping(value = "/processVariables/{taskId}")
@GetMapping(value = "/processVariables")
public Result processVariables(@PathVariable(value = "taskId") String taskId) {
return flowTaskService.processVariables(taskId);
}
......@@ -158,7 +158,7 @@ public class FlowTaskController {
return flowTaskService.getNextFlowNodeByStart(flowTaskVo);
}
@RequestMapping("/diagram/{processId}")
@RequestMapping("/diagram")
public void genProcessDiagram(HttpServletResponse response,
@PathVariable("processId") String processId) {
InputStream inputStream = flowTaskService.diagram(processId);
......@@ -190,7 +190,7 @@ public class FlowTaskController {
*
* @param procInsId 任务ID
*/
@RequestMapping("/flowViewer/{procInsId}")
@RequestMapping("/flowViewer")
public Result getFlowViewer(@PathVariable("procInsId") String procInsId) {
return Result.OK(flowTaskService.getFlowViewer(procInsId));
}
......@@ -199,7 +199,7 @@ public class FlowTaskController {
*
* @param dataId 任务数据ID
*/
@RequestMapping("/flowViewerByDataId/{dataId}")
@RequestMapping("/flowViewerByDataId")
public Result getFlowViewerByDataId(@PathVariable("dataId") String dataId) {
return Result.OK(flowTaskService.getFlowViewerByDataId(dataId));
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论