|
@@ -6,8 +6,6 @@ import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
-import org.slf4j.Logger;
|
|
|
|
-import org.slf4j.LoggerFactory;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestAttribute;
|
|
import org.springframework.web.bind.annotation.RequestAttribute;
|
|
@@ -23,8 +21,10 @@ import com.jpsoft.employment.modules.common.dto.Sort;
|
|
import com.jpsoft.employment.modules.common.utils.MapUtils;
|
|
import com.jpsoft.employment.modules.common.utils.MapUtils;
|
|
import com.jpsoft.employment.modules.common.utils.PojoUtils;
|
|
import com.jpsoft.employment.modules.common.utils.PojoUtils;
|
|
import com.jpsoft.employment.modules.job.entity.RecruitmentVO;
|
|
import com.jpsoft.employment.modules.job.entity.RecruitmentVO;
|
|
|
|
+import com.jpsoft.employment.modules.job.service.JobUserService;
|
|
import com.jpsoft.employment.modules.job.service.RecruitmentCollectionService;
|
|
import com.jpsoft.employment.modules.job.service.RecruitmentCollectionService;
|
|
import com.jpsoft.employment.modules.job.service.RecruitmentService;
|
|
import com.jpsoft.employment.modules.job.service.RecruitmentService;
|
|
|
|
+import com.jpsoft.employment.modules.job.service.ResumeService;
|
|
import com.jpsoft.employment.modules.job.service.UserBrowseHrService;
|
|
import com.jpsoft.employment.modules.job.service.UserBrowseHrService;
|
|
import com.jpsoft.employment.modules.sys.entity.UserVO;
|
|
import com.jpsoft.employment.modules.sys.entity.UserVO;
|
|
import com.jpsoft.employment.modules.sys.service.UserService;
|
|
import com.jpsoft.employment.modules.sys.service.UserService;
|
|
@@ -36,6 +36,7 @@ import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
|
+
|
|
@Slf4j
|
|
@Slf4j
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/mobile/recruiterApi")
|
|
@RequestMapping("/mobile/recruiterApi")
|
|
@@ -55,6 +56,12 @@ public class RecruiterApiController {
|
|
@Autowired
|
|
@Autowired
|
|
private UserBrowseHrService userBrowseHrService;
|
|
private UserBrowseHrService userBrowseHrService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private JobUserService jobUserService;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private ResumeService resumeService;
|
|
|
|
+
|
|
|
|
|
|
@PostMapping("getAboutMe")
|
|
@PostMapping("getAboutMe")
|
|
@ApiOperation(value = "招聘方['我的'主页]")
|
|
@ApiOperation(value = "招聘方['我的'主页]")
|
|
@@ -198,7 +205,71 @@ public class RecruiterApiController {
|
|
return MessageResultBuilder.error(ex.getMessage());
|
|
return MessageResultBuilder.error(ex.getMessage());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @PostMapping("loadInterestList")
|
|
|
|
+ @ApiOperation(value = "招聘方[对您感兴趣]")
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "id", value = "id", required = false, paramType = "form")
|
|
|
|
+ })
|
|
|
|
+ public MessageResult<Map> loadInterestList(
|
|
|
|
+ String id,String token,
|
|
|
|
+ @RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
|
|
+ @RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
|
|
+ @RequestAttribute String subject) {
|
|
|
|
+ System.out.println(subject);
|
|
|
|
+
|
|
|
|
+ MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
|
+
|
|
|
|
+ Map<String,Object> searchParams = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ List<Sort> sortList = new ArrayList<>();
|
|
|
|
+ sortList.add(new Sort("jre.create_time","desc"));
|
|
|
|
+
|
|
|
|
+ if (StringUtils.isNotEmpty(id)) {
|
|
|
|
+ searchParams.put("id","%" + id + "%");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ Page<Map> page = jobUserService.foundInterestList(searchParams,pageIndex,pageSize,true,sortList);
|
|
|
|
+
|
|
|
|
+ msgResult.setResult(true);
|
|
|
|
+ msgResult.setData(PojoUtils.pageWrapper(page));
|
|
|
|
+
|
|
|
|
+ return msgResult;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping("loadJobManagement")
|
|
|
|
+ @ApiOperation(value = "招聘方[求职管理]")
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "id", value = "id", required = true, paramType = "query"),
|
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型(1:已投递,2:邀沟通,3:邀面试,4:邀入职,5:已入职,6:不合适)", required = false, paramType = "query")
|
|
|
|
+ })
|
|
|
|
+ public MessageResult<Map> loadJobManagement(
|
|
|
|
+ String id,String token,String type,
|
|
|
|
+ @RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
|
|
+ @RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
|
|
+ @RequestAttribute String subject) {
|
|
|
|
+ //System.out.println(subject);
|
|
|
|
+
|
|
|
|
+ MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
|
+
|
|
|
|
+ Map<String,Object> searchParams = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ List<Sort> sortList = new ArrayList<>();
|
|
|
|
+ sortList.add(new Sort("jrd.create_time","desc"));
|
|
|
|
+
|
|
|
|
+ if (StringUtils.isNotEmpty(id)) {
|
|
|
|
+ searchParams.put("id","%" + id + "%");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ searchParams.put("type",type);
|
|
|
|
+
|
|
|
|
+ Page<Map> page = resumeService.foundJobManagement(searchParams,pageIndex,pageSize,true,sortList);
|
|
|
|
+
|
|
|
|
+ msgResult.setResult(true);
|
|
|
|
+ msgResult.setData(PojoUtils.pageWrapper(page));
|
|
|
|
+
|
|
|
|
+ return msgResult;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|