| | |
| | | /** |
| | | * 查询方案分类列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SchemeCategory schemeCategory) |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeCategory schemeCategory) |
| | | { |
| | | startPage(); |
| | | List<SchemeCategory> list = schemeCategoryService.selectSchemeCategoryList(schemeCategory); |
| | |
| | | /** |
| | | * 导出方案分类列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:export')") |
| | | @Log(title = "方案分类", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeCategory schemeCategory) |
| | |
| | | /** |
| | | * 获取方案分类详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * 新增方案分类 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:add')") |
| | | @Log(title = "方案分类", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeCategory schemeCategory) |
| | | { |
| | | return toAjax(schemeCategoryService.insertSchemeCategory(schemeCategory)); |
| | |
| | | /** |
| | | * 修改方案分类 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:edit')") |
| | | @Log(title = "方案分类", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeCategory schemeCategory) |
| | | { |
| | | return toAjax(schemeCategoryService.updateSchemeCategory(schemeCategory)); |
| | |
| | | /** |
| | | * 删除方案分类 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:remove')") |
| | | @Log(title = "方案分类", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(schemeCategoryService.deleteSchemeCategoryByIds(ids)); |