|
|
|
@ -25,6 +25,7 @@ import java.math.BigDecimal; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
@Service |
|
|
|
@Slf4j |
|
|
|
@ -209,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.getQty())){ |
|
|
|
throw new RuntimeException("数量不能为空"); |
|
|
|
} |
|
|
|
if (quotation.getQty().compareTo(BigDecimal.ZERO) <= 0) { |
|
|
|
throw new RuntimeException("数量不能小于等于0"); |
|
|
|
} |
|
|
|
@ -308,6 +312,7 @@ public class QuoteServiceImpl extends ServiceImpl<QuoteMapper, Quote> implements |
|
|
|
detail.setAdjustTestCost(BigDecimal.ZERO); |
|
|
|
detail.setCalculatedItems("工具,测试,其他,包装,运输"); |
|
|
|
detail.setMoq(""); |
|
|
|
// 添加币种字段 |
|
|
|
|
|
|
|
// 复制detail到Group |
|
|
|
QuoteGroupDetail groupDetail = new QuoteGroupDetail(); |
|
|
|
|