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


import cn.com.ty.lift.ud.userInvoice.mapper.entity.UserInvoice;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

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

/**
 * 用户发票抬头 -Repository
 * 
 * @author Xson
 * @date 2020-05-21
 */
public interface UserInvoiceMapper extends BaseMapper<UserInvoice> {

	@Update("UPDATE user_invoice SET is_default=0 WHERE user_id=#{userId}")
	void updateIsDefaultByUserId(@Param("userId")Long userId);
}
