This commit is contained in:
linfso 2024-06-28 02:15:41 +08:00
parent 77ee9ad768
commit bb3ffface7

View File

@ -398,13 +398,15 @@ public class EmisBaseService {
Long areaId = null;
// 根据城市获取目的地
EmisRegion regionCity= getRegionByCode(city);
if(regionCity!=null){
areaId=regionCity.getAreaId();
if(!StringUtils.isEmpty(city)) {
EmisRegion regionCity = getRegionByCode(city);
if (regionCity != null) {
areaId = regionCity.getAreaId();
}
}
// 根据城市获取目的地
if(areaId==null){
if(areaId==null && !StringUtils.isEmpty(province)){
EmisRegion regionProvice= getRegionByCode(province);
if(regionProvice!=null){
areaId=regionProvice.getAreaId();
@ -435,7 +437,7 @@ public class EmisBaseService {
}
}
if(destination==null){
if(destination==null && !StringUtils.isEmpty(countryCode)){
// 根据国家查询
EmisDestination queryEmisDestination = new EmisDestination();
queryEmisDestination.setCountry(countryCode);