From 461cd46e1dcdcb47549b63136f074cbe5f1a5ce2 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Fri, 9 May 2025 09:57:22 +0800 Subject: [PATCH] 2025-05-06 --- .../impl/QuotationInformationServiceImpl.java | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/main/java/com/spring/modules/quotation/service/impl/QuotationInformationServiceImpl.java b/src/main/java/com/spring/modules/quotation/service/impl/QuotationInformationServiceImpl.java index b1b1b58b..d229a8d5 100644 --- a/src/main/java/com/spring/modules/quotation/service/impl/QuotationInformationServiceImpl.java +++ b/src/main/java/com/spring/modules/quotation/service/impl/QuotationInformationServiceImpl.java @@ -608,28 +608,28 @@ public class QuotationInformationServiceImpl extends ServiceImpl quoteList = baseMapper.queryQuoteByQuotationBatchNo(data.getSite(),data.getQuotationBatchNo()); - - // 查询改询价批次号的询价条数 - int count = baseMapper.queryQuotationByQuotationBatchNo(data.getSite(),data.getQuotationBatchNo()); - - // 不相等即条目不匹配,有询价单号未产生报价 - if (count != quoteList.size()){ - throw new RuntimeException("该询价单的已下达报价明细不全,不能下达"); - } - List list = lambdaQuery() - .eq(QuotationInformationEntity::getSite, data.getSite()) - .eq(QuotationInformationEntity::getQuotationBatchNo, data.getQuotationBatchNo()) - .list(); - QuotationInformationEntity entity = list.get(0); - if (Objects.isNull(entity)) { - throw new RuntimeException("询价单不存在"); - } -// if (Objects.isNull(entity.getQuotationAmount()) || entity.getQuotationAmount().compareTo(BigDecimal.ZERO) <= 0) { - if (Objects.isNull(entity.getQuotationAmount()) ) { -// throw new RuntimeException("询价金额不能为空或者小于等于0!"); - throw new RuntimeException("询价金额不能为空"); - } +// List quoteList = baseMapper.queryQuoteByQuotationBatchNo(data.getSite(),data.getQuotationBatchNo()); +// +// // 查询改询价批次号的询价条数 +// int count = baseMapper.queryQuotationByQuotationBatchNo(data.getSite(),data.getQuotationBatchNo()); +// +// // 不相等即条目不匹配,有询价单号未产生报价 +// if (count != quoteList.size()){ +// throw new RuntimeException("该询价单的已下达报价明细不全,不能下达"); +// } +// List list = lambdaQuery() +// .eq(QuotationInformationEntity::getSite, data.getSite()) +// .eq(QuotationInformationEntity::getQuotationBatchNo, data.getQuotationBatchNo()) +// .list(); +// QuotationInformationEntity entity = list.get(0); +// if (Objects.isNull(entity)) { +// throw new RuntimeException("询价单不存在"); +// } +//// if (Objects.isNull(entity.getQuotationAmount()) || entity.getQuotationAmount().compareTo(BigDecimal.ZERO) <= 0) { +// if (Objects.isNull(entity.getQuotationAmount()) ) { +//// throw new RuntimeException("询价金额不能为空或者小于等于0!"); +// throw new RuntimeException("询价金额不能为空"); +// } // 关闭调用OA接口时 if (!dataUrlOa) { data.setQuotationStatus("审批中");