From edfa49f201d3fc8fc6b51b700e91f80246660855 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 13 二月 2024 20:29:14 +0800 Subject: [PATCH] # --- zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/service/impl/UserRoleServiceImpl.java | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/service/impl/UserRoleServiceImpl.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/service/impl/UserRoleServiceImpl.java index bee5204..4bfa6e5 100644 --- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/service/impl/UserRoleServiceImpl.java +++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/service/impl/UserRoleServiceImpl.java @@ -1,12 +1,20 @@ package com.zy.asrs.wcs.sys.service.impl; -import com.zy.asrs.wcs.sys.mapper.UserRoleMapper; -import com.zy.asrs.wcs.sys.entity.UserRole; -import com.zy.asrs.wcs.sys.service.UserRoleService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.zy.asrs.wcs.sys.entity.Role; +import com.zy.asrs.wcs.sys.entity.UserRole; +import com.zy.asrs.wcs.sys.mapper.UserRoleMapper; +import com.zy.asrs.wcs.sys.service.UserRoleService; import org.springframework.stereotype.Service; + +import java.util.List; @Service("userRoleService") public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService { + @Override + public List<Role> listByUserId(Long userId) { + return baseMapper.selectByUserId(userId); + } + } -- Gitblit v1.9.1