文件名从 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); |
| | | } |
| | | } |