package com.yuanchu.limslaboratory.service.impl;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.yuanchu.limslaboratory.pojo.User;
|
import com.yuanchu.limslaboratory.mapper.UserMapper;
|
import com.yuanchu.limslaboratory.service.UserService;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
import java.util.Map;
|
|
import javax.annotation.Resource;
|
|
/**
|
* <p>
|
* 服务实现类
|
* </p>
|
*
|
* @author 江苏鵷雏网络科技有限公司
|
* @since 2023-07-07
|
*/
|
@Service
|
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
|
|
@Resource
|
UserMapper userMapper;
|
|
@Override
|
public Map<String, String> selectUserByUserId(int userId) {
|
return userMapper.selectUserByUserId(userId);
|
}
|
@Resource
|
private UserMapper mapper;
|
|
@Override
|
public User AccordingUsernameSelectAll(String account) {
|
LambdaQueryWrapper<User> wrapper = new LambdaQueryWrapper<>();
|
wrapper.eq(User::getAccount, account);
|
return mapper.selectOne(wrapper);
|
}
|
}
|