Browse Source

2026-02-28

优化
master
fengyuan_yang 2 days ago
parent
commit
6f05a5bbf6
  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

@ -781,10 +781,10 @@ public class QuotationInformationServiceImpl extends ServiceImpl<QuotationInform
QuotationInformationEntity current = quotationInformationMapper.selectOne( QuotationInformationEntity current = quotationInformationMapper.selectOne(
new QueryWrapper<QuotationInformationEntity>() new QueryWrapper<QuotationInformationEntity>()
.eq("site", data.getSite()) .eq("site", data.getSite())
.eq("quotation_batch_no", data.getQuotationBatchNo())
.eq("quotation_no", data.getQuotationNo())
); );
if (current == null) { if (current == null) {
throw new RuntimeException("未找到单据,quotationBatchNo: " + data.getQuotationBatchNo());
throw new RuntimeException("未找到单据,quotationNo: " + data.getQuotationNo());
} }
if (!"审批中".equals(current.getQuotationStatus())) { if (!"审批中".equals(current.getQuotationStatus())) {
throw new RuntimeException("单据状态已变更(当前状态:" + current.getQuotationStatus() + "),请刷新页面后重试!"); throw new RuntimeException("单据状态已变更(当前状态:" + current.getQuotationStatus() + "),请刷新页面后重试!");

Loading…
Cancel
Save