|
@@ -255,24 +255,17 @@ public class RecruiterApiController {
|
|
@PostMapping("loadInterestList")
|
|
@PostMapping("loadInterestList")
|
|
@ApiOperation(value = "招聘方[对您感兴趣]")
|
|
@ApiOperation(value = "招聘方[对您感兴趣]")
|
|
public MessageResult<Map> loadInterestList(
|
|
public MessageResult<Map> loadInterestList(
|
|
- String id,String token,
|
|
|
|
|
|
+ String token,
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
@RequestAttribute String subject) {
|
|
@RequestAttribute String subject) {
|
|
- System.out.println(subject);
|
|
|
|
-
|
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
|
|
|
- Map<String,Object> searchParams = new HashMap<>();
|
|
|
|
-
|
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
List<Sort> sortList = new ArrayList<>();
|
|
sortList.add(new Sort("jub.create_time","desc"));
|
|
sortList.add(new Sort("jub.create_time","desc"));
|
|
|
|
|
|
- if (StringUtils.isNotEmpty(id)) {
|
|
|
|
- searchParams.put("id","%" + id + "%");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- Page<Map> page = jobUserService.foundInterestList(searchParams,pageIndex,pageSize,true,sortList);
|
|
|
|
|
|
+ Map<String,Object> args=MapUtils.builder("id",subject);
|
|
|
|
+ Page<Map> page = jobUserService.foundInterestList(args,pageIndex,pageSize,true,sortList);
|
|
|
|
|
|
msgResult.setResult(true);
|
|
msgResult.setResult(true);
|
|
msgResult.setData(PojoUtils.pageWrapper(page));
|
|
msgResult.setData(PojoUtils.pageWrapper(page));
|
|
@@ -286,28 +279,18 @@ public class RecruiterApiController {
|
|
@ApiImplicitParam(name = "type", value = "类型(1:已投递,2:邀沟通,3:邀面试,4:邀入职,5:已入职,6:不合适)", required = false, paramType = "query")
|
|
@ApiImplicitParam(name = "type", value = "类型(1:已投递,2:邀沟通,3:邀面试,4:邀入职,5:已入职,6:不合适)", required = false, paramType = "query")
|
|
})
|
|
})
|
|
public MessageResult<Map> loadJobManagement(
|
|
public MessageResult<Map> loadJobManagement(
|
|
- String id,String token,String type,
|
|
|
|
|
|
+ String token,String type,
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
@RequestAttribute String subject) {
|
|
@RequestAttribute String subject) {
|
|
- System.out.println(subject);
|
|
|
|
|
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
|
|
|
- Map<String,Object> searchParams = new HashMap<>();
|
|
|
|
-
|
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
List<Sort> sortList = new ArrayList<>();
|
|
sortList.add(new Sort("jrd.create_time","desc"));
|
|
sortList.add(new Sort("jrd.create_time","desc"));
|
|
|
|
|
|
- if (StringUtils.isNotEmpty(id)) {
|
|
|
|
- searchParams.put("id","%" + id + "%");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (StringUtils.isNotEmpty(id)) {
|
|
|
|
- searchParams.put("type",type);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- Page<Map> page = resumeService.foundJobManagement(searchParams,pageIndex,pageSize,true,sortList);
|
|
|
|
|
|
+ Map<String,Object> args=MapUtils.builder("id",subject,"type",type);
|
|
|
|
+ Page<Map> page = resumeService.foundJobManagement(args,pageIndex,pageSize,true,sortList);
|
|
|
|
|
|
for (Map map:page) {
|
|
for (Map map:page) {
|
|
String sexName = dataDictionaryService.findNameByCatalogNameAndValue("性别",map.get("sex").toString());
|
|
String sexName = dataDictionaryService.findNameByCatalogNameAndValue("性别",map.get("sex").toString());
|