xiaoyi
11 小时以前 25b0112f14f27e7358b19aabf552b6453eb61c73
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);
        }
        // 盘具容量公式(参照需求文档盘具计算 sheet):