Search in sources :

Example 1 with LogicDeleteByWrapperWithFill

use of com.nb6868.onex.common.jpa.injector.methods.LogicDeleteByWrapperWithFill in project onex-boot by zhangchaoxu.

the class MySqlInjector method getMethodList.

@Override
public List<AbstractMethod> getMethodList(Class<?> mapperClass, TableInfo tableInfo) {
    List<AbstractMethod> methodList = super.getMethodList(mapperClass, tableInfo);
    // 增加自动填充逻辑删除
    methodList.add(new LogicDeleteByIdWithFill());
    methodList.add(new LogicDeleteBatchByIdsWithFill());
    methodList.add(new LogicDeleteByWrapperWithFill());
    methodList.add(new SelectCountById());
    return methodList;
}
Also used : SelectCountById(com.nb6868.onex.common.jpa.injector.methods.SelectCountById) AbstractMethod(com.baomidou.mybatisplus.core.injector.AbstractMethod) LogicDeleteByWrapperWithFill(com.nb6868.onex.common.jpa.injector.methods.LogicDeleteByWrapperWithFill) LogicDeleteBatchByIdsWithFill(com.nb6868.onex.common.jpa.injector.methods.LogicDeleteBatchByIdsWithFill) LogicDeleteByIdWithFill(com.nb6868.onex.common.jpa.injector.methods.LogicDeleteByIdWithFill)

Aggregations

AbstractMethod (com.baomidou.mybatisplus.core.injector.AbstractMethod)1 LogicDeleteBatchByIdsWithFill (com.nb6868.onex.common.jpa.injector.methods.LogicDeleteBatchByIdsWithFill)1 LogicDeleteByIdWithFill (com.nb6868.onex.common.jpa.injector.methods.LogicDeleteByIdWithFill)1 LogicDeleteByWrapperWithFill (com.nb6868.onex.common.jpa.injector.methods.LogicDeleteByWrapperWithFill)1 SelectCountById (com.nb6868.onex.common.jpa.injector.methods.SelectCountById)1