package com.mes.service.userInfo; import com.baomidou.dynamic.datasource.annotation.DS; import com.mes.entity.userInfo.SysMenu; import com.mes.mapper.userInfo.SysMenuMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service @DS("user_info") public class SysMenuService { @Autowired private SysMenuMapper sysMenuMapper; public List getMenu(){ return sysMenuMapper.findAll(); } }