From 1c61a282a831cea285ddb503bdb810df9250b191 Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期五, 23 五月 2025 16:44:27 +0800
Subject: [PATCH] [钣金计划大表] 增加分布式锁
---
aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlate/ApsPlateProcessShopStatController.java | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlate/ApsPlateProcessShopStatController.java b/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlate/ApsPlateProcessShopStatController.java
index 931dbc8..74218eb 100644
--- a/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlate/ApsPlateProcessShopStatController.java
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlate/ApsPlateProcessShopStatController.java
@@ -6,9 +6,11 @@
import com.aps.common.log.enums.BusinessType;
import com.aps.common.security.annotation.RequiresPermissions;
import com.aps.core.domain.ApsPlate.ApsPlateProcessShopStat;
+import com.aps.core.service.ApsPlanTaskService;
import com.aps.core.service.ApsPlate.IApsPlateProcessShopStatService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -27,7 +29,8 @@
{
@Autowired
private IApsPlateProcessShopStatService apsPlateProcessShopStatService;
-
+ @Resource
+ ApsPlanTaskService apsPlanTaskService;
/**
* 瀵煎嚭閽i噾杞﹂棿缁熻鍒楄〃
@@ -48,13 +51,13 @@
@Operation(summary = "閽i噾璁″垝澶ц〃", description = "鏇存柊缁熻鏁版嵁")
@Log(title = "閽i噾杞﹂棿缁熻", businessType = BusinessType.UPDATE)
- @RequiresPermissions("plateProcessShopStat:update")
+ //@RequiresPermissions("plateProcessShopStat:update")
@PostMapping("/update")
public AjaxResult update()
{
try {
- apsPlateProcessShopStatService.saveShopStat();
- return toAjax(true);
+
+ return apsPlanTaskService.generatorPlatePlanTable();
} catch (Exception e) {
return AjaxResult.error("鏇存柊澶辫触锛�"+e.getMessage());
}
--
Gitblit v1.9.3