package cn.com.ty.lift.ud.shopping.mapper;


import cn.com.ty.lift.ud.shopping.mapper.entity.ShoppingEntity;

import org.apache.ibatis.annotations.Update;

import  com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 商城 -Repository
 * 
 * @author Xson
 * @date 2020-04-23
 */
public interface ShoppingMapper extends BaseMapper<ShoppingEntity> {

    @Update(value = "update shopping set browse_num= browse_num+1 where id = #{id}")
    void updateBrowseNum(Long id);
}
