com.macro.mall.model.UmsAdminExample Java Examples

The following examples show how to use com.macro.mall.model.UmsAdminExample. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SecurityConfig.java    From macrozheng with Apache License 2.0 6 votes vote down vote up
@Bean
public UserDetailsService userDetailsService() {
    //获取登录用户信息
    return new UserDetailsService() {
        @Override
        public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
            UmsAdminExample example = new UmsAdminExample();
            example.createCriteria().andUsernameEqualTo(username);
            List<UmsAdmin> umsAdminList = umsAdminMapper.selectByExample(example);
            if (umsAdminList != null && umsAdminList.size() > 0) {
                return new AdminUserDetails(umsAdminList.get(0));
            }
            throw new UsernameNotFoundException("用户名或密码错误");
        }
    };
}
 
Example #2
Source File: SecurityConfig.java    From macrozheng-mall with MIT License 6 votes vote down vote up
@Bean
public UserDetailsService userDetailsService() {
    //获取登录用户信息
    return new UserDetailsService() {
        @Override
        public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
            UmsAdminExample example = new UmsAdminExample();
            example.createCriteria().andUsernameEqualTo(username);
            List<UmsAdmin> umsAdminList = umsAdminMapper.selectByExample(example);
            if (umsAdminList != null && umsAdminList.size() > 0) {
                return new AdminUserDetails(umsAdminList.get(0));
            }
            throw new UsernameNotFoundException("用户名或密码错误");
        }
    };
}
 
Example #3
Source File: SecurityConfig.java    From mall with Apache License 2.0 6 votes vote down vote up
@Bean
public UserDetailsService userDetailsService() {
    //获取登录用户信息
    return new UserDetailsService() {
        @Override
        public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
            UmsAdminExample example = new UmsAdminExample();
            example.createCriteria().andUsernameEqualTo(username);
            List<UmsAdmin> umsAdminList = umsAdminMapper.selectByExample(example);
            if (umsAdminList != null && umsAdminList.size() > 0) {
                return new AdminUserDetails(umsAdminList.get(0));
            }
            throw new UsernameNotFoundException("用户名或密码错误");
        }
    };
}
 
Example #4
Source File: UmsAdminMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByExample(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example); 
Example #5
Source File: UmsAdminMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
long countByExample(UmsAdminExample example); 
Example #6
Source File: UmsAdminMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByExampleSelective(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example); 
Example #7
Source File: UmsAdminMapper.java    From macrozheng-mall with MIT License votes vote down vote up
List<UmsAdmin> selectByExample(UmsAdminExample example); 
Example #8
Source File: UmsAdminMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int deleteByExample(UmsAdminExample example); 
Example #9
Source File: UmsAdminMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int countByExample(UmsAdminExample example); 
Example #10
Source File: UmsAdminMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example); 
Example #11
Source File: UmsAdminMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example); 
Example #12
Source File: UmsAdminMapper.java    From mall with Apache License 2.0 votes vote down vote up
List<UmsAdmin> selectByExample(UmsAdminExample example); 
Example #13
Source File: UmsAdminMapper.java    From mall with Apache License 2.0 votes vote down vote up
int deleteByExample(UmsAdminExample example); 
Example #14
Source File: UmsAdminMapper.java    From mall with Apache License 2.0 votes vote down vote up
long countByExample(UmsAdminExample example); 
Example #15
Source File: UmsAdminMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example); 
Example #16
Source File: UmsAdminMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example); 
Example #17
Source File: UmsAdminMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
List<UmsAdmin> selectByExample(UmsAdminExample example); 
Example #18
Source File: UmsAdminMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int deleteByExample(UmsAdminExample example); 
Example #19
Source File: UmsAdminMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int countByExample(UmsAdminExample example); 
Example #20
Source File: UmsAdminMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example); 
Example #21
Source File: UmsAdminMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example); 
Example #22
Source File: UmsAdminMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
List<UmsAdmin> selectByExample(UmsAdminExample example); 
Example #23
Source File: UmsAdminMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int deleteByExample(UmsAdminExample example);