package com.sa.ibiz.demo.demo.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import java.util.Map;
import org.apache.ibatis.annotations.Select;
import com.sa.ibiz.demo.demo.domain.UserDictCat;
import com.sa.ibiz.demo.demo.service.dto.UserDictCatSearchFilter;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import java.io.Serializable;
import com.baomidou.mybatisplus.core.toolkit.Constants;
public interface UserDictCatMapper extends BaseMapper<UserDictCat>{
    @CacheEvict( value="entity",key = "'UserDictCat:'+#p0.userdictcatid")
    void updateOne(@Param("userdictcat") UserDictCat userdictcat);
    List<UserDictCat> searchDefault(@Param("srf") UserDictCatSearchFilter searchfilter,@Param("ew") Wrapper<UserDictCat> wrapper) ;
    Page<UserDictCat> searchDefault(IPage page, @Param("srf") UserDictCatSearchFilter searchfilter, @Param("ew") Wrapper<UserDictCat> wrapper) ;
    @Select("${sql}")
    List<Map<String,Object>> selectRow( @Param("sql")String sql);
    @Override
    @Cacheable( value="entity",key = "'UserDictCat:'+#p0")
    UserDictCat selectById(Serializable id);
    @Override
    @CacheEvict( value="entity",key = "'UserDictCat:'+#p0.userdictcatid")
    int updateById(@Param(Constants.ENTITY) UserDictCat entity);
    @Override
    @CacheEvict( value="entity",key = "'UserDictCat:'+#p0.userdictcatid")
    int insert(UserDictCat entity);
    @Override
    @CacheEvict( value="entity",key = "'UserDictCat:'+#p0")
    int deleteById(Serializable id);
}