wkyy hace 3 años
padre
commit
319080f1c0

+ 6 - 23
web/src/main/java/com/jpsoft/employment/modules/mobile/controller/RecruiterApiController.java

@@ -255,24 +255,17 @@ public class RecruiterApiController {
     @PostMapping("loadInterestList")
     @ApiOperation(value = "招聘方[对您感兴趣]")
     public MessageResult<Map> loadInterestList(
-            String id,String token,
+            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("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.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")
     })
     public MessageResult<Map> loadJobManagement(
-            String id,String token,String type,
+            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 + "%");
-        }
-
-        if (StringUtils.isNotEmpty(type)) {
-            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) {
             String sexName = dataDictionaryService.findNameByCatalogNameAndValue("性别",map.get("sex").toString());