com.didiglobal.logi.security.dao.impl.BaseDaoImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logi-security-spring-boot-starter Show documentation
Show all versions of logi-security-spring-boot-starter Show documentation
logi-security 提供项目大多都需要的一些基础功能(用户、角色、权限、登录、注册、操作记录)
package com.didiglobal.logi.security.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.didiglobal.logi.security.properties.LogiSecurityProper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import static com.didiglobal.logi.security.common.constant.FieldConstant.*;
/**
* @author cjm
*/
@Component
public class BaseDaoImpl {
@Autowired
protected LogiSecurityProper logiSecurityProper;
protected QueryWrapper getQueryWrapperWithAppName() {
QueryWrapper queryWrapper = new QueryWrapper<>();
queryWrapper.eq(APP_NAME, logiSecurityProper.getAppName());
queryWrapper.eq(IS_DELETE, 0);
return queryWrapper;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy