From a9f55fb1ab24f43fee70b16e1a8c58a33fc59fa6 Mon Sep 17 00:00:00 2001 From: zhanghl <253316343@qq.com> Date: 星期二, 13 五月 2025 18:12:14 +0800 Subject: [PATCH] 钣金工单计划管理:新增 查看上下阶需求接口 --- aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlateProcessShopStatController.java | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlateProcessShopStatController.java b/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlateProcessShopStatController.java index 687fc25..d1d0613 100644 --- a/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlateProcessShopStatController.java +++ b/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlateProcessShopStatController.java @@ -9,6 +9,8 @@ import com.aps.common.security.annotation.RequiresPermissions; import com.aps.core.domain.ApsPlateProcessShopStat; import com.aps.core.service.IApsPlateProcessShopStatService; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -22,9 +24,9 @@ * @date 2025-04-23 */ - +@Tag(name = "閽i噾璁″垝澶ц〃", description = "閽i噾璁″垝澶ц〃鎺ュ彛") @RestController -@RequestMapping("/ApsPlateProcessShopStat") +@RequestMapping("/plateProcessShopStat") public class ApsPlateProcessShopStatController extends BaseController { @Autowired @@ -34,15 +36,13 @@ /** * 瀵煎嚭閽i噾杞﹂棿缁熻鍒楄〃 */ - - @RequiresPermissions("ApsPlateProcessShopStat:ApsPlateProcessShopStat:export") + @Operation(summary = "閽i噾璁″垝澶ц〃", description = "瀵煎嚭鍔熻兘") @Log(title = "閽i噾杞﹂棿缁熻", businessType = BusinessType.EXPORT) + @RequiresPermissions("plateProcessShopStat:export") @PostMapping("/export") public void export(HttpServletResponse response, ApsPlateProcessShopStat apsPlateProcessShopStat) { - List<ApsPlateProcessShopStat> list = apsPlateProcessShopStatService.selectApsPlateProcessShopStatList(apsPlateProcessShopStat); - ExcelUtil<ApsPlateProcessShopStat> util = new ExcelUtil<ApsPlateProcessShopStat>(ApsPlateProcessShopStat.class); - util.exportExcel(response, list, "閽i噾杞﹂棿缁熻鏁版嵁"); + apsPlateProcessShopStatService.exportExcel(response); } @@ -50,10 +50,11 @@ * 淇敼閽i噾杞﹂棿缁熻 */ - + @Operation(summary = "閽i噾璁″垝澶ц〃", description = "鏇存柊缁熻鏁版嵁") @Log(title = "閽i噾杞﹂棿缁熻", businessType = BusinessType.UPDATE) + @RequiresPermissions("plateProcessShopStat:update") @PostMapping("/update") - public AjaxResult update(@RequestBody ApsPlateProcessShopStat apsPlateProcessShopStat) + public AjaxResult update() { apsPlateProcessShopStatService.saveShopStat(); return toAjax(true); @@ -62,10 +63,10 @@ /** * 鏌ヨ閽i噾杞﹂棿缁熻鍒楄〃 */ - - + @RequiresPermissions("plateProcessShopStat:list") + @Operation(summary = "閽i噾璁″垝澶ц〃", description = "鑾峰彇缁熻鏁版嵁") @GetMapping("/list") - public AjaxResult list(ApsPlateProcessShopStat apsPlateProcessShopStat) + public AjaxResult list() { return apsPlateProcessShopStatService.getShopPlanStat(); -- Gitblit v1.9.3