From 25b0112f14f27e7358b19aabf552b6453eb61c73 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期一, 24 八月 2026 16:32:19 +0800
Subject: [PATCH] feat 功能修正

---
 yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/pd/ctc/ProductCtcServiceImpl.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/pd/ctc/ProductCtcServiceImpl.java b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/pd/ctc/ProductCtcServiceImpl.java
index 6b268e7..f005287 100644
--- a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/pd/ctc/ProductCtcServiceImpl.java
+++ b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/pd/ctc/ProductCtcServiceImpl.java
@@ -9,6 +9,7 @@
 import cn.iocoder.yudao.module.mes.service.pd.reel.ProductCtcReelService;
 import jakarta.annotation.Resource;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
 import org.springframework.validation.annotation.Validated;
 
 import java.math.BigDecimal;
@@ -62,6 +63,7 @@
     }
 
     @Override
+    @Transactional(rollbackFor = Exception.class)
     public void deleteCtc(Long id) {
         // 鏍¢獙瀛樺湪
         validateCtcExists(id);
@@ -144,7 +146,7 @@
         double l2 = reqVO.getReelWidth().doubleValue();
         double ct = reqVO.getCtcThickness().doubleValue();
         double cw = reqVO.getCtcWidth().doubleValue();
-        if (d1 <= d2 || l2 <= 0 || ct <= 0 || cw <= 0) {
+        if (d1 - 70 <= d2 || l2 <= 0 || ct <= 0 || cw <= 0) {
             throw exception(PD_CTC_CALC_PARAM_INVALID);
         }
         // 鐩樺叿瀹归噺鍏紡锛堝弬鐓ч渶姹傛枃妗g洏鍏疯绠� sheet锛夛細

--
Gitblit v1.9.3