|
@@ -22,6 +22,7 @@ import com.jpsoft.employment.modules.common.dto.Sort;
|
|
|
import com.jpsoft.employment.modules.common.utils.MapUtils;
|
|
|
import com.jpsoft.employment.modules.common.utils.PojoUtils;
|
|
|
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.RecruitmentService;
|
|
|
import com.jpsoft.employment.modules.job.service.UserBrowseHrService;
|
|
@@ -35,6 +36,7 @@ import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
+
|
|
|
@Slf4j
|
|
|
@RestController
|
|
|
@RequestMapping("/mobile/recruiterApi")
|
|
@@ -55,6 +57,9 @@ public class RecruiterApiController {
|
|
|
@Autowired
|
|
|
private UserBrowseHrService userBrowseHrService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private JobUserService jobUserService;
|
|
|
+
|
|
|
|
|
|
@PostMapping("getAboutMe")
|
|
|
@ApiOperation(value = "招聘方['我的'主页]")
|
|
@@ -158,4 +163,35 @@ public class RecruiterApiController {
|
|
|
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;
|
|
|
+ }
|
|
|
}
|