You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
684 B
Java
22 lines
684 B
Java
package com.glxp.api.service.auth;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.glxp.api.dao.auth.AuthAliUserDao;
|
|
import com.glxp.api.entity.auth.AuthAliUser;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
@Service
|
|
public class AuthAliUserService extends ServiceImpl<AuthAliUserDao, AuthAliUser> {
|
|
public AuthAliUser getOne(){
|
|
AuthAliUser authAliUser = this.getOne(new QueryWrapper<AuthAliUser>()
|
|
.last("limit 1")
|
|
);
|
|
if(authAliUser == null){
|
|
authAliUser = new AuthAliUser();
|
|
}
|
|
return authAliUser;
|
|
}
|
|
|
|
}
|