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

修改找不到ID的问题

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