linhw 2024-05-29 20:18:30 +08:00
parent 2d297c356c
commit a114b7a461
1 changed files with 10 additions and 0 deletions

View File

@ -46,6 +46,9 @@ public class AppUserServiceImpl implements IAppUserService {
@Autowired
private AppSkillMapper appSkillMapper;
@Autowired
private AppProvinceMapper appProvinceMapper;
@Autowired
private AppProvinceMapper appProvinceMapper;
@Autowired
@ -121,6 +124,13 @@ public class AppUserServiceImpl implements IAppUserService {
appUserVo.setSchoolName(appSchool.getName());
}
}
AppProvince appProvince = appProvinceMapper.selectAppProvinceById(appUserSource.getProvinceId());
AppCity appCity = appCityMapper.selectAppCityById(Long.valueOf(appUserSource.getCityId()));
AppTown appTown = appTownMapper.selectAppTownById(Long.valueOf(appUserSource.getTownId()));
String province = appProvince != null ? appProvince.getName() + "-" : "";
String cityName = appCity != null ? appCity.getName() + "-" : "";
String townName = appTown != null ? appTown.getName() : "";
appUserVo.setAddress(province + cityName + townName);
return appUserVo;
}).collect(Collectors.toList());