demand: 费用币种校验只能为CNY/USD
committer: heyu
This commit is contained in:
parent
08fffb5592
commit
aba30b7d9b
@ -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, "寄件区域不能为空");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user