From bba40ae048d5c4fdca290f8e218b41160578f02e Mon Sep 17 00:00:00 2001 From: Odboy Date: Wed, 14 Jan 2026 22:37:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(SystemUserJobService):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=94=A8=E6=88=B7=E5=B2=97=E4=BD=8D=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=B5=8B=E8=AF=95=E6=A0=87=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/SystemUserJobService.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/cutejava/cutejava-module-system/src/main/java/cn/odboy/system/service/SystemUserJobService.java b/cutejava/cutejava-module-system/src/main/java/cn/odboy/system/service/SystemUserJobService.java index ed5c0bab..b7966eef 100644 --- a/cutejava/cutejava-module-system/src/main/java/cn/odboy/system/service/SystemUserJobService.java +++ b/cutejava/cutejava-module-system/src/main/java/cn/odboy/system/service/SystemUserJobService.java @@ -33,6 +33,9 @@ public class SystemUserJobService { @Autowired private SystemUserJobMapper systemUserJobMapper; + /** + * 批量绑定用户岗位 -> TestPassed + */ @Transactional(rollbackFor = Exception.class) public void batchInsertUserJob(Set jobs, Long userId) { if (CollUtil.isNotEmpty(jobs)) { @@ -47,6 +50,9 @@ public class SystemUserJobService { } } + /** + * 批量解绑用户岗位 -> TestPassed + */ @Transactional(rollbackFor = Exception.class) public void batchDeleteUserJob(Set userIds) { if (CollUtil.isNotEmpty(userIds)) { @@ -57,9 +63,9 @@ public class SystemUserJobService { } /** - * 根据岗位ID统计用户数量 + * 根据岗位ID统计用户数量 -> TestPassed * - * @param jobIds 岗位ID集合 + * @param jobIds / * @return / */ public Long countUserByJobIds(Set jobIds) { @@ -71,6 +77,12 @@ public class SystemUserJobService { return systemUserJobMapper.selectCount(wrapper); } + /** + * 根据用户id列举岗位 -> TestPassed + * + * @param userId / + * @return / + */ public Set listUserJobByUserId(Long userId) { return systemUserJobMapper.listUserJobByUserId(userId); }