|
|
@ -872,8 +872,8 @@ public class QuotationInformationServiceImpl extends ServiceImpl<QuotationInform |
|
|
int count = baseMapper.queryQuotationByQuotationBatchNo(site,quotationBatchNo); |
|
|
int count = baseMapper.queryQuotationByQuotationBatchNo(site,quotationBatchNo); |
|
|
|
|
|
|
|
|
// 不相等即条目不匹配,有询价单号未产生报价 |
|
|
// 不相等即条目不匹配,有询价单号未产生报价 |
|
|
if (count != quoteList.size() || quotationAmount.compareTo(BigDecimal.ZERO) < 0) { |
|
|
|
|
|
throw new RuntimeException("该询价单的报价明细不全或询价金额小于0,不能提交!"); |
|
|
|
|
|
|
|
|
if (count != quoteList.size() && quotationAmount.compareTo(BigDecimal.ZERO) < 0) { |
|
|
|
|
|
throw new RuntimeException("必需存在已下达的报价记录或询价金额大于0,才能提交!"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|