| | |
| | | package com.genersoft.iot.vmp.service.impl; |
| | | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.genersoft.iot.vmp.service.IUserService; |
| | | import com.genersoft.iot.vmp.storager.dao.UserMapper; |
| | | import com.genersoft.iot.vmp.storager.dao.dto.User; |
| | |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | @DS("master") |
| | | public class UserServiceImpl implements IUserService { |
| | | |
| | | @Autowired |
| | |
| | | } |
| | | |
| | | @Override |
| | | public User getUserById(int id) { |
| | | return userMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public User getUserByUsername(String username) { |
| | | return userMapper.getUserByUsername(username); |
| | | } |