|
@@ -95,8 +95,9 @@ public class TFFlowController {
|
|
throw ExceptionResultEnum.ATTACHMENT_ERROR.exception();
|
|
throw ExceptionResultEnum.ATTACHMENT_ERROR.exception();
|
|
}
|
|
}
|
|
activitiService.uploadDeployment(file);
|
|
activitiService.uploadDeployment(file);
|
|
|
|
+ String actFlowId = tfFlowService.findActIdByFlowKey(SystemConstant.GDYKDX_FLOW_KEY);
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
- TFFlow tfFlow = new TFFlow(SystemConstant.getHeadOrUserSchoolId(), sysUser.getOrgId(), name, sysUser.getId(), fileName);
|
|
|
|
|
|
+ TFFlow tfFlow = new TFFlow(SystemConstant.getHeadOrUserSchoolId(), sysUser.getOrgId(), name, sysUser.getId(), fileName, actFlowId);
|
|
tfFlowService.save(tfFlow);
|
|
tfFlowService.save(tfFlow);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error("请求出错", e);
|
|
log.error("请求出错", e);
|
|
@@ -132,8 +133,8 @@ public class TFFlowController {
|
|
@ApiOperation(value = "流程逻辑删除")
|
|
@ApiOperation(value = "流程逻辑删除")
|
|
@ApiResponses({@ApiResponse(code = 200, message = "常规信息", response = ResultUtil.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "常规信息", response = ResultUtil.class)})
|
|
@RequestMapping(value = "/enable", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/enable", method = RequestMethod.POST)
|
|
- public Result enable() {
|
|
|
|
- return ResultUtil.ok(activitiService.flowDelete());
|
|
|
|
|
|
+ public Result enable(@ApiParam(value = "流程文件id", required = true) @RequestParam String id) {
|
|
|
|
+ return ResultUtil.ok(activitiService.flowDelete(SystemConstant.convertIdToLong(id)));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "流程列表")
|
|
@ApiOperation(value = "流程列表")
|