| | |
| | | import com.aps.common.core.web.page.TableDataInfo; |
| | | import com.aps.common.log.annotation.Log; |
| | | import com.aps.common.log.enums.BusinessType; |
| | | import com.aps.common.security.annotation.RequiresPermissions; |
| | | import com.aps.core.domain.ApsPlanCycle; |
| | | import com.aps.core.domain.ApsPlanManagement; |
| | | import com.aps.core.service.IApsPlanManagementService; |
| | |
| | | /** |
| | | * 计划管理Controller |
| | | * |
| | | * @author ruoyi |
| | | * @author sfd |
| | | * @date 2025-05-13 |
| | | */ |
| | | |
| | |
| | | * 查询计划管理列表 |
| | | */ |
| | | @Operation(summary = "查询计划管理列表", description = "分页查询") |
| | | @RequiresPermissions("aps:management:list") |
| | | // @RequiresPermissions("aps:management:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ApsPlanManagement apsPlanManagement) |
| | | { |
| | |
| | | * 导出计划管理列表 |
| | | */ |
| | | @Operation(summary = "导出计划管理列表", description = "导出") |
| | | @RequiresPermissions("aps:management:export") |
| | | // @RequiresPermissions("aps:management:export") |
| | | @Log(title = "计划管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ApsPlanManagement apsPlanManagement) |
| | |
| | | * 获取计划管理详细信息 |
| | | */ |
| | | @Operation(summary = "获取计划管理详细信息", description = "根据id获取") |
| | | @RequiresPermissions("aps:management:query") |
| | | // @RequiresPermissions("aps:management:query") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | * 新增计划管理 |
| | | */ |
| | | @Operation(summary = "新增计划管理", description = "单个新增") |
| | | @RequiresPermissions("aps:management:add") |
| | | // @RequiresPermissions("aps:management:add") |
| | | @Log(title = "计划管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ApsPlanManagement apsPlanManagement) |
| | |
| | | * 修改计划周期管理 |
| | | */ |
| | | @Operation(summary = "修改计划周期管理", description = "修改计划周期管理") |
| | | @RequiresPermissions("aps:planCycle:edit") |
| | | // @RequiresPermissions("aps:planCycle:edit") |
| | | @Log(title = "修改计划周期管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping("cycle") |
| | | public AjaxResult edit(@RequestBody ApsPlanCycle apsPlanCycle) |
| | |
| | | * 修改计划管理 |
| | | */ |
| | | @Operation(summary = "修改计划管理", description = "单个修改") |
| | | @RequiresPermissions("aps:management:edit") |
| | | // @RequiresPermissions("aps:management:edit") |
| | | @Log(title = "计划管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ApsPlanManagement apsPlanManagement) |
| | |
| | | * 删除计划管理 |
| | | */ |
| | | @Operation(summary = "删除计划管理", description = "批量删除") |
| | | @RequiresPermissions("aps:management:remove") |
| | | // @RequiresPermissions("aps:management:remove") |
| | | @Log(title = "计划管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |