demand: 费用币种校验只能为CNY/USD

committer: heyu
This commit is contained in:
aike 2025-07-08 18:07:39 +08:00
parent 08fffb5592
commit aba30b7d9b

View File

@ -475,6 +475,9 @@ public class EmisQuotePriceServiceImpl extends EmisBaseService implements IEmisQ
if (emisQuotePrice.getCurrency() == null || emisQuotePrice.getCurrency().trim().isEmpty()) {
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR, "费用币种不能为空");
}
if (!"CNY".equals(emisQuotePrice.getCurrency()) && !"USD".equals(emisQuotePrice.getCurrency())) {
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR, "费用币种不正确");
}
if (emisQuotePrice.getSendAreaName() == null || emisQuotePrice.getSendAreaName().trim().isEmpty()) {
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR, "寄件区域不能为空");
}