| ÎļþÃû´Ó aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsPlanManagementController.java ÐÞ¸Ä |
| | |
| | | package com.aps.core.controller; |
| | | package com.aps.core.controller.mainPlan; |
| | | |
| | | import com.aps.common.core.utils.poi.ExcelUtil; |
| | | import com.aps.common.core.web.controller.BaseController; |
| | |
| | | */ |
| | | @Operation(summary = "导åºè®¡å管çå表", description = "导åº") |
| | | // @RequiresPermissions("aps:management:export") |
| | | @Log(title = "计å管ç", businessType = BusinessType.EXPORT) |
| | | @Log(title = "导åºè®¡å管çå表", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ApsPlanManagement apsPlanManagement) |
| | | { |
| | |
| | | */ |
| | | @Operation(summary = "æ°å¢è®¡å管ç", description = "å个æ°å¢") |
| | | // @RequiresPermissions("aps:management:add") |
| | | @Log(title = "计å管ç", businessType = BusinessType.INSERT) |
| | | @Log(title = "æ°å¢è®¡å管ç", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ApsPlanManagement apsPlanManagement) |
| | | { |
| | | return toAjax(apsPlanManagementService.insertApsPlanManagement(apsPlanManagement)); |
| | | apsPlanManagementService.insertApsPlanManagement(apsPlanManagement); |
| | | return toAjax(true); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Operation(summary = "ä¿®æ¹è®¡å管ç", description = "å个修æ¹") |
| | | // @RequiresPermissions("aps:management:edit") |
| | | @Log(title = "计å管ç", businessType = BusinessType.UPDATE) |
| | | @Log(title = "ä¿®æ¹è®¡å管ç", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ApsPlanManagement apsPlanManagement) |
| | | { |
| | | return toAjax(apsPlanManagementService.updateApsPlanManagement(apsPlanManagement)); |
| | | apsPlanManagementService.updateApsPlanManagement(apsPlanManagement); |
| | | return toAjax(true); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Operation(summary = "å é¤è®¡å管ç", description = "æ¹éå é¤") |
| | | // @RequiresPermissions("aps:management:remove") |
| | | @Log(title = "计å管ç", businessType = BusinessType.DELETE) |
| | | @Log(title = "å é¤è®¡å管ç", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(apsPlanManagementService.deleteApsPlanManagementByIds(ids)); |
| | | apsPlanManagementService.deleteApsPlanManagementByIds(ids); |
| | | return toAjax(true); |
| | | } |
| | | } |