From bcd0a5be94d339d937413e5f829823b22715aa0d Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Tue, 10 Mar 2026 09:27:21 +0800
Subject: [PATCH] 2026-03-09 优化 查询全部目录(含下属标注数据) 1. 默认文件夹固定置顶,其余目录按createTime降序排序 2. 目录下的标注按createTime降序排序
---
ard-system/src/main/java/com/ard/system/mapper/SysUserPostMapper.java | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/ard-system/src/main/java/com/ard/system/mapper/SysUserPostMapper.java b/ard-system/src/main/java/com/ard/system/mapper/SysUserPostMapper.java
new file mode 100644
index 0000000..871b05e
--- /dev/null
+++ b/ard-system/src/main/java/com/ard/system/mapper/SysUserPostMapper.java
@@ -0,0 +1,44 @@
+package com.ard.system.mapper;
+
+import java.util.List;
+import com.ard.system.domain.SysUserPost;
+
+/**
+ * 用户与岗位关联表 数据层
+ *
+ * @author ard
+ */
+public interface SysUserPostMapper
+{
+ /**
+ * 通过用户ID删除用户和岗位关联
+ *
+ * @param userId 用户ID
+ * @return 结果
+ */
+ public int deleteUserPostByUserId(Long userId);
+
+ /**
+ * 通过岗位ID查询岗位使用数量
+ *
+ * @param postId 岗位ID
+ * @return 结果
+ */
+ public int countUserPostById(Long postId);
+
+ /**
+ * 批量删除用户和岗位关联
+ *
+ * @param ids 需要删除的数据ID
+ * @return 结果
+ */
+ public int deleteUserPost(Long[] ids);
+
+ /**
+ * 批量新增用户岗位信息
+ *
+ * @param userPostList 用户岗位列表
+ * @return 结果
+ */
+ public int batchUserPost(List<SysUserPost> userPostList);
+}
--
Gitblit v1.9.3