Merge pull request 'demand: 费用币种校验只能为CNY/USD' (#103) from develop into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/103
This commit is contained in:
commit
2df63b217e
@ -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