| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.flowable.engine.TaskService; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.support.Kv; |
| | | import org.springblade.core.tool.utils.Func; |
| | |
| | | if (StringUtil.isNoneBlank(processInstanceId, comment)) { |
| | | taskService.addComment(taskId, processInstanceId, comment); |
| | | } |
| | | |
| | | |
| | | // 非空判断 |
| | | if (Func.isEmpty(variables)) { |
| | | variables = Kv.create(); |
| | | } |
| | | //加入审批用户 |
| | | variables.put("approveUserNickName",AuthUtil.getNickName()); |
| | | if(variables.containsKey("assignee")){ |
| | | //指定了下一步执行人 |
| | | taskService.complete(taskId, variables); |
| | |
| | | } |
| | | |
| | | @GetMapping("/lazy-list") |
| | | @Parameters({ |
| | | @Parameter(name = "deptName", description = "部门名称", in = ParameterIn.QUERY, schema = @Schema(type = "string")), |
| | | @Parameter(name = "fullName", description = "部门全称", in = ParameterIn.QUERY, schema = @Schema(type = "string")) |
| | | }) |
| | | |
| | | @Operation(summary = "懒加载列表", description = "程序目录树形结构") |
| | | public R<List<NcNodeVO>> lazyList(Long parentId) { |
| | | List<NcNodeVO> list = ncNodeService.lazyList(parentId); |
| | |
| | | `update_time` datetime DEFAULT NULL COMMENT '更新时间', |
| | | `update_user` bigint DEFAULT NULL COMMENT '更新人', |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | UNIQUE KEY `uniqueNameIndex` (`name`,`is_deleted`) USING BTREE |
| | | UNIQUE KEY `uniqueNameIndex` (`parent_id`,`name`,`is_deleted`) USING BTREE |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='程序节点目录'; |
| | | |
| | | DROP TABLE IF EXISTS `mdm_nc_program`; |