Browse Source

2025-04-17

master
qiezi 9 months ago
parent
commit
34900a30dd
  1. 2
      src/main/java/com/spring/modules/quotation/vo/QuotationInformationVo.java
  2. 5
      src/main/java/com/spring/modules/quote/service/impl/QuoteServiceImpl.java

2
src/main/java/com/spring/modules/quotation/vo/QuotationInformationVo.java

@ -94,4 +94,6 @@ public class QuotationInformationVo extends QuotationInformationEntity {
private String approvalUsername;
private String currency;
}

5
src/main/java/com/spring/modules/quote/service/impl/QuoteServiceImpl.java

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

Loading…
Cancel
Save