|
@@ -9,10 +9,10 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.ims.common.utils.StringUtils;
|
|
import com.ims.common.utils.StringUtils;
|
|
import com.ims.eval.config.CustomException;
|
|
import com.ims.eval.config.CustomException;
|
|
import com.ims.eval.entity.EvaluationDept;
|
|
import com.ims.eval.entity.EvaluationDept;
|
|
-import com.ims.eval.entity.dto.request.PostDTO;
|
|
|
|
-import com.ims.eval.entity.dto.request.PostUserDTO;
|
|
|
|
|
|
+import com.ims.eval.entity.dto.request.UserDTO;
|
|
import com.ims.eval.entity.dto.result.R;
|
|
import com.ims.eval.entity.dto.result.R;
|
|
import com.ims.eval.service.IEvaluationDeptService;
|
|
import com.ims.eval.service.IEvaluationDeptService;
|
|
|
|
+import com.ims.eval.service.IUserService;
|
|
import com.ims.eval.service.custom.PostService;
|
|
import com.ims.eval.service.custom.PostService;
|
|
import com.ims.eval.service.custom.PostUserService;
|
|
import com.ims.eval.service.custom.PostUserService;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -20,7 +20,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
-import java.util.ArrayList;
|
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
@@ -48,6 +47,9 @@ public class DepartmentAllocationController {
|
|
@Autowired
|
|
@Autowired
|
|
private HttpServletRequest request;
|
|
private HttpServletRequest request;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IUserService userService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 考评部门配置列表信息(分页)
|
|
* 考评部门配置列表信息(分页)
|
|
*
|
|
*
|
|
@@ -126,7 +128,7 @@ public class DepartmentAllocationController {
|
|
*/
|
|
*/
|
|
@GetMapping(value = "/getDepartmentLeader/{id}")
|
|
@GetMapping(value = "/getDepartmentLeader/{id}")
|
|
public R getDepartmentLeader(@PathVariable String id) {
|
|
public R getDepartmentLeader(@PathVariable String id) {
|
|
- List<PostUserDTO> list = new ArrayList<>();
|
|
|
|
|
|
+ /*List<PostUserDTO> list = new ArrayList<>();
|
|
Object postList = postService.getPostList(1, 500, id, request);
|
|
Object postList = postService.getPostList(1, 500, id, request);
|
|
if (null != postList) {
|
|
if (null != postList) {
|
|
JSONObject postJsonArr = (JSONObject) postList;
|
|
JSONObject postJsonArr = (JSONObject) postList;
|
|
@@ -145,7 +147,11 @@ public class DepartmentAllocationController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
|
|
+ JSONObject jsonArr = userService.pageList(1, 1000, id, "", "", "", "", "", request);
|
|
|
|
+ JSONObject jsonArr1 = (JSONObject) jsonArr.get("data");
|
|
|
|
+ JSONArray array = JSONUtil.parseArray(jsonArr1.get("records"));
|
|
|
|
+ List<UserDTO> list = JSONUtil.toList(array, UserDTO.class);
|
|
return R.ok().data(list);
|
|
return R.ok().data(list);
|
|
}
|
|
}
|
|
|
|
|