UserData.java 813 Bytes
Newer Older
1
/*
gary's avatar
gary committed
2 3 4 5 6 7 8 9 10 11
package pwc.taxtech.atms.data;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import pwc.taxtech.atms.dao.UserMapper;
import pwc.taxtech.atms.entity.User;

12
*/
gary's avatar
gary committed
13 14 15 16
/**
 * @Auther: Gary J Li
 * @Date: 11/01/2019 14:32
 * @Description:
17 18
 *//*

gary's avatar
gary committed
19 20 21 22 23 24 25 26 27 28 29 30
@Service
public class UserData {
    private static final Logger logger = LoggerFactory.getLogger(UserData.class);
    @Autowired
    private UserMapper userMapper;

    // todo logOut时清除
    @Cacheable(value = "user", key = "#inputLoginName")
    public User selectByUserNameIgnoreCase(String inputLoginName){
        return userMapper.selectByUserNameIgnoreCase(inputLoginName);
    }
}
31
*/