package com.kym.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.yulichang.base.MPJBaseService;

import java.util.Collection;
import java.util.function.Function;


/**
 * 扩展mybatis-plus 实现指定字段更新
 *
 * @param <T>
 */
public interface MyBaseService<T> extends MPJBaseService<T> {
    public boolean updateBatchByQueryWrapper(Collection<T> entityList, Function<T, QueryWrapper<T>> queryWrapperFunction);

    public boolean updateByQueryWrapper(T entity, Function<T, QueryWrapper<T>> queryWrapperFunction);
}