|  |  |  | 
|---|
|  |  |  | package com.zy.asrs.wms.system.service.impl; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | 
|---|
|  |  |  | import com.zy.asrs.wms.system.entity.Role; | 
|---|
|  |  |  | import com.zy.asrs.wms.system.entity.UserRole; | 
|---|
|  |  |  | import com.zy.asrs.wms.system.mapper.UserRoleMapper; | 
|---|
|  |  |  | import com.zy.asrs.wms.system.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); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | package com.zy.asrs.wms.system.service.impl; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | 
|---|
|  |  |  | import com.zy.asrs.wms.system.entity.Role; | 
|---|
|  |  |  | import com.zy.asrs.wms.system.entity.UserRole; | 
|---|
|  |  |  | import com.zy.asrs.wms.system.mapper.UserRoleMapper; | 
|---|
|  |  |  | import com.zy.asrs.wms.system.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); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|