package com.hqyj.seven.dao;

import com.hqyj.seven.pojo.Customer;
import com.hqyj.seven.pojo.House;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerDao {

    //通过客户ID更新客户余额
    int updataByCustomerIdToremainder(@Param("money") double money, @Param("id") int id);
    //通过金钱和id更新用户余额
    int updataByCustomerIdToremainderTwo(@Param("money") double money, @Param("id") int id);
    Customer queryByCustomer(int CustomerId);
    //获取全部客户信息
    List<Customer> queryAll();

    //根据用户名查询用户的信息
    List<Customer> queryByCusName(String name);
    //更新客户信息
    int updataOneCus(Customer customer);
    //插入单个客户的信息
    int insertOneCus(Customer customer);
    //删除单个客户的信息
    int deleteOneCus(int customer_id);
//    查找用户的住宿情况
    List<House> queryState(int customer_id);
}
