|
@@ -226,14 +226,46 @@ public class JobApiController {
|
|
JobInformationInfo jobInformationInfo = jobInformationInfoService.get(id);
|
|
JobInformationInfo jobInformationInfo = jobInformationInfoService.get(id);
|
|
PersonInfo personInfo = null;
|
|
PersonInfo personInfo = null;
|
|
if(jobInformationInfo != null) {
|
|
if(jobInformationInfo != null) {
|
|
|
|
+ int BrowseNumber = 0;
|
|
|
|
+ if(jobInformationInfo.getBrowseNumber() != null){
|
|
|
|
+ BrowseNumber = jobInformationInfo.getBrowseNumber();
|
|
|
|
+ }
|
|
|
|
+ BrowseNumber++;
|
|
|
|
+ jobInformationInfo.setBrowseNumber(BrowseNumber);
|
|
|
|
+ jobInformationInfoService.update(jobInformationInfo);
|
|
|
|
+
|
|
personInfo = personInfoService.get(jobInformationInfo.getPersonId());
|
|
personInfo = personInfoService.get(jobInformationInfo.getPersonId());
|
|
|
|
+
|
|
|
|
+ String intendedIndustriesN = dataDictionaryService.findNameByCatalogNameAndValue("意向行业",jobInformationInfo.getIntendedIndustries());
|
|
|
|
+ if(StringUtils.isNotEmpty(intendedIndustriesN)){
|
|
|
|
+ jobInformationInfo.setIntendedIndustriesN(intendedIndustriesN);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String methodN = dataDictionaryService.findNameByCatalogNameAndValue("结算方式",jobInformationInfo.getMethod());
|
|
|
|
+ if(StringUtils.isNotEmpty(methodN)){
|
|
|
|
+ jobInformationInfo.setMethodN(methodN);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String workExperienceN = dataDictionaryService.findNameByCatalogNameAndValue("工作经验",jobInformationInfo.getWorkExperience());
|
|
|
|
+ if(StringUtils.isNotEmpty(workExperienceN)){
|
|
|
|
+ jobInformationInfo.setWorkExperienceN(workExperienceN);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ String educationN = dataDictionaryService.findNameByCatalogNameAndValue("学历",jobInformationInfo.getEducation());
|
|
|
|
+ if(StringUtils.isNotEmpty(educationN)){
|
|
|
|
+ jobInformationInfo.setEducationN(educationN);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
Boolean isInvite = false;
|
|
Boolean isInvite = false;
|
|
//是否已邀请
|
|
//是否已邀请
|
|
PersonInfo user = personInfoService.get(subject);
|
|
PersonInfo user = personInfoService.get(subject);
|
|
if(user != null){
|
|
if(user != null){
|
|
- jobEnterpriseRelationService.findByEnterpriseIdAndJobInformationId(user.getEnterpriseId(),id);
|
|
|
|
|
|
+ JobEnterpriseRelation jobEnterpriseRelation = jobEnterpriseRelationService.findByEnterpriseIdAndJobInformationId(user.getEnterpriseId(),id);
|
|
|
|
+ if(jobEnterpriseRelation != null) {
|
|
|
|
+ isInvite = true;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
returnMap.put("jobInformationInfo",jobInformationInfo);
|
|
returnMap.put("jobInformationInfo",jobInformationInfo);
|
|
@@ -273,6 +305,10 @@ public class JobApiController {
|
|
throw new Exception("未找到信息");
|
|
throw new Exception("未找到信息");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ JobInformationInfo jobInformationInfo = jobInformationInfoService.findByPersonId(personInfo.getId());
|
|
|
|
+ if(jobInformationInfo == null) {
|
|
|
|
+ throw new Exception("未创建简历");
|
|
|
|
+ }
|
|
RecruitPersonRelation recruitPersonRelation = recruitPersonRelationService.findByRecruitIdAndPersonId(recruitId,personInfo.getId());
|
|
RecruitPersonRelation recruitPersonRelation = recruitPersonRelationService.findByRecruitIdAndPersonId(recruitId,personInfo.getId());
|
|
if(recruitPersonRelation == null){
|
|
if(recruitPersonRelation == null){
|
|
recruitPersonRelation = new RecruitPersonRelation();
|
|
recruitPersonRelation = new RecruitPersonRelation();
|
|
@@ -282,6 +318,7 @@ public class JobApiController {
|
|
recruitPersonRelation.setCreateTime(new Date());
|
|
recruitPersonRelation.setCreateTime(new Date());
|
|
recruitPersonRelation.setRecruitInformationId(recruitId);
|
|
recruitPersonRelation.setRecruitInformationId(recruitId);
|
|
recruitPersonRelation.setWorkPersonId(subject);
|
|
recruitPersonRelation.setWorkPersonId(subject);
|
|
|
|
+ recruitPersonRelation.setJobInformationId(jobInformationInfo.getId());
|
|
|
|
|
|
int count = recruitPersonRelationService.insert(recruitPersonRelation);
|
|
int count = recruitPersonRelationService.insert(recruitPersonRelation);
|
|
|
|
|
|
@@ -329,19 +366,56 @@ public class JobApiController {
|
|
sortList.add(new Sort("create_time","desc"));
|
|
sortList.add(new Sort("create_time","desc"));
|
|
|
|
|
|
if("0".equals(type)){
|
|
if("0".equals(type)){
|
|
- Page<RecruitPersonRelation> page = recruitPersonRelationService.pageSearch(searchParams, pageIndex, pageSize, true, sortList);
|
|
|
|
|
|
+ searchParams.put("personId",subject);
|
|
|
|
+
|
|
|
|
+ Page<RecruitPersonRelation> page = recruitPersonRelationService.pageSearchMobile(searchParams, pageIndex, pageSize, true, sortList);
|
|
|
|
+ for (RecruitPersonRelation recruitPersonRelation : page.getResult()){
|
|
|
|
+ RecruitInformationInfo recruitInformationInfo = recruitInformationInfoService.get(recruitPersonRelation.getRecruitInformationId());
|
|
|
|
+ EnterpriseInfo enterpriseInfo = enterpriseInfoService.get(recruitInformationInfo.getEnterpriseId());
|
|
|
|
+ if(enterpriseInfo!=null){
|
|
|
|
+ recruitInformationInfo.setEnterpriseName(enterpriseInfo.getName());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String industryN = dataDictionaryService.findNameByCatalogNameAndValue("意向行业",recruitInformationInfo.getIndustry());
|
|
|
|
+ if(StringUtils.isNotEmpty(industryN)){
|
|
|
|
+ recruitInformationInfo.setIndustryN(industryN);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String settlementMethodN = dataDictionaryService.findNameByCatalogNameAndValue("结算方式",recruitInformationInfo.getSettlementMethod());
|
|
|
|
+ if(StringUtils.isNotEmpty(settlementMethodN)){
|
|
|
|
+ recruitInformationInfo.setSettlementMethodN(settlementMethodN);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ PersonInfo workPersonInfo = personInfoService.get(recruitPersonRelation.getWorkPersonId());
|
|
|
|
+ recruitPersonRelation.setWorkPersonInfo(workPersonInfo);
|
|
|
|
+ recruitPersonRelation.setRecruitInformationInfo(recruitInformationInfo);
|
|
|
|
+ }
|
|
|
|
|
|
msgResult.setResult(true);
|
|
msgResult.setResult(true);
|
|
msgResult.setData(PojoUtils.pageWrapper(page));
|
|
msgResult.setData(PojoUtils.pageWrapper(page));
|
|
|
|
|
|
}else if("1".equals(type)){
|
|
}else if("1".equals(type)){
|
|
- Page<JobInformationInfo> page = jobInformationInfoService.pageSearch(searchParams,pageIndex,pageSize,true,sortList);
|
|
|
|
|
|
+ searchParams.put("personId",subject);
|
|
|
|
+
|
|
|
|
+ Page<JobEnterpriseRelation> page = jobEnterpriseRelationService.pageSearchMobile(searchParams,pageIndex,pageSize,true,sortList);
|
|
|
|
+
|
|
|
|
+ for (JobEnterpriseRelation jobEnterpriseRelation:page) {
|
|
|
|
+ RecruitInformationInfo recruitInformationInfo = recruitInformationInfoService.get(jobEnterpriseRelation.getRecruitInformationId());
|
|
|
|
+ EnterpriseInfo enterpriseInfo = enterpriseInfoService.get(recruitInformationInfo.getEnterpriseId());
|
|
|
|
+ if(enterpriseInfo!=null){
|
|
|
|
+ recruitInformationInfo.setEnterpriseName(enterpriseInfo.getName());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String industryN = dataDictionaryService.findNameByCatalogNameAndValue("意向行业",recruitInformationInfo.getIndustry());
|
|
|
|
+ if(StringUtils.isNotEmpty(industryN)){
|
|
|
|
+ recruitInformationInfo.setIndustryN(industryN);
|
|
|
|
+ }
|
|
|
|
|
|
- for (JobInformationInfo jobInformationInfo:page) {
|
|
|
|
- String methodN = dataDictionaryService.findNameByCatalogNameAndValue("结算方式",jobInformationInfo.getMethod());
|
|
|
|
- if(StringUtils.isNotEmpty(methodN)){
|
|
|
|
- jobInformationInfo.setMethodN(methodN);
|
|
|
|
|
|
+ String settlementMethodN = dataDictionaryService.findNameByCatalogNameAndValue("结算方式",recruitInformationInfo.getSettlementMethod());
|
|
|
|
+ if(StringUtils.isNotEmpty(settlementMethodN)){
|
|
|
|
+ recruitInformationInfo.setSettlementMethodN(settlementMethodN);
|
|
}
|
|
}
|
|
|
|
+ jobEnterpriseRelation.setRecruitInformationInfo(recruitInformationInfo);
|
|
}
|
|
}
|
|
msgResult.setResult(true);
|
|
msgResult.setResult(true);
|
|
msgResult.setData(PojoUtils.pageWrapper(page));
|
|
msgResult.setData(PojoUtils.pageWrapper(page));
|