org.zodiac.mybatisplus.mapper.BaseCrudMapper Maven / Gradle / Ivy
package org.zodiac.mybatisplus.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import java.io.Serializable;
public interface BaseCrudMapper extends BaseMapper {
@Update("UPDATE `${tableName}` SET is_deleted=0 WHERE id=#{id}")
int cancelDeletedById(@Param("tableName") String tableName, @Param("id") Serializable id);
}