main
parent
2d297c356c
commit
a114b7a461
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue