严智鑫
2024-04-11 5ea3b39452ccaae4dac4a45479a741b12970a96f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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("hangzhoumes")
public class SysMenuService {
    @Autowired
    private SysMenuMapper sysMenuMapper;
 
    public List<SysMenu> getMenu(){
 
        return sysMenuMapper.findAll();
    }
}