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

io.github.dengchen2020.mybatis.methods.SoftDeleteMethod Maven / Gradle / Ivy

package io.github.dengchen2020.mybatis.methods;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.metadata.TableInfo;
import io.github.dengchen2020.mybatis.base.BaseMybatisRepository;
import org.apache.ibatis.mapping.MappedStatement;

/**
 * 逻辑删除
 * @author dengchen
 * @since 2024/6/22
 */
public class SoftDeleteMethod extends AbstractMethod {

    public SoftDeleteMethod(String methodName) {
        super(methodName);
    }

    @Override
    public MappedStatement injectMappedStatement(Class mapperClass, Class modelClass, TableInfo tableInfo) {
        String sql = """";
        return addUpdateMappedStatement(BaseMybatisRepository.class, Iterable.class, languageDriver.createSqlSource(configuration, sql, Iterable.class));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy