md
This commit is contained in:
parent
b791ef81a7
commit
6853e3b02b
@ -391,6 +391,10 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private String getCountryCodeByName(String name){
|
private String getCountryCodeByName(String name){
|
||||||
|
if(StringUtils.isEmpty(name)){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
EmisCountry country=getCountryByName(name);
|
EmisCountry country=getCountryByName(name);
|
||||||
if(country!=null){
|
if(country!=null){
|
||||||
return country.getCode();
|
return country.getCode();
|
||||||
@ -403,6 +407,11 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private String getChildRegionCodeByName(String countryCode,String parentCode,String name){
|
private String getChildRegionCodeByName(String countryCode,String parentCode,String name){
|
||||||
|
|
||||||
|
if(StringUtils.isAnyEmpty(countryCode,parentCode,name)){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
EmisRegion region=getRegionByName(countryCode,parentCode,name);
|
EmisRegion region=getRegionByName(countryCode,parentCode,name);
|
||||||
if(region!=null){
|
if(region!=null){
|
||||||
return region.getRegionCode();
|
return region.getRegionCode();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user