From 62eb499b0c969f246d3245d1429a97da4de1ce28 Mon Sep 17 00:00:00 2001
From: 钟日健 <arsn163@163.com>
Date: Mon, 01 Jun 2026 20:46:13 +0800
Subject: [PATCH] feat: 成绩查询增加年龄查询返回
---
src/main/java/org/springblade/modules/system/mapper/UserMapper.java | 178 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 171 insertions(+), 7 deletions(-)
diff --git a/src/main/java/org/springblade/modules/system/mapper/UserMapper.java b/src/main/java/org/springblade/modules/system/mapper/UserMapper.java
index 2674d2d..c49f15e 100644
--- a/src/main/java/org/springblade/modules/system/mapper/UserMapper.java
+++ b/src/main/java/org/springblade/modules/system/mapper/UserMapper.java
@@ -22,9 +22,13 @@
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
+import org.springblade.modules.dispatcher.vo.DispatcherVO;
+import org.springblade.modules.experience.entity.Experience;
+import org.springblade.modules.system.excel.SecurityExcel;
import org.springblade.modules.system.excel.UserExcel;
import org.springblade.modules.system.entity.User;
import org.springblade.modules.system.node.TreeNode;
+import org.springblade.modules.system.vo.UserInfoDetail;
import org.springblade.modules.system.vo.UserVO;
import java.util.List;
@@ -42,11 +46,20 @@
*
* @param page
* @param user
- * @param deptIdList
- * @param tenantId
* @return
*/
+ @SqlParser(filter = true)
List<UserVO> selectUserPages(IPage<UserVO> page, @Param("user") UserVO user);
+
+ /**
+ * 自定义分页,带坐标
+ *
+ * @param page
+ * @param user
+ * @return
+ */
+ @SqlParser(filter = true)
+ List<UserVO> selectUserPagesByAge(IPage<UserVO> page, @Param("user") UserVO user);
/**
@@ -58,7 +71,7 @@
* @param tenantId
* @return
*/
- List<User> selectUserPage(IPage<User> page, @Param("user") User user, @Param("deptIdList") List<Long> deptIdList, @Param("tenantId") String tenantId);
+ List<UserVO> selectUserPage(IPage<UserVO> page, @Param("user") User user, @Param("deptIdList") List<Long> deptIdList, @Param("tenantId") String tenantId);
/**
* 获取用户
@@ -73,10 +86,9 @@
/**
* 获取导出用户数据
*
- * @param queryWrapper
* @return
*/
- List<UserExcel> exportUser(@Param("ew") Wrapper<User> queryWrapper);
+ List<UserExcel> exportUser(@Param("obj") Map<String, Object> param);
/**
* 通过 身份证号查询用户信息
@@ -102,9 +114,18 @@
* @param user 用户信息
* @return
*/
+ @SqlParser(filter=true)
+ List<TreeNode> getSecurityApplyTree(@Param("user") UserVO user);
+
+
+ /**
+ * 派遣保安员列表树 安员列表树,帅选无保安证,下拉tree
+ * @param user 用户信息
+ * @return
+ */
@MapKey(value = "id")
@SqlParser(filter=true)
- Map<Long, TreeNode> getSecurityApplyTree(@Param("user") UserVO user);
+ Map<Long, TreeNode> getSecurityDispatcherTree(@Param("user") UserVO user);
List<Map<Object,Object>> selectInr(String deptid);
@@ -150,6 +171,14 @@
*/
List<Map<String, Object>> getWorkReportInfo(@Param("type")String type,
@Param("deptid")String deptid,
+ @Param("jurisdiction")String jurisdiction); /**
+ * 工作汇报人员(向民警)
+ * @param deptid
+ * @param jurisdiction
+ * @return
+ */
+ List<Map<String, Object>> getWorkReportInfos(@Param("type")String type,
+ @Param("deptid")String deptid,
@Param("jurisdiction")String jurisdiction);
/**
@@ -157,7 +186,7 @@
* @param securityNumber 保安证编码
* @return
*/
- UserVO getUserInfoBySecurityNumber(@Param("securityNumber") String securityNumber);
+ UserVO getUserInfoBySecurityNumber(@Param("securityNumber") String securityNumber,@Param("cardid") String cardid);
/**
* 保安员信息
@@ -165,4 +194,139 @@
* @return
*/
UserVO getUserDetails(@Param("user") User user);
+
+
+ DispatcherVO getDispatcherInfoByUserId(Long userId);
+
+ /**
+ * 查询账号相同的用户数量
+ * @param account
+ * @return
+ */
+ Integer selectCountAccount(@Param("account") String account);
+
+ /**
+ * 查询当前部门名称及父级部门名称
+ * @param deptId 部门名称
+ * @return
+ */
+ @SqlParser(filter = true)
+ List<String> getDeptName(@Param("deptId") String deptId);
+
+ /**
+ * 查询用户表中未删除,未离职的用户信息
+ * @param username
+ * @return
+ */
+ User getUserInfo(@Param("account") String username);
+
+ /**
+ * 现场检查获取保安员
+ * @param jurisdiction
+ * @return
+ */
+ List<Map<String, Object>> getSecurityInfo(@Param("jurisdiction")String jurisdiction);
+
+ /**
+ * 导出保安员信息
+ * @param user
+ * @return
+ */
+ List<SecurityExcel> exportSecurityInfo(@Param("user") UserVO user);
+ /**
+ * 查询押运人员编码不为null的保安信息
+ * @return
+ */
+ List<Map<String, Object>> selectEquipent();
+
+ /**
+ * 查詢派遣信息
+ * @param id 用戶id
+ * @return
+ */
+ DispatcherVO getUserDispatcherInfo(Long id);
+
+ /**
+ * 用户批量导入
+ * @param userList
+ */
+ void batchUserList(@Param("list") List<User> userList);
+
+ /**
+ * 从业记录批量导入
+ * @param experienceList
+ */
+ void batchExperienceList(@Param("list") List<Experience> experienceList);
+
+ /**
+ * 年龄分布查询
+ * @return
+ */
+ List<Integer> getAgeStatistics(@Param("user") UserVO user);
+
+ /**
+ * 根据用户 id 查询用户信息
+ * @param id
+ * @return
+ */
+ User getUserById(long id);
+
+ /**
+ * 根据手机号获取用户信息
+ * @param tenantId
+ * @param phone
+ * @return
+ */
+ User getUserByPhone(@Param("tenantId")String tenantId,@Param("phone") String phone);
+
+ /**
+ * 按天查询 day 天未登录的人员ids集合信息
+ * @param day
+ * @return
+ */
+ List<String> getMoreDayNotLoginUser(@Param("day")int day);
+
+ /**
+ * 用户冻结操作
+ * @param userIds
+ */
+ void updateFreeze(@Param("list") List<String> userIds);
+
+ /**
+ * 用户注销操作
+ * @param userIds
+ */
+ void updateLogout(@Param("list") List<String> userIds);
+
+ /**
+ * 判断是否报名
+ * @param id
+ * @return
+ */
+ User getUserIsApply(@Param("id") Long id);
+
+ /**
+ * 自定义查询详情信息
+ * @param id
+ * @return
+ */
+ UserVO getUserDetailById(@Param("id") Long id);
+
+ /**
+ * 查询未关联的保安员
+ * @return
+ */
+ List<User> getNotGlList();
+
+ UserInfoDetail getUserInfoDetail(@Param("id") String id);
+
+ boolean batchAudit(@Param("ids") String ids, @Param("auditStatus") String auditStatus);
+
+ /**
+ * 根据身份证号和保安证编号确定用户
+ * @param cardid 身份证号
+ * @param securitynumber 保安证编号
+ * @return
+ */
+ User getUserInfoByIdCardNoAndSecurityNumber(@Param("cardid") String cardid,@Param("securityNumber") String securitynumber);
}
--
Gitblit v1.9.3