|
|
@@ -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;
|
|
|
@@ -13,6 +18,7 @@ import com.jpsoft.employment.modules.job.dto.ExpJsonDTO;
|
|
|
import com.jpsoft.employment.modules.job.dto.WorkExpDTO;
|
|
|
import com.jpsoft.employment.modules.job.entity.*;
|
|
|
import com.jpsoft.employment.modules.job.service.*;
|
|
|
+import com.jpsoft.employment.modules.sys.entity.DataDictionary;
|
|
|
import com.jpsoft.employment.modules.sys.service.DataDictionaryService;
|
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
@@ -68,6 +74,12 @@ public class ResumeApiController {
|
|
|
@Autowired
|
|
|
private ResumeApproveService resumeApproveService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CompanyService companyService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private CityService cityService;
|
|
|
+
|
|
|
|
|
|
private Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
|
|
|
@@ -201,6 +213,7 @@ public class ResumeApiController {
|
|
|
rd.setJobRecruitmentId(recruitmentId);
|
|
|
rd.setJobUserId(subject);
|
|
|
rd.setStatus("0");
|
|
|
+ rd.setChatStatus("1");
|
|
|
|
|
|
int inCount = resumeDeliverService.insert(rd);
|
|
|
if(inCount > 0) {
|
|
|
@@ -278,6 +291,7 @@ public class ResumeApiController {
|
|
|
@PostMapping("deliveryRecord")
|
|
|
@ApiOperation(value = "投递记录")
|
|
|
public MessageResult<Map> deliveryRecord(
|
|
|
+ @RequestParam(value="chatStatus",defaultValue="") String chatStatus,
|
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
|
@RequestParam(value="pageSize",defaultValue="10") int pageSize,
|
|
|
String token,
|
|
|
@@ -291,9 +305,29 @@ public class ResumeApiController {
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
sortList.add(new Sort("a.create_time","desc"));
|
|
|
|
|
|
+ if(StringUtils.isNotEmpty(chatStatus)) {
|
|
|
+ searchParams.put("chatStatus",chatStatus);
|
|
|
+ }
|
|
|
+
|
|
|
Page<ResumeDeliver> page = resumeDeliverService.pageSearch(searchParams,pageIndex,pageSize,true,sortList);
|
|
|
for(ResumeDeliver rd : page.getResult()){
|
|
|
Recruitment recruitment = recruitmentService.get(rd.getJobRecruitmentId());
|
|
|
+ String wageTypeName = dataDictionaryService.getName(recruitment.getWageType());
|
|
|
+ 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());
|
|
|
+ recruitment.setCompanyLogo(ci.getLogo());
|
|
|
+ recruitment.setCompanyScale(ci.getScale());
|
|
|
+ String scaleN = dataDictionaryService.getName(ci.getScale());
|
|
|
+ recruitment.setCompanyScaleN(scaleN);
|
|
|
+ }
|
|
|
+ City city = cityService.get(recruitment.getArea());
|
|
|
+ if(city != null){
|
|
|
+ recruitment.setAreaN(city.getCityName());
|
|
|
+ }
|
|
|
rd.setJobRecruitment(recruitment);
|
|
|
}
|
|
|
|