|
|
@ -210,6 +210,9 @@ public class QuoteServiceImpl extends ServiceImpl<QuoteMapper, Quote> implements |
|
|
public List<Long> batchSaveQuoteByQuotation(List<QuotationInformationVo> list) { |
|
|
public List<Long> batchSaveQuoteByQuotation(List<QuotationInformationVo> list) { |
|
|
List<Long> ids = new ArrayList<>();// 获取保存成功的报价单ID |
|
|
List<Long> ids = new ArrayList<>();// 获取保存成功的报价单ID |
|
|
for (QuotationInformationVo quotation : list) { |
|
|
for (QuotationInformationVo quotation : list) { |
|
|
|
|
|
if (Objects.isNull(quotation.getCurrency())){ |
|
|
|
|
|
throw new RuntimeException("币种不能为空"); |
|
|
|
|
|
} |
|
|
if (Objects.isNull(quotation.getQty())){ |
|
|
if (Objects.isNull(quotation.getQty())){ |
|
|
throw new RuntimeException("数量不能为空"); |
|
|
throw new RuntimeException("数量不能为空"); |
|
|
} |
|
|
} |
|
|
@ -313,7 +316,7 @@ public class QuoteServiceImpl extends ServiceImpl<QuoteMapper, Quote> implements |
|
|
detail.setCalculatedItems("工具,测试,其他,包装,运输"); |
|
|
detail.setCalculatedItems("工具,测试,其他,包装,运输"); |
|
|
detail.setMoq(""); |
|
|
detail.setMoq(""); |
|
|
// 添加币种字段 |
|
|
// 添加币种字段 |
|
|
|
|
|
|
|
|
|
|
|
detail.setCurrency1(quotation.getCurrency()); |
|
|
// 复制detail到Group |
|
|
// 复制detail到Group |
|
|
QuoteGroupDetail groupDetail = new QuoteGroupDetail(); |
|
|
QuoteGroupDetail groupDetail = new QuoteGroupDetail(); |
|
|
BeanUtils.copyProperties(detail, groupDetail); |
|
|
BeanUtils.copyProperties(detail, groupDetail); |
|
|
|