2022-03-22 14:46:05 +08:00
|
|
|
package com.ghy.customer.mapper;
|
|
|
|
|
|
2022-03-22 15:30:40 +08:00
|
|
|
import com.ghy.customer.domain.Customer;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author clunt
|
|
|
|
|
* 消费者Mapper
|
|
|
|
|
*/
|
2022-03-22 14:46:05 +08:00
|
|
|
public interface CustomerMapper {
|
|
|
|
|
|
2022-03-22 15:30:40 +08:00
|
|
|
/**
|
|
|
|
|
* @param customerId 消费者id
|
|
|
|
|
* @return 消费者信息
|
|
|
|
|
*/
|
|
|
|
|
Customer selectByCustomerId(Long customerId);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param customerId 消费者ids
|
|
|
|
|
* @return 删除成功条数
|
|
|
|
|
*/
|
|
|
|
|
int deleteByIds(Long [] customerId);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param customerId 消费者id
|
|
|
|
|
* @return 删除成功条数
|
|
|
|
|
*/
|
|
|
|
|
int deleteByCustomerId(Long customerId);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param customer 消费者对象
|
|
|
|
|
* @return 入库成功条数
|
|
|
|
|
*/
|
|
|
|
|
int insertCustomer(Customer customer);
|
2022-03-22 14:46:05 +08:00
|
|
|
|
2022-03-22 15:30:40 +08:00
|
|
|
/**
|
|
|
|
|
* @param customer 消费者对象
|
|
|
|
|
* @return 更新成功条数
|
|
|
|
|
*/
|
|
|
|
|
int updateCustomer(Customer customer);
|
2022-03-22 14:46:05 +08:00
|
|
|
|
|
|
|
|
}
|