diff --git a/pom.xml b/pom.xml
index 124f4df..a564248 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,7 +62,7 @@
org.springframework.boot
spring-boot-starter-actuator
-
+
com.baomidou
mybatis-plus-boot-starter
@@ -74,13 +74,13 @@
springdoc-openapi-ui
1.6.14
-
+
com.stdb
oscar-jdbc
1.0
-
+
com.oracle.database.jdbc
ojdbc8
diff --git a/src/main/java/com/keyware/htey/controller/Department/DepartmentController.java b/src/main/java/com/keyware/htey/controller/Department/DepartmentController.java
index e4c18c9..a2c101a 100644
--- a/src/main/java/com/keyware/htey/controller/Department/DepartmentController.java
+++ b/src/main/java/com/keyware/htey/controller/Department/DepartmentController.java
@@ -4,7 +4,10 @@ import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.keyware.htey.entity.department.Department;
+import com.keyware.htey.entity.user.AuditLog;
+import com.keyware.htey.service.itf.AuditLogService;
import com.keyware.htey.service.itf.DepartmentService;
+import com.keyware.htey.utli.Constant;
import com.keyware.htey.utli.JsonUtils;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -33,6 +36,8 @@ import org.springframework.web.bind.annotation.ResponseBody;
public class DepartmentController {
@Autowired
private DepartmentService departmentService;
+ @Autowired
+ private AuditLogService auditLogService;
@GetMapping("/selectById")
@ResponseBody
@@ -47,11 +52,8 @@ public class DepartmentController {
* @date 2025/1/7
* @description 新增部门表
*/
- @RequestMapping(
- value = {"/addDepartment"},
- method = {RequestMethod.POST},
- produces = {"application/json; charset=utf-8"}
- )
+ @RequestMapping(value = {"/addDepartment"}, method = {RequestMethod.POST},
+ produces = {"application/json; charset=utf-8"})
@ResponseBody
@Operation(summary = "新增部门表", description = "返回新增部门信息")
@ApiResponse(responseCode = "200", description = "成功新增部门信息")
@@ -69,11 +71,9 @@ public class DepartmentController {
* @date 2025/1/7
* @description 修改部门
*/
- @RequestMapping(
- value = {"/updateDepartment"},
+ @RequestMapping(value = {"/updateDepartment"},
method = {RequestMethod.POST},
- produces = {"application/json; charset=utf-8"}
- )
+ produces = {"application/json; charset=utf-8"})
@ResponseBody
@Operation(summary = "修改部门", description = "返回修改部门信息")
@ApiResponse(responseCode = "200", description = "成功修改部门信息")
@@ -102,11 +102,8 @@ public class DepartmentController {
return departmentService.removeById(id);
}
- @RequestMapping(
- value = {"/getParentId"},
- method = {RequestMethod.GET},
- produces = {"application/json; charset=utf-8"}
- )
+ @RequestMapping(value = {"/getParentId"}, method = {RequestMethod.GET},
+ produces = {"application/json; charset=utf-8"})
@ResponseBody
@Operation(summary = "查询部门父节点信息", description = "返回部门父节点信息")
@ApiResponse(responseCode = "200", description = "成功部门父节点信息")
@@ -120,4 +117,55 @@ public class DepartmentController {
return JsonUtils.arrayListToJsonString(department);
}
+ @RequestMapping(
+ value = {"/select"},
+ method = {RequestMethod.POST},
+ produces = {"application/json; charset=utf-8"}
+ )
+ @ResponseBody
+ @Operation(summary = "查询部门列表信息", description = "返回查询部门列表")
+ @ApiResponse(responseCode = "200", description = "成功返回查询部门列表")
+ public List select(@RequestBody Department department, @RequestParam(defaultValue = "0") int pageNum,
+ @RequestParam(defaultValue = "10") int pageSize) {
+ AuditLog auditLog = new AuditLog();
+ department.setPageSize(pageSize);
+ department.setPageNum(pageNum);
+ if ("请输入部门名称...".equals(department.getDeptName())) {
+ department.setDeptName(null);
+ }
+
+ //if ("sysadmin".equals(this.getUser_idFormSession("userId"))) {
+ // department.setIsSys("sysadmin");
+ //}
+
+ department.setProjectSource(Constant.projectName);
+ List departmentList = this.departmentService.selectByDeparmentInfo(department);
+ //List parentNameList = new ArrayList();
+
+ //Department vo;
+ //for (Iterator var5 = departmentList.iterator(); var5.hasNext(); parentNameList.add(vo)) {
+ // vo = (Department)var5.next();
+ // Integer selectUserCountByDeptId = this.userService.selectUserCountByDeptId(vo.getId());
+ // if (selectUserCountByDeptId != null) {
+ // vo.setUserCount(selectUserCountByDeptId);
+ // }
+ //
+ // Department selectByPrimaryKey = this.departmentService.selectByPrimaryKey(vo.getParentId());
+ // if (selectByPrimaryKey != null) {
+ // vo.setParentName(selectByPrimaryKey.getDeptName());
+ // }
+ //}
+ String logName = "查询部门列表";
+ String logNameType = "部门管理";
+ //String comments = this.getUser_idFormSession("userName") + "查询部门列表,查询关键字为:" + department.getDeptName() ==
+ // null ? "" : department.getDeptName();
+ //todo 获取登录人信息
+ String comments = "查询部门列表,查询关键字为:" + department.getDeptName() == null ? ""
+ : department.getDeptName();
+ auditLog.setLogName(logName);
+ auditLog.setLogNameType(logNameType);
+ auditLog.setComments(comments);
+ auditLogService.addAuditLog(auditLog);
+ return departmentList;
+ }
}
diff --git a/src/main/java/com/keyware/htey/controller/project/ProjectKtController.java b/src/main/java/com/keyware/htey/controller/project/ProjectKtController.java
new file mode 100644
index 0000000..9267ea5
--- /dev/null
+++ b/src/main/java/com/keyware/htey/controller/project/ProjectKtController.java
@@ -0,0 +1,233 @@
+package com.keyware.htey.controller.project;
+
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+import javax.annotation.Resource;
+
+import com.keyware.htey.entity.department.Department;
+import com.keyware.htey.entity.organizeassets.OFourColum;
+import com.keyware.htey.entity.user.User;
+import com.keyware.htey.service.itf.DepartmentService;
+import com.keyware.htey.service.itf.OFourColumService;
+import com.keyware.htey.service.itf.UserService;
+import com.keyware.htey.utli.Constant;
+import com.keyware.htey.utli.JsonUtils;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.util.StringUtils;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+/**
+ * @author daijiajun
+ * @version V1.0
+ * @description 对与项目管理模块业务的处理
+ * @Package com.keyware.htey.controller.project
+ * @date 2025/1/15 15:43
+ */
+@Controller
+@RequestMapping("/projectKt")
+@Tag(name = "项目管理模块 API", description = "部门表数据接口")
+@Slf4j
+public class ProjectKtController {
+ @Autowired
+ private OFourColumService fourColumService;
+ @Resource
+ private DepartmentService departmentService;
+ @Autowired
+ private UserService userService;
+ @Autowired
+ private OFourColumService oFourColumService;
+
+ @RequestMapping(
+ value = {"/selectDepartUser"},
+ method = {RequestMethod.POST},
+ produces = {"application/json; charset=utf-8"}
+ )
+ @ResponseBody
+ @Operation(summary = "查询部门负责人", description = "返回部门负责人信息")
+ @ApiResponse(responseCode = "200", description = "部门负责人返回成功")
+ public String selectDepartUser(@RequestBody User user, @RequestParam(required = false) String setDocumentDepartId,
+ @RequestParam(required = false) String headId) {
+ List list = new ArrayList();
+ String departId = user.getDepartId() == null ? "" : user.getDepartId();
+ String set_document_departId = setDocumentDepartId == null ? "" : setDocumentDepartId;
+ String source = user.getSecret() == null ? "" : user.getSecret();
+ String userName = user.getUserNameForSerch();
+ if (user.getSystemLevel() != "" && user.getSystemLevel() != null) {
+ user.setSystemLevel(getSeq(user.getSystemLevel()).toString());
+ }
+ log.info("查询条件=" + userName);
+ String projectClassIficationName = user.getUesrRankName() == null ? "" : user.getUesrRankName();
+ String projectClassIfication = user.getUesrRankId() == null ? "" : user.getUesrRankId();
+ String customer = Constant.customer;
+ if ("sysadmin".equals(Constant.userId)) {
+ user.setIsSys("sysadmin");
+ }
+ user.setFlag("1");
+ List users;
+ Iterator userIterator;
+ if (!"".equals(set_document_departId)) {
+ Department department = this.departmentService.selectByPrimaryKey(set_document_departId);
+ if (department != null) {
+ users = null;
+ if (customer != null && customer.equals("siyuan17suo")) {
+ if (userName != null && !"搜索您想寻找的...".equals(userName)) {
+ user.setUserNameForSerch(userName);
+ user.setDepartId(department.getParentId());
+ user.setProjectSource(Constant.projectName);
+ users = this.userService.selectByUserInfo17suo(user);
+ } else {
+ users = this.userService.selectDepartUser17suo(department.getParentId());
+ }
+
+ userIterator = users.iterator();
+
+ while (userIterator.hasNext()) {
+ User u = (User)userIterator.next();
+ if (("内部".equals(projectClassIficationName) || "秘密".equals(projectClassIficationName))
+ && !"10".equals(u.getSecret()) && !"20".equals(u.getSecret()) && !"30".equals(
+ u.getSecret())) {
+ userIterator.remove();
+ }
+
+ if ("机密".equals(projectClassIficationName) && !"20".equals(u.getSecret()) && !"30".equals(
+ u.getSecret())) {
+ userIterator.remove();
+ }
+ }
+ }
+ return JsonUtils.arrayListToJsonString(users);
+ }
+ } else {
+ HashSet selectByparentId;
+ String deptId;
+ if (customer == null || !customer.equals("siyuan17suo") && !customer.equals("guiyangshiyuan")) {
+ if (StringUtils.hasText(userName)) {
+ if (!"搜索您想寻找的...".equals(userName)) {
+ user.setUserNameForSerch(userName);
+ }
+
+ users = this.userService.selectByUserInfo(user);
+ list.addAll(users);
+ } else if (!"".equals(source)) {
+ user.setDepartId(departId);
+ users = this.userService.selectByUserInfo(user);
+ list.addAll(users);
+ } else {
+ selectByparentId = this.departmentService.selectByparentId(departId);
+ user.setDepartId(departId);
+ users = this.userService.selectByUserInfo(user);
+ list.addAll(users);
+ userIterator = selectByparentId.iterator();
+
+ while (userIterator.hasNext()) {
+ deptId = (String)userIterator.next();
+ user.setDepartId(deptId);
+ users = this.userService.selectByUserInfo(user);
+ list.addAll(users);
+ }
+ }
+ } else {
+ if (StringUtils.hasText(userName)) {
+ if (!"搜索您想寻找的...".equals(userName)) {
+ user.setUserNameForSerch(userName);
+ }
+
+ users = this.userService.selectByUserInfo17suo(user);
+ list.addAll(users);
+ } else if (!"".equals(source)) {
+ user.setDepartId(departId);
+ // users = this.userService.selectByUserInfo17suo(user);
+ users = userService.selectByUser(user);
+ list.addAll(users);
+ } else {
+ selectByparentId = this.departmentService.selectByparentId(departId);
+ user.setDepartId(departId);
+ // users = this.userService.selectByUserInfo17suo(user);
+ users = userService.selectByUser(user);
+ list.addAll(users);
+ userIterator = selectByparentId.iterator();
+
+ while (userIterator.hasNext()) {
+ deptId = (String)userIterator.next();
+ if (deptId != "" && deptId != null) {
+ user.setDepartId(deptId);
+ users = userService.selectByUser(user);
+ list.addAll(users);
+ }
+ }
+ }
+
+ Iterator iterator = list.iterator();
+
+ while (iterator.hasNext()) {
+ User u = (User)iterator.next();
+ if (("内部".equals(projectClassIficationName) || "秘密".equals(projectClassIficationName))
+ && !"10".equals(u.getSecret()) && !"20".equals(u.getSecret()) && !"30".equals(u.getSecret())) {
+ iterator.remove();
+ }
+
+ if ("机密".equals(projectClassIficationName) && !"20".equals(u.getSecret()) && !"30".equals(
+ u.getSecret())) {
+ iterator.remove();
+ }
+ }
+ }
+ }
+ List listnew = new ArrayList();
+ Iterator var21 = list.iterator();
+
+ while (var21.hasNext()) {
+ User user1 = (User)var21.next();
+ if (!listnew.contains(user1)) {
+ listnew.add(user1);
+ }
+ }
+ if (!StringUtils.isEmpty(projectClassIfication)) {
+ OFourColum oFourColum = oFourColumService.selectByPrimaryKey(projectClassIfication);
+ if (oFourColum != null) {
+ Iterator iterator = listnew.iterator();
+ while (iterator.hasNext()) {
+ User next = (User)iterator.next();
+ if (!StringUtils.isEmpty(next.getSecret())) {
+ OFourColum oFourColum1 = oFourColumService.selectByPrimaryKey(next.getSecret());
+ if (oFourColum1 != null && oFourColum.getSeq() > oFourColum1.getSeq() || oFourColum1 == null) {
+ iterator.remove();
+ }
+ }
+ }
+ }
+ }
+ if (!StringUtils.isEmpty(headId)) {
+ listnew = (List)listnew.stream().filter(o -> !((User)o).getId().equals(headId)).collect(
+ Collectors.toList());
+ }
+
+ return JsonUtils.toJson(listnew);
+ }
+
+ public Integer getSeq(String id) {
+ OFourColum OFourColum = null;
+ if (!StringUtils.isEmpty(id)) {
+ OFourColum = fourColumService.selectByPrimaryKey(id);
+ }
+ if (Objects.isNull(OFourColum)) {
+ return null;
+ }
+ return OFourColum.getSeq();
+ }
+
+}
diff --git a/src/main/java/com/keyware/htey/controller/user/UserController.java b/src/main/java/com/keyware/htey/controller/user/UserController.java
index 385af9b..b39372d 100644
--- a/src/main/java/com/keyware/htey/controller/user/UserController.java
+++ b/src/main/java/com/keyware/htey/controller/user/UserController.java
@@ -1,8 +1,11 @@
package com.keyware.htey.controller.user;
+import java.util.ArrayList;
import java.util.Base64;
import java.util.Date;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
import javax.servlet.http.HttpServletRequest;
@@ -61,6 +64,8 @@ public class UserController {
private DepartmentService departmentService;
@Autowired
private UsersecretService usersecretService;
+ //@Autowired
+ //private SessionDAO sessionDAO;
/**
* @author yangmengchuan
@@ -491,7 +496,7 @@ public class UserController {
userService.updateByPrimaryKey(user);
User oneUser = userService.selectByPrimaryKey(userId);
if (oneUser == null) {
- log.error("id为[" + userId + "]");
+ log.error("不存在id为[" + userId + "]");
return Constant.ERROE_MESSAGE;
}
if ("".equals(userNames)) {
@@ -606,7 +611,7 @@ public class UserController {
for (String userId : listId) {
User user = this.userService.selectByPrimaryKey(userId);
if (user == null) {
- log.error("id为[" + userId + "]");
+ log.error("不存在id为[" + userId + "]");
return Constant.ERROE_MESSAGE;
}
if ("".equals(userNames)) {
@@ -766,11 +771,11 @@ public class UserController {
if (!oldUser.getSex().equals(user.getSex())) {
oldUserRankId = "女";
userRankId = "女";
- if ("0".equals(oldUser.getSex())) {
+ if (Constant.UESR_SEX_MAN.equals(oldUser.getSex())) {
oldUserRankId = "男";
}
- if ("0".equals(user.getSex())) {
+ if (Constant.UESR_SEX_MAN.equals(user.getSex())) {
userRankId = "男";
}
@@ -809,11 +814,11 @@ public class UserController {
if (!oldUser.getUesrRankId().equals(user.getUesrRankId())) {
oldUserRankId = "普通";
userRankId = "普通";
- if ("d453bf52e571451996a8f5c251f7eb8d".equals(oldUser.getUesrRankId())) {
+ if (Constant.UESR_RANK_ID_SECRET.equals(oldUser.getUesrRankId())) {
oldUserRankId = "秘密";
}
- if ("d453bf52e571451996a8f5c251f7eb8d".equals(user.getUesrRankId())) {
+ if (Constant.UESR_RANK_ID_SECRET.equals(user.getUesrRankId())) {
userRankId = "秘密";
}
@@ -860,4 +865,20 @@ public class UserController {
}
return ajaxMessage;
}
+
+ @RequestMapping(
+ value = {"/selectLoginList"},
+ produces = {"application/json; charset=utf-8"}
+ )
+ @ResponseBody
+ @Operation(summary = "查询已登录用户", description = "返回查询已登录用户信息")
+ @ApiResponse(responseCode = "200", description = "查询已登录用户成功")
+ public List selectLoginList(String userNameForSerch) {
+ //Collection sessions = this.sessionDAO.getActiveSessions();
+ List list = new ArrayList();
+ Map maploginIp = new HashMap();
+ Map maploginTime = new HashMap();
+ //Iterator var7 = sessions.iterator();
+ return new ArrayList<>();
+ }
}
diff --git a/src/main/java/com/keyware/htey/entity/department/Department.java b/src/main/java/com/keyware/htey/entity/department/Department.java
index 798d01d..f447451 100644
--- a/src/main/java/com/keyware/htey/entity/department/Department.java
+++ b/src/main/java/com/keyware/htey/entity/department/Department.java
@@ -2,6 +2,7 @@ package com.keyware.htey.entity.department;
import java.io.Serializable;
+import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
@@ -28,4 +29,12 @@ public class Department implements Serializable {
private String charge;
private String isSys;
private String projectSource;
+ @TableField(exist = false)
+ private Integer userCount;
+ @TableField(exist = false)
+ private String parentName;
+ @TableField(exist = false)
+ private int pageNum;
+ @TableField(exist = false)
+ private int pageSize;
}
diff --git a/src/main/java/com/keyware/htey/entity/user/User.java b/src/main/java/com/keyware/htey/entity/user/User.java
index 4489ef0..8f3a663 100644
--- a/src/main/java/com/keyware/htey/entity/user/User.java
+++ b/src/main/java/com/keyware/htey/entity/user/User.java
@@ -42,6 +42,9 @@ public class User implements Serializable {
private String logoutTime;
private String projectSource;
private String uesrRankId;
+ private byte[] imgData;
+ @TableField(exist = false)
+ private String uesrRankName;
@TableField(exist = false)
private String deptName;
@TableField(exist = false)
@@ -58,5 +61,6 @@ public class User implements Serializable {
private int pageNum;
@TableField(exist = false)
private int pageSize;
- private byte[] imgData;
+ @TableField(exist = false)
+ private String systemLevel;
}
diff --git a/src/main/java/com/keyware/htey/mybatis/itf/DepartmentMapper.java b/src/main/java/com/keyware/htey/mybatis/itf/DepartmentMapper.java
index 7fc0e1c..f9f2eaf 100644
--- a/src/main/java/com/keyware/htey/mybatis/itf/DepartmentMapper.java
+++ b/src/main/java/com/keyware/htey/mybatis/itf/DepartmentMapper.java
@@ -21,4 +21,7 @@ public interface DepartmentMapper extends BaseMapper {
List getParentId(@Param("parentId") String var1, @Param("isSys") String var2,
@Param("projectSource") String var3);
+ List selectByDeparmentInfo(Department var1);
+
+ List selectByparentId(@Param("parentId") String var1, @Param("projectSource") String var2);
}
diff --git a/src/main/java/com/keyware/htey/mybatis/itf/OFourColumMapper.java b/src/main/java/com/keyware/htey/mybatis/itf/OFourColumMapper.java
index 9435091..c455f86 100644
--- a/src/main/java/com/keyware/htey/mybatis/itf/OFourColumMapper.java
+++ b/src/main/java/com/keyware/htey/mybatis/itf/OFourColumMapper.java
@@ -3,6 +3,7 @@ package com.keyware.htey.mybatis.itf;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.keyware.htey.entity.organizeassets.OFourColum;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
/**
* @author yangmengchuan
@@ -11,5 +12,5 @@ import org.apache.ibatis.annotations.Mapper;
*/
@Mapper
public interface OFourColumMapper extends BaseMapper {
-
+ OFourColum selectByPrimaryKey(@Param("id") String id);
}
diff --git a/src/main/java/com/keyware/htey/mybatis/itf/UserMapper.java b/src/main/java/com/keyware/htey/mybatis/itf/UserMapper.java
index dad51af..e6ae085 100644
--- a/src/main/java/com/keyware/htey/mybatis/itf/UserMapper.java
+++ b/src/main/java/com/keyware/htey/mybatis/itf/UserMapper.java
@@ -43,4 +43,14 @@ public interface UserMapper extends BaseMapper {
@Param("pageSize") int pageSize, @Param("projectSource") String var2);
int delPwdResetList(List var1);
+
+ Integer selectUserCountByDeptId(@Param("deptId") String var1, @Param("projectSource") String var2);
+
+ List selectDepartUser17suo(@Param("departId") String var1, @Param("projectSource") String var2);
+
+ List selectByUserInfo17suo1(User var1);
+
+ List selectByUserInfo(User var1);
+
+ List selectDepartUser(@Param("departId") String var1, @Param("projectSource") String var2);
}
diff --git a/src/main/java/com/keyware/htey/service/impl/DepartmentServiceImpl.java b/src/main/java/com/keyware/htey/service/impl/DepartmentServiceImpl.java
index 0211b01..cf3fcfb 100644
--- a/src/main/java/com/keyware/htey/service/impl/DepartmentServiceImpl.java
+++ b/src/main/java/com/keyware/htey/service/impl/DepartmentServiceImpl.java
@@ -1,5 +1,7 @@
package com.keyware.htey.service.impl;
+import java.util.HashSet;
+import java.util.Iterator;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@@ -31,4 +33,37 @@ public class DepartmentServiceImpl extends ServiceImpl getParentId(String parentId, String isSys, String projectRsource) {
return this.departmentMapper.getParentId(parentId, isSys, projectRsource);
}
+
+ @Override
+ public List selectByDeparmentInfo(Department department) {
+ department.setProjectSource(Constant.projectName);
+ return this.departmentMapper.selectByDeparmentInfo(department);
+ }
+
+ @Override
+ public HashSet selectByparentId(String parentId) {
+ HashSet hashSet = new HashSet();
+ return this.recursionDeptId(hashSet, parentId);
+ }
+
+ private HashSet recursionDeptId(HashSet hashSet, String parentId) {
+ if (parentId == null) {
+ parentId = "";
+ }
+
+ List selectByparentId = this.departmentMapper.selectByparentId(parentId, Constant.projectName);
+ if (selectByparentId.size() == 0) {
+ hashSet.add(parentId);
+ return hashSet;
+ } else {
+ Department department;
+ for (Iterator var4 = selectByparentId.iterator(); var4.hasNext(); hashSet = this.recursionDeptId(hashSet,
+ department.getId())) {
+ department = (Department)var4.next();
+ hashSet.add(department.getId());
+ }
+
+ return hashSet;
+ }
+ }
}
diff --git a/src/main/java/com/keyware/htey/service/impl/OFourColumServiceImpl.java b/src/main/java/com/keyware/htey/service/impl/OFourColumServiceImpl.java
index 454ef4a..4eeb661 100644
--- a/src/main/java/com/keyware/htey/service/impl/OFourColumServiceImpl.java
+++ b/src/main/java/com/keyware/htey/service/impl/OFourColumServiceImpl.java
@@ -14,4 +14,14 @@ public class OFourColumServiceImpl extends ServiceImpl implements Us
public int delPwdResetList(List listId) {
return this.userMapper.delPwdResetList(listId);
}
+
+ @Override
+ public Integer selectUserCountByDeptId(String deptId) {
+ return this.userMapper.selectUserCountByDeptId(deptId, Constant.projectName);
+ }
+
+ @Override
+ public List selectDepartUser17suo(String parentId) {
+ return this.userMapper.selectDepartUser17suo(parentId, Constant.projectName);
+ }
+
+ @Override
+ public List selectByUser(User var1) {
+ var1.setProjectSource(Constant.projectName);
+ return userMapper.selectByUserInfo17suo1(var1);
+ }
+
+ @Override
+ public List selectByUserInfo(User user) {
+ user.setProjectSource(Constant.projectName);
+ return this.userMapper.selectByUserInfo(user);
+ }
+
+ @Override
+ public List selectDepartUser(String departId) {
+ return this.userMapper.selectDepartUser(departId, Constant.projectName);
+ }
+
}
diff --git a/src/main/java/com/keyware/htey/service/itf/DepartmentService.java b/src/main/java/com/keyware/htey/service/itf/DepartmentService.java
index c3f7d31..cd160bd 100644
--- a/src/main/java/com/keyware/htey/service/itf/DepartmentService.java
+++ b/src/main/java/com/keyware/htey/service/itf/DepartmentService.java
@@ -1,5 +1,6 @@
package com.keyware.htey.service.itf;
+import java.util.HashSet;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
@@ -11,4 +12,8 @@ public interface DepartmentService extends IService {
Department selectByPrimaryKey(String var1);
List getParentId(String var1, String var2, String var3);
+
+ List selectByDeparmentInfo(Department var1);
+
+ HashSet selectByparentId(String var1);
}
diff --git a/src/main/java/com/keyware/htey/service/itf/OFourColumService.java b/src/main/java/com/keyware/htey/service/itf/OFourColumService.java
index 2516232..7a3c2dd 100644
--- a/src/main/java/com/keyware/htey/service/itf/OFourColumService.java
+++ b/src/main/java/com/keyware/htey/service/itf/OFourColumService.java
@@ -4,5 +4,5 @@ import com.baomidou.mybatisplus.extension.service.IService;
import com.keyware.htey.entity.organizeassets.OFourColum;
public interface OFourColumService extends IService {
-
+ OFourColum selectByPrimaryKey(String id);
}
diff --git a/src/main/java/com/keyware/htey/service/itf/UserService.java b/src/main/java/com/keyware/htey/service/itf/UserService.java
index 49b54d4..3ebb139 100644
--- a/src/main/java/com/keyware/htey/service/itf/UserService.java
+++ b/src/main/java/com/keyware/htey/service/itf/UserService.java
@@ -4,7 +4,6 @@ import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.keyware.htey.entity.user.User;
-import org.springframework.web.bind.annotation.RequestParam;
public interface UserService extends IService {
@@ -33,6 +32,18 @@ public interface UserService extends IService {
int deleteByPrimaryKey(List var1);
void deleteUserRoleByUserId(String var1);
- List pwdResetList(String var1,int pageNum, int pageSize);
+
+ List pwdResetList(String var1, int pageNum, int pageSize);
+
int delPwdResetList(List var1);
+
+ Integer selectUserCountByDeptId(String var1);
+
+ List selectDepartUser17suo(String var1);
+
+ List selectByUser(User var1);
+
+ List selectByUserInfo(User var1);
+
+ List selectDepartUser(String var1);
}
diff --git a/src/main/java/com/keyware/htey/utli/Constant.java b/src/main/java/com/keyware/htey/utli/Constant.java
index 24ba21d..266e146 100644
--- a/src/main/java/com/keyware/htey/utli/Constant.java
+++ b/src/main/java/com/keyware/htey/utli/Constant.java
@@ -11,4 +11,13 @@ public class Constant {
public static String RULE_NUMBER = "kw";
public static Integer userCount = 0;
public static String ERROE_MESSAGE = "系统错误,请联系管理员";
+
+ public static String UESR_RANK_ID_SECRET = "d453bf52e571451996a8f5c251f7eb8d";
+
+ public static String UESR_SEX_MAN = "0";
+
+ //public static String customer = getUser_idFormSession("customCode");
+ public static String customer = "siyuan17suo";
+ //public static String userId = this.getUser_idFormSession("userId")
+ public static String userId = "admin";
}
diff --git a/src/main/resources/mapper/DepartmentMapper.xml b/src/main/resources/mapper/DepartmentMapper.xml
index 595fe16..00018f6 100644
--- a/src/main/resources/mapper/DepartmentMapper.xml
+++ b/src/main/resources/mapper/DepartmentMapper.xml
@@ -17,6 +17,10 @@
+
+
+
+
@@ -40,15 +44,42 @@
where ID = #{id,jdbcType=VARCHAR}
-