package io.renren.modules.admin.dao;

import io.renren.modules.admin.entity.DataBaseEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * 
 * 
 * @author huwhois
 * @email huwhois@gmail.com
 * @date 2020-07-22 15:28:24
 */
@Mapper
public interface DataBaseDao extends BaseMapper<DataBaseEntity> {
    @Update("update `data_base` set `favorites` = `favorites` + 1 where id=#{id}")
	void addFavorite(Long id);
	
}
