package cn.ysk.cashier.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.ysk.cashier.mybatis.entity.TbActivateOutRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * 活动赠送商品使用记录表(TbActivateOutRecord)表数据库访问层
 *
 * @author ww
 * @since 2024-08-22 14:53:52
 */
public interface TbActivateOutRecordMapper extends BaseMapper<TbActivateOutRecord> {

    @Update("update tb_activate_out_record" +
            "        set ref_num = ref_num + #{refNum}" +
            "        where id = #{id}")
    int updateRefNum(@Param("id") Integer id, @Param("refNum") Integer refNum);
}

