| | |
| | | * 查询管理计划列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeplan:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SchemePlan schemePlan) |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemePlan schemePlan) |
| | | { |
| | | startPage(); |
| | | List<SchemePlan> list = schemePlanService.selectSchemePlanList(schemePlan); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeplan:add')") |
| | | @Log(title = "管理计划", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemePlan schemePlan) |
| | | { |
| | | return toAjax(schemePlanService.insertSchemePlan(schemePlan)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeplan:edit')") |
| | | @Log(title = "管理计划", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemePlan schemePlan) |
| | | { |
| | | return toAjax(schemePlanService.updateSchemePlan(schemePlan)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeplan:remove')") |
| | | @Log(title = "管理计划", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(schemePlanService.deleteSchemePlanByIds(ids)); |