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