Browse Source

必需存在已下达的报价记录或询价金额大于0,才能提交

master
han\hanst 1 month ago
parent
commit
3f2e85d2cc
  1. 4
      src/main/java/com/spring/modules/quotation/service/impl/QuotationInformationServiceImpl.java

4
src/main/java/com/spring/modules/quotation/service/impl/QuotationInformationServiceImpl.java

@ -872,8 +872,8 @@ public class QuotationInformationServiceImpl extends ServiceImpl<QuotationInform
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,才能提交!");
}
}
}

Loading…
Cancel
Save