|
@@ -61,6 +61,9 @@ public class RecruitApiController {
|
|
|
private ShareWorksInfoService shareWorksInfoService;
|
|
|
@Autowired
|
|
|
private RecruitPersonRelationService recruitPersonRelationService;
|
|
|
+ @Autowired
|
|
|
+ private PersonLoginLogService personLoginLogService;
|
|
|
+
|
|
|
|
|
|
@PostMapping("findRecruitHomePage")
|
|
|
@ApiOperation(value = " 首页查询全部(公开接口)")
|
|
@@ -171,6 +174,14 @@ public class RecruitApiController {
|
|
|
for(RecruitInformationInfo recruitInformationInfo : page.getResult()){
|
|
|
recruitInformationInfo.setSettlementMethodN(dataDictionaryService.findNameByCatalogNameAndValue("结算方式",recruitInformationInfo.getSettlementMethod()));
|
|
|
recruitInformationInfo.setIndustryN(dataDictionaryService.findNameByCatalogNameAndValue("意向行业",recruitInformationInfo.getIndustry()));
|
|
|
+
|
|
|
+ PersonInfo personInfo = personInfoService.findByEnterpriseId(recruitInformationInfo.getEnterpriseId());
|
|
|
+ if(personInfo!=null){
|
|
|
+ PersonLoginLog personLoginLog = personLoginLogService.findTopByPersonId(personInfo.getId());
|
|
|
+ if(personLoginLog != null){
|
|
|
+ recruitInformationInfo.setLastLoginTime(personLoginLog.getCreateTime());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
messageResult.setData(PojoUtils.pageWrapper(page));
|
|
@@ -204,6 +215,10 @@ public class RecruitApiController {
|
|
|
jobInformationInfo.setPersonName(personInfo.getRealName());
|
|
|
jobInformationInfo.setGender(personInfo.getGender());
|
|
|
jobInformationInfo.setAge(personInfo.getAge());
|
|
|
+ PersonLoginLog personLoginLog = personLoginLogService.findTopByPersonId(personInfo.getId());
|
|
|
+ if(personLoginLog != null){
|
|
|
+ jobInformationInfo.setLastLoginTime(personLoginLog.getCreateTime());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
jobInformationInfo.setIntendedIndustriesN(dataDictionaryService.findNameByCatalogNameAndValue("意向行业",jobInformationInfo.getIntendedIndustries()));
|