Selaa lähdekoodia

无用代码清理

chenwen 3 vuotta sitten
vanhempi
commit
430b72f46a

+ 19 - 14
web/src/main/java/com/jpsoft/employment/modules/mobile/controller/RecruiterApiController.java

@@ -1,6 +1,20 @@
 package com.jpsoft.employment.modules.mobile.controller;
 
-import cn.hutool.core.lang.Assert;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestAttribute;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
 import com.github.pagehelper.Page;
 import com.jpsoft.employment.modules.common.dto.MessageResult;
 import com.jpsoft.employment.modules.common.dto.MessageResultBuilder;
@@ -8,27 +22,18 @@ 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.entity.ResumeVO;
 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.service.UserService;
+
+import cn.hutool.core.lang.Assert;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
-import org.apache.commons.lang3.StringUtils;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
 
 @Slf4j
 @RestController
@@ -53,7 +58,7 @@ public class RecruiterApiController {
 
     @PostMapping("getAboutMe")
     @ApiOperation(value = "招聘方['我的'主页]")
-    public MessageResult<Map>  getAboutMe(@RequestAttribute String subject){
+    public MessageResult<Map<String,Object>>  getAboutMe(@RequestAttribute String subject){
         try{
             //包含两部分信息:个人信息,统计信息
             Assert.state(StringUtils.isNoneEmpty(subject),"缺少用户参数");
@@ -80,7 +85,7 @@ public class RecruiterApiController {
     @ApiImplicitParams({
             @ApiImplicitParam(name = "status", value = "招聘信息状态(publish:招聘中;approve:审核中;close:已下架)", required = true, paramType = "form")
     })
-    public MessageResult<Map> loadOwnRecruitments(@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
+    public MessageResult<Map<String,Object>> loadOwnRecruitments(@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
                                                 @RequestParam(value="pageSize",defaultValue="20") int pageSize,
                                                 @RequestParam(value="status",defaultValue="publish") String status,
                                                 @RequestAttribute String subject