|
|
|
@ -214,10 +214,10 @@ public class QuoteServiceImpl extends ServiceImpl<QuoteMapper, Quote> implements |
|
|
|
throw new RuntimeException("币种不能为空"); |
|
|
|
} |
|
|
|
if (Objects.isNull(quotation.getQty())){ |
|
|
|
throw new RuntimeException("数量不能为空"); |
|
|
|
throw new RuntimeException("MOQ不能为空"); |
|
|
|
} |
|
|
|
if (quotation.getQty().compareTo(BigDecimal.ZERO) <= 0) { |
|
|
|
throw new RuntimeException("数量不能小于等于0"); |
|
|
|
throw new RuntimeException("MOQ不能小于等于0"); |
|
|
|
} |
|
|
|
Quote quote = new Quote(); |
|
|
|
// 1、获取bu和site |
|
|
|
|