|
@ -5,6 +5,8 @@ import org.apache.commons.lang.StringUtils; |
|
|
import org.jeecg.common.api.vo.Result; |
|
|
import org.jeecg.common.api.vo.Result; |
|
|
import org.jeecg.config.shiro.ShiroRealm; |
|
|
import org.jeecg.config.shiro.ShiroRealm; |
|
|
import org.jeecg.modules.apiService.UserInfoService; |
|
|
import org.jeecg.modules.apiService.UserInfoService; |
|
|
|
|
|
import org.jeecg.modules.employAhthenticationCompany.entity.EmployAhthenticationCompany; |
|
|
|
|
|
import org.jeecg.modules.employAhthenticationCompany.service.IEmployAhthenticationCompanyService; |
|
|
import org.jeecg.modules.employAuthenticationPerson.entity.EmployAuthenticationPerson; |
|
|
import org.jeecg.modules.employAuthenticationPerson.entity.EmployAuthenticationPerson; |
|
|
import org.jeecg.modules.employAuthenticationPerson.service.IEmployAuthenticationPersonService; |
|
|
import org.jeecg.modules.employAuthenticationPerson.service.IEmployAuthenticationPersonService; |
|
|
import org.jeecg.modules.employScoreRecord.entity.EmployScoreRecord; |
|
|
import org.jeecg.modules.employScoreRecord.entity.EmployScoreRecord; |
|
@ -38,6 +40,9 @@ public class UserInfoServiceImpl implements UserInfoService { |
|
|
@Resource |
|
|
@Resource |
|
|
private IEmployAuthenticationPersonService employAuthenticationPersonService; |
|
|
private IEmployAuthenticationPersonService employAuthenticationPersonService; |
|
|
|
|
|
|
|
|
|
|
|
//企业实名信息 |
|
|
|
|
|
@Resource |
|
|
|
|
|
private IEmployAhthenticationCompanyService employAhthenticationCompanyService; |
|
|
|
|
|
|
|
|
@Resource |
|
|
@Resource |
|
|
private IEmployScoreRecordService employScoreRecordService; |
|
|
private IEmployScoreRecordService employScoreRecordService; |
|
@ -113,6 +118,12 @@ public class UserInfoServiceImpl implements UserInfoService { |
|
|
.eq(EmployAuthenticationPerson::getUserId, hanHaiMember.getId()) |
|
|
.eq(EmployAuthenticationPerson::getUserId, hanHaiMember.getId()) |
|
|
.one(); |
|
|
.one(); |
|
|
|
|
|
|
|
|
|
|
|
//获取企业实名信息 |
|
|
|
|
|
EmployAhthenticationCompany company = employAhthenticationCompanyService |
|
|
|
|
|
.lambdaQuery() |
|
|
|
|
|
.eq(EmployAhthenticationCompany::getUserId, hanHaiMember.getId()) |
|
|
|
|
|
.one(); |
|
|
|
|
|
|
|
|
//获取是否签到 |
|
|
//获取是否签到 |
|
|
boolean signFlag = scoreService.judgeSign(token); |
|
|
boolean signFlag = scoreService.judgeSign(token); |
|
|
|
|
|
|
|
@ -123,13 +134,18 @@ public class UserInfoServiceImpl implements UserInfoService { |
|
|
map.put("integerNum",hanHaiMember.getIntegerPrice()); |
|
|
map.put("integerNum",hanHaiMember.getIntegerPrice()); |
|
|
map.put("scNum",0); |
|
|
map.put("scNum",0); |
|
|
map.put("lxNum",0); |
|
|
map.put("lxNum",0); |
|
|
|
|
|
map.put("signFlag",signFlag); |
|
|
|
|
|
map.put("vipType", vipType);//VIP类型 |
|
|
if(null != person){ |
|
|
if(null != person){ |
|
|
map.put("status",person.getStatus());//实名状态 |
|
|
|
|
|
|
|
|
map.put("personAuthenticationStatus",person.getStatus());//个人实名状态 |
|
|
}else { |
|
|
}else { |
|
|
map.put("status","0");//实名状态 |
|
|
|
|
|
|
|
|
map.put("status","0");//个人实名状态 |
|
|
|
|
|
} |
|
|
|
|
|
if(null != company){ |
|
|
|
|
|
map.put("companyAuthenticationStatus",company.getStatus());//企业实名状态 |
|
|
|
|
|
}else { |
|
|
|
|
|
map.put("status","0");//个人实名状态 |
|
|
} |
|
|
} |
|
|
map.put("signFlag",signFlag); |
|
|
|
|
|
map.put("vipType", vipType);//VIP类型 |
|
|
|
|
|
return Result.OK("获取个人中心基础数据信息",map); |
|
|
return Result.OK("获取个人中心基础数据信息",map); |
|
|
}catch (Exception e){ |
|
|
}catch (Exception e){ |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|