update 调整分类接口
This commit is contained in:
parent
e9ed89a367
commit
bb33a29fb3
@ -1,12 +1,11 @@
|
|||||||
package org.dromara.workflow.controller;
|
package org.dromara.workflow.controller;
|
||||||
|
|
||||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||||
|
import cn.hutool.core.lang.tree.Tree;
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.dromara.common.core.constant.SystemConstants;
|
|
||||||
import org.dromara.common.core.domain.R;
|
import org.dromara.common.core.domain.R;
|
||||||
import org.dromara.common.core.utils.StringUtils;
|
|
||||||
import org.dromara.common.core.validate.AddGroup;
|
import org.dromara.common.core.validate.AddGroup;
|
||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
import org.dromara.common.excel.utils.ExcelUtil;
|
import org.dromara.common.excel.utils.ExcelUtil;
|
||||||
@ -118,4 +117,16 @@ public class FlwCategoryController extends BaseController {
|
|||||||
return toAjax(flwCategoryService.deleteWithValidById(categoryId));
|
return toAjax(flwCategoryService.deleteWithValidById(categoryId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取流程分类树列表
|
||||||
|
*
|
||||||
|
* @param categoryBo 参数
|
||||||
|
*/
|
||||||
|
@GetMapping("/categoryTree")
|
||||||
|
public R<List<Tree<Long>>> categoryTree(FlowCategoryBo categoryBo) {
|
||||||
|
return R.ok(flwCategoryService.selectCategoryTreeList(categoryBo));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package org.dromara.workflow.controller;
|
package org.dromara.workflow.controller;
|
||||||
|
|
||||||
import cn.hutool.core.lang.tree.Tree;
|
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.dromara.common.core.domain.R;
|
import org.dromara.common.core.domain.R;
|
||||||
@ -13,9 +12,7 @@ import org.dromara.common.web.core.BaseController;
|
|||||||
import org.dromara.warm.flow.core.entity.Definition;
|
import org.dromara.warm.flow.core.entity.Definition;
|
||||||
import org.dromara.warm.flow.core.service.DefService;
|
import org.dromara.warm.flow.core.service.DefService;
|
||||||
import org.dromara.warm.flow.orm.entity.FlowDefinition;
|
import org.dromara.warm.flow.orm.entity.FlowDefinition;
|
||||||
import org.dromara.workflow.domain.bo.FlowCategoryBo;
|
|
||||||
import org.dromara.workflow.domain.vo.FlowDefinitionVo;
|
import org.dromara.workflow.domain.vo.FlowDefinitionVo;
|
||||||
import org.dromara.workflow.service.IFlwCategoryService;
|
|
||||||
import org.dromara.workflow.service.IFlwDefinitionService;
|
import org.dromara.workflow.service.IFlwDefinitionService;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
@ -35,8 +32,6 @@ import java.util.List;
|
|||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/workflow/definition")
|
@RequestMapping("/workflow/definition")
|
||||||
public class FlwDefinitionController extends BaseController {
|
public class FlwDefinitionController extends BaseController {
|
||||||
|
|
||||||
private final IFlwCategoryService flwCategoryService;
|
|
||||||
private final IFlwDefinitionService flwDefinitionService;
|
private final IFlwDefinitionService flwDefinitionService;
|
||||||
private final DefService defService;
|
private final DefService defService;
|
||||||
|
|
||||||
@ -50,16 +45,6 @@ public class FlwDefinitionController extends BaseController {
|
|||||||
return flwDefinitionService.queryList(flowDefinition, pageQuery);
|
return flwDefinitionService.queryList(flowDefinition, pageQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取流程分类树列表
|
|
||||||
*
|
|
||||||
* @param categoryBo 参数
|
|
||||||
*/
|
|
||||||
@GetMapping("/categoryTree")
|
|
||||||
public R<List<Tree<Long>>> categoryTree(FlowCategoryBo categoryBo) {
|
|
||||||
return R.ok(flwCategoryService.selectCategoryTreeList(categoryBo));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取历史流程定义列表
|
* 获取历史流程定义列表
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user