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

top.doudou.mybatis.plus.mapper.GloomyLockDao Maven / Gradle / Ivy

package top.doudou.mybatis.plus.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * @Description 悲观锁的dao
 * @Author 傻男人 <[email protected]>
 * @Date 2020-09-23 17:39
 * @Version V1.0
 */
public interface GloomyLockDao extends BaseMapper {

    /**
     * 悲观锁的方式通过id查询
     * @param id
     * @return
     */
    T gloomyLockFindById(Serializable id);

    /**
     * 悲观锁的方式通过wrapper查询
     * @param wrapper
     * @return
     */
    List gloomyLockFindList(@Param(Constants.WRAPPER) Wrapper wrapper);


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy