|
|
|
@ -70,7 +70,11 @@ public class QuotationHeaderServerImpl extends ServiceImpl<QuotationHeaderMapper |
|
|
|
} |
|
|
|
return R.error("保存失败").put("code",500); |
|
|
|
} |
|
|
|
QuotationInformationVo informationVo = quotationInformationService.searchQuotationByQuotationNo(quotationHeader.getSite(), quotationHeader.getInternalInquiryNo()).get(0); |
|
|
|
List<QuotationInformationVo> list = quotationInformationService.searchQuotationByQuotationNo(quotationHeader.getSite(), quotationHeader.getInternalInquiryNo()); |
|
|
|
if (null == list){ |
|
|
|
throw new RuntimeException("该询价单号不存在"); |
|
|
|
} |
|
|
|
QuotationInformationVo informationVo = list.get(0); |
|
|
|
quotationHeader.setInternalInquiryNo(informationVo.getQuotationBatchNo().toUpperCase());; |
|
|
|
boolean saveFlag = save(quotationHeader); |
|
|
|
QuotationDetail detail = new QuotationDetail(); |
|
|
|
|