Commit 87f36cab483d6a8192542ea5cea48334c008d3be
1 parent
762fcf30
工单管理代码提交
Showing
1 changed file
with
3 additions
and
1 deletions
urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/garden/BpmGardenServiceImpl.java
| @@ -77,7 +77,9 @@ public class BpmGardenServiceImpl implements BpmGardenService{ | @@ -77,7 +77,9 @@ public class BpmGardenServiceImpl implements BpmGardenService{ | ||
| 77 | attachmentApend(imgList,null,longRangeImgList,workOrder); | 77 | attachmentApend(imgList,null,longRangeImgList,workOrder); |
| 78 | // 发起 BPM 流程 | 78 | // 发起 BPM 流程 |
| 79 | Map<String, Object> processInstanceVariables = new HashMap<>(); | 79 | Map<String, Object> processInstanceVariables = new HashMap<>(); |
| 80 | - processInstanceVariables.put("remark", workOrder.getRemark()); | 80 | + processInstanceVariables.put("workOrder", workOrder); |
| 81 | + processInstanceVariables.put("imgList", imgList); | ||
| 82 | + processInstanceVariables.put("longRangeImgList", longRangeImgList); | ||
| 81 | String processInstanceId = processInstanceApi.createProcessInstance(SecurityFrameworkUtils.getLoginUserId(), | 83 | String processInstanceId = processInstanceApi.createProcessInstance(SecurityFrameworkUtils.getLoginUserId(), |
| 82 | new BpmProcessInstanceCreateReqDTO().setProcessDefinitionKey(BpmCommonConstant.COMMON_QUICK_PROCESS) | 84 | new BpmProcessInstanceCreateReqDTO().setProcessDefinitionKey(BpmCommonConstant.COMMON_QUICK_PROCESS) |
| 83 | .setVariables(processInstanceVariables).setBusinessKey(String.valueOf(workOrder.getId()))); | 85 | .setVariables(processInstanceVariables).setBusinessKey(String.valueOf(workOrder.getId()))); |