|
@@ -5,6 +5,7 @@ import java.util.HashMap;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
+import com.jpsoft.employment.modules.job.service.*;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -22,10 +23,6 @@ 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.RecruitmentService;
|
|
|
|
|
-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;
|
|
|
|
|
|
|
@@ -60,6 +57,9 @@ public class RecruiterApiController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private JobUserService jobUserService;
|
|
private JobUserService jobUserService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ResumeService resumeService;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
@PostMapping("getAboutMe")
|
|
@PostMapping("getAboutMe")
|
|
|
@ApiOperation(value = "招聘方['我的'主页]")
|
|
@ApiOperation(value = "招聘方['我的'主页]")
|
|
@@ -194,4 +194,35 @@ public class RecruiterApiController {
|
|
|
|
|
|
|
|
return msgResult;
|
|
return msgResult;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @PostMapping("loadJobManagement")
|
|
|
|
|
+ @ApiOperation(value = "招聘方[求职管理]")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "id", value = "id", required = true, paramType = "form")
|
|
|
|
|
+ })
|
|
|
|
|
+ public MessageResult<Map> loadJobManagement(
|
|
|
|
|
+ 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("jrd.create_time","desc"));
|
|
|
|
|
+
|
|
|
|
|
+ if (StringUtils.isNotEmpty(id)) {
|
|
|
|
|
+ searchParams.put("id","%" + id + "%");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ Page<Map> page = resumeService.foundJobManagement(searchParams,pageIndex,pageSize,true,sortList);
|
|
|
|
|
+
|
|
|
|
|
+ msgResult.setResult(true);
|
|
|
|
|
+ msgResult.setData(PojoUtils.pageWrapper(page));
|
|
|
|
|
+
|
|
|
|
|
+ return msgResult;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|