Browse Source

agencydetail接口膝盖,areaName返回空字符串not null

dev_shibei_match
yinzuomei 5 years ago
parent
commit
efcf6d4d2a
  1. 10
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/AgencyServiceImpl.java

10
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/AgencyServiceImpl.java

@ -255,19 +255,19 @@ public class AgencyServiceImpl implements AgencyService {
if (null != entity && StringUtils.isNotBlank(entity.getAreaCode())) {
switch (entity.getLevel()) {
case CustomerAgencyConstant.PROVINCE_LEVEL:
agencysResultDTO.setAreaName(entity.getProvince());
agencysResultDTO.setAreaName(null == entity.getProvince() ? StrConstant.EPMETY_STR : entity.getProvince());
break;
case CustomerAgencyConstant.CITY_LEVEL:
agencysResultDTO.setAreaName(entity.getCity());
agencysResultDTO.setAreaName(null == entity.getCity() ? StrConstant.EPMETY_STR : entity.getCity());
break;
case CustomerAgencyConstant.DISTRICT:
agencysResultDTO.setAreaName(entity.getDistrict());
agencysResultDTO.setAreaName(null == entity.getDistrict() ? StrConstant.EPMETY_STR : entity.getDistrict());
break;
case CustomerAgencyConstant.STREET_LEVEL:
agencysResultDTO.setAreaName(entity.getStreet());
agencysResultDTO.setAreaName(null == entity.getStreet() ? StrConstant.EPMETY_STR : entity.getStreet());
break;
case CustomerAgencyConstant.COMMUNITY_LEVEL:
agencysResultDTO.setAreaName(entity.getCommunity());
agencysResultDTO.setAreaName(null == entity.getCommunity() ? StrConstant.EPMETY_STR : entity.getCommunity());
break;
default:
agencysResultDTO.setAreaName(StrConstant.EPMETY_STR);

Loading…
Cancel
Save