| | |
| | | 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; |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void deleteCtc(Long id) { |
| | | // 校验存在 |
| | | validateCtcExists(id); |
| | |
| | | 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): |