feat(bid): 完成物料分类体系全功能开发
1. 新增物料分类删除校验,支持校验子分类和关联物料 2. 优化物料列表查询,支持按分类及其后代分类筛选 3. 重构物料详情和编辑页面,使用级联选择器选择分类 4. 新增分类管理页面,支持增删改查分类树形结构 5. 新增物料分类初始化SQL脚本,导入标准分类体系
This commit is contained in:
@@ -33,6 +33,10 @@ public class BizMaterialCategoryController extends BaseController {
|
||||
|
||||
@DeleteMapping("/{categoryId}")
|
||||
public AjaxResult remove(@PathVariable Long categoryId) {
|
||||
return toAjax(service.deleteCategory(categoryId));
|
||||
try {
|
||||
return toAjax(service.deleteCategory(categoryId));
|
||||
} catch (Exception e) {
|
||||
return AjaxResult.error(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user