|
|
@@ -349,19 +349,23 @@ public class UserIdentityServiceImpl extends BaseMybatisDao<UserIdentityMapper>
|
|
|
"findUserIdentityCount", params, pNo, pSize);
|
|
|
List<UserIdentityBo> l=(List<UserIdentityBo>) p.getList();
|
|
|
for (UserIdentityBo u : l) {
|
|
|
- if (null!=u.getProvince()) {
|
|
|
- u.setProvince0(districtGlossoryMapper.selectByPrimaryKey(u.getProvince()).getName());
|
|
|
- }
|
|
|
- if (null!=u.getCity()) {
|
|
|
- u.setCity0(String.valueOf(districtGlossoryMapper.selectByPrimaryKey(u.getCity()).getName()));
|
|
|
- }
|
|
|
- if (null!=u.getArea()) {
|
|
|
- u.setArea0(String.valueOf(districtGlossoryMapper.selectByPrimaryKey(u.getArea()).getName()));
|
|
|
- }
|
|
|
- if (null!=u.getIndustry()) {
|
|
|
- u.setIndustry0(String.valueOf(industryCategoryMapper.selectByPrimaryKey(u.getIndustry()).getName()));
|
|
|
+ if (u.getProvince()!=0) {
|
|
|
+ if (null!=u.getProvince()) {
|
|
|
+ System.out.println(u.getProvince());
|
|
|
+ u.setProvince0(districtGlossoryMapper.selectByPrimaryKey(u.getProvince()).getName());
|
|
|
+ }
|
|
|
+ if (null!=u.getCity()) {
|
|
|
+ u.setCity0(String.valueOf(districtGlossoryMapper.selectByPrimaryKey(u.getCity()).getName()));
|
|
|
+ }
|
|
|
+ if (null!=u.getArea()) {
|
|
|
+ u.setArea0(String.valueOf(districtGlossoryMapper.selectByPrimaryKey(u.getArea()).getName()));
|
|
|
+ }
|
|
|
+ if (null!=u.getIndustry()) {
|
|
|
+ u.setIndustry0(String.valueOf(industryCategoryMapper.selectByPrimaryKey(u.getIndustry()).getName()));
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
- u.setCountInterest(String.valueOf(userInterestMapper.countInterest(u.getUid())));
|
|
|
+ u.setCountInterest(String.valueOf(userInterestMapper.countInterest(u.getUid())));
|
|
|
|
|
|
}
|
|
|
|