|
|
@@ -2,8 +2,13 @@ package com.jpsoft.employment.modules.mobile.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.alipay.api.domain.CompanyInfo;
|
|
|
import com.github.pagehelper.Page;
|
|
|
+import com.jpsoft.employment.modules.base.entity.City;
|
|
|
+import com.jpsoft.employment.modules.base.entity.Company;
|
|
|
import com.jpsoft.employment.modules.base.entity.ResumeApprove;
|
|
|
+import com.jpsoft.employment.modules.base.service.CityService;
|
|
|
+import com.jpsoft.employment.modules.base.service.CompanyService;
|
|
|
import com.jpsoft.employment.modules.base.service.ResumeApproveService;
|
|
|
import com.jpsoft.employment.modules.common.dto.MessageResult;
|
|
|
import com.jpsoft.employment.modules.common.dto.Sort;
|
|
|
@@ -68,6 +73,12 @@ public class ResumeApiController {
|
|
|
@Autowired
|
|
|
private ResumeApproveService resumeApproveService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CompanyService companyService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private CityService cityService;
|
|
|
+
|
|
|
|
|
|
private Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
|
|
|
@@ -304,6 +315,14 @@ public class ResumeApiController {
|
|
|
String workYearName = dataDictionaryService.getName(recruitment.getWorkYear());
|
|
|
recruitment.setWageTypeName(wageTypeName);
|
|
|
recruitment.setWorkYearName(workYearName);
|
|
|
+ Company ci = companyService.get(recruitment.getCompanyId());
|
|
|
+ if(ci != null){
|
|
|
+ recruitment.setCompanyName(ci.getName());
|
|
|
+ }
|
|
|
+ City city = cityService.get(recruitment.getArea());
|
|
|
+ if(city != null){
|
|
|
+ recruitment.setAreaN(city.getCityName());
|
|
|
+ }
|
|
|
rd.setJobRecruitment(recruitment);
|
|
|
}
|
|
|
|