格式化

This commit is contained in:
阿沐 2024-04-29 19:02:21 +08:00
parent 32f29e286c
commit c79522ed9f

View File

@ -11,24 +11,24 @@ import java.util.Map;
/** /**
* 系统用户 * 系统用户
* *
* @author 阿沐 babamu@126.com * @author 阿沐 babamu@126.com
* <a href="https://maku.net">MAKU</a> * <a href="https://maku.net">MAKU</a>
*/ */
@Mapper @Mapper
public interface SysUserDao extends BaseDao<SysUserEntity> { public interface SysUserDao extends BaseDao<SysUserEntity> {
List<SysUserEntity> getList(Map<String, Object> params); List<SysUserEntity> getList(Map<String, Object> params);
SysUserEntity getById(@Param("id") Long id); SysUserEntity getById(@Param("id") Long id);
List<SysUserEntity> getRoleUserList(Map<String, Object> params); List<SysUserEntity> getRoleUserList(Map<String, Object> params);
default SysUserEntity getByUsername(String username){ default SysUserEntity getByUsername(String username) {
return this.selectOne(new QueryWrapper<SysUserEntity>().eq("username", username)); return this.selectOne(new QueryWrapper<SysUserEntity>().eq("username", username));
} }
default SysUserEntity getByMobile(String mobile){ default SysUserEntity getByMobile(String mobile) {
return this.selectOne(new QueryWrapper<SysUserEntity>().eq("mobile", mobile)); return this.selectOne(new QueryWrapper<SysUserEntity>().eq("mobile", mobile));
} }
} }