|  |  |  | 
|---|
|  |  |  | package com.zy.asrs.wms.system.service.impl; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.zy.asrs.wms.system.mapper.MenuMapper; | 
|---|
|  |  |  | import com.zy.asrs.wms.system.entity.Menu; | 
|---|
|  |  |  | import com.zy.asrs.wms.system.service.MenuService; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | 
|---|
|  |  |  | import org.springframework.stereotype.Service; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Service("menuService") | 
|---|
|  |  |  | public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | package com.zy.asrs.wms.system.service.impl; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.zy.asrs.wms.system.mapper.MenuMapper; | 
|---|
|  |  |  | import com.zy.asrs.wms.system.entity.Menu; | 
|---|
|  |  |  | import com.zy.asrs.wms.system.service.MenuService; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | 
|---|
|  |  |  | import org.springframework.stereotype.Service; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Collections; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Service("menuService") | 
|---|
|  |  |  | public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public List<Menu> selectByParentId(Long parentId, Integer type, Long hostId) { | 
|---|
|  |  |  | return this.baseMapper.selectByParentId(parentId, type, hostId); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public List<Menu> selectByHostId(Long hostId) { | 
|---|
|  |  |  | return this.baseMapper.selectByHostId(hostId); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public boolean removeByHostId(Long hostId) { | 
|---|
|  |  |  | return this.baseMapper.removeByHostId(hostId) > 0; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|