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