All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.didiglobal.logi.security.dao.impl.BaseDaoImpl Maven / Gradle / Ivy

The newest version!
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;

/**
 * @author cjm
 */
@Component
public class BaseDaoImpl {

    @Autowired
    private LogiSecurityProper logiSecurityProper;

    protected QueryWrapper getQueryWrapper() {
        QueryWrapper queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("app_name", logiSecurityProper.getAppName());
        return queryWrapper;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy