|
@@ -13,13 +13,13 @@ 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.IUserService;
|
|
-import lombok.Data;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
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.*;
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 考评部门配置
|
|
* 考评部门配置
|
|
@@ -151,106 +151,4 @@ public class DepartmentAllocationController {
|
|
return R.customError(e.getMessage()).data("失败!");
|
|
return R.customError(e.getMessage()).data("失败!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 人员假数据
|
|
|
|
- *
|
|
|
|
- * @return 结果
|
|
|
|
- */
|
|
|
|
- @GetMapping(value = "/getUser")
|
|
|
|
- public R getUser() {
|
|
|
|
- List<UserDTO> userList = new ArrayList<>();
|
|
|
|
- Map<String, String> map = new HashMap<>();
|
|
|
|
- map.put("bffe73e031d44e00a8c8506e317aa41f", "孙志廷");
|
|
|
|
- map.put("48063c851236d1347900e6e9667ac0d6", "云天宝");
|
|
|
|
- map.put("df2c3798f5b14994aac7eb3410cf1c69", "孙严冬");
|
|
|
|
- map.put("06a45127a25f49e798d13233f881b382", "李宝岩");
|
|
|
|
- map.put("53c5bb07e6834d928aea5f9d2f57aa7f", "任晓霞");
|
|
|
|
- map.put("972f3f68fac44c9b95c2e479bb3de815", "李金柱");
|
|
|
|
- map.put("b4ee5ccdec1941f889176e3d913b1994", "刘全");
|
|
|
|
- map.put("5014b41d06dd4b428348cbfcdf36c160", "宫广正");
|
|
|
|
- map.put("8cfbb27966264920b24635f95ca6b0a7", "孙纳新");
|
|
|
|
- map.put("f9305976eaab4edca55538238914b07c", "刘景春");
|
|
|
|
- map.put("34c57c2ad8184e9795b2a77501e97671", "车晔");
|
|
|
|
- map.put("5b7c61a5556742baa9018d17ee5f42c2", "杨建国");
|
|
|
|
- map.put("9ea19aa48cc1483b9efcf3210e50de4f", "陈宏");
|
|
|
|
- map.put("5eca483c13c94639bdfae0754c314164", "王颖聪");
|
|
|
|
- map.put("aa300762de524c27b9ca3439b76c9e26", "朱传兴");
|
|
|
|
- for (Map.Entry<String, String> entry : map.entrySet()) {
|
|
|
|
- UserDTO user = new UserDTO();
|
|
|
|
- user.setId(entry.getKey());
|
|
|
|
- user.setName(entry.getValue());
|
|
|
|
- userList.add(user);
|
|
|
|
- }
|
|
|
|
- return R.ok().data(userList);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 部门假数据
|
|
|
|
- *
|
|
|
|
- * @return 结果
|
|
|
|
- */
|
|
|
|
- @GetMapping(value = "/getDept")
|
|
|
|
- public R getDept() {
|
|
|
|
- List<DeptDTO> deptList = new ArrayList<>();
|
|
|
|
- Map<String, String> map = new HashMap<>();
|
|
|
|
- map.put("23031004", "综合管理部(党委办公室)");
|
|
|
|
- map.put("23031015", "纪委办公室(党委巡察办)");
|
|
|
|
- map.put("23031006", "计划发展部");
|
|
|
|
- map.put("23031007", "市场营销部");
|
|
|
|
- map.put("23031008", "资本运营部(董事会办公室)");
|
|
|
|
- map.put("23031010", "财务部");
|
|
|
|
- map.put("23031005", "企业管理与法律事务部");
|
|
|
|
- map.put("23031023", "安全环保监察部");
|
|
|
|
- map.put("23031014", "生产调运部(调度中心)");
|
|
|
|
- map.put("23032496", "科技信息部");
|
|
|
|
- map.put("23031016", "审计部");
|
|
|
|
- map.put("23031018", "工会工作部");
|
|
|
|
- map.put("23031019", "采购与物资管理部");
|
|
|
|
- map.put("23031020", "国际业务部");
|
|
|
|
- map.put("23031022", "工程建设部");
|
|
|
|
- for (Map.Entry<String, String> entry : map.entrySet()) {
|
|
|
|
- DeptDTO dept = new DeptDTO();
|
|
|
|
- dept.setId(entry.getKey());
|
|
|
|
- dept.setName(entry.getValue());
|
|
|
|
- deptList.add(dept);
|
|
|
|
- }
|
|
|
|
- return R.ok().data(deptList);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 子部门假数据
|
|
|
|
- *
|
|
|
|
- * @return 结果
|
|
|
|
- */
|
|
|
|
- @GetMapping(value = "/getSubdepartment/{id}")
|
|
|
|
- public R getSubdepartment(@PathVariable String id) {
|
|
|
|
- List<DeptDTO> deptList = new ArrayList<>();
|
|
|
|
- Map<String, String> map = new HashMap<>();
|
|
|
|
- if ("23031004".equals(id)) {
|
|
|
|
- map.put("11111111", "子部门1");
|
|
|
|
- map.put("22222222", "子部门2");
|
|
|
|
- map.put("33333333", "子部门3");
|
|
|
|
- map.put("44444444", "子部门4");
|
|
|
|
- }
|
|
|
|
- if ("23031015".equals(id)) {
|
|
|
|
- map.put("55555555", "子部门5");
|
|
|
|
- map.put("66666666", "子部门6");
|
|
|
|
- map.put("77777777", "子部门7");
|
|
|
|
- map.put("88888888", "子部门8");
|
|
|
|
- }
|
|
|
|
- for (Map.Entry<String, String> entry : map.entrySet()) {
|
|
|
|
- DeptDTO dept = new DeptDTO();
|
|
|
|
- dept.setId(entry.getKey());
|
|
|
|
- dept.setName(entry.getValue());
|
|
|
|
- deptList.add(dept);
|
|
|
|
- }
|
|
|
|
- return R.ok().data(deptList);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @Data
|
|
|
|
- private static class DeptDTO {
|
|
|
|
- private String id;
|
|
|
|
- private String name;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|