class UserServiceImpl
        extends ServiceImpl<UserMapper, UserDO> implements UserService {

    private final UserMapper userMapper;

    @Override
    public UserDO getByUsername(String username, int type) {<FILL_FUNCTION_BODY>}

}

        if (type == 0) {
            // xml
            log.info("query from xml");
            return userMapper.selectByUsername(username);
        } else {
            // QueryWrapper
            log.info("query from wrapper");
            LambdaQueryWrapper<UserDO> queryWrapper = new LambdaQueryWrapper();
            queryWrapper.eq(UserDO::getUsername, username);
            queryWrapper.eq(UserDO::getStatus, 1);
            return userMapper.selectOne(queryWrapper);
        }

    
<no_super_class>