2022-03-22 14:46:05 +08:00
|
|
|
|
package com.ghy.customer.service;
|
|
|
|
|
|
|
2022-03-22 15:30:40 +08:00
|
|
|
|
import com.ghy.customer.domain.Customer;
|
|
|
|
|
|
|
2022-05-02 14:48:15 +08:00
|
|
|
|
import java.util.List;
|
2022-06-01 14:50:58 +08:00
|
|
|
|
import java.util.Map;
|
2022-05-02 14:48:15 +08:00
|
|
|
|
|
2022-03-22 15:30:40 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @author clunt
|
|
|
|
|
|
* 消费者service层
|
|
|
|
|
|
*/
|
2022-03-22 14:46:05 +08:00
|
|
|
|
public interface CustomerService {
|
2022-03-22 15:30:40 +08:00
|
|
|
|
|
2022-05-19 16:21:25 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @param customer 查询信息
|
|
|
|
|
|
* @return 消费者信息
|
|
|
|
|
|
*/
|
|
|
|
|
|
Customer selectByOpenId(Customer customer);
|
|
|
|
|
|
|
2022-05-02 14:48:15 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @param customer 消费者筛选条件
|
|
|
|
|
|
* @return 消费者列表
|
|
|
|
|
|
*/
|
|
|
|
|
|
List<Customer> getCustomerList(Customer customer);
|
|
|
|
|
|
|
2022-03-22 15:30:40 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @param customerId 消费者id
|
|
|
|
|
|
* @return 消费者信息
|
|
|
|
|
|
*/
|
|
|
|
|
|
Customer selectByCustomerId(Long customerId);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @param ids 消费者ids
|
|
|
|
|
|
* @return 删除成功条数
|
|
|
|
|
|
*/
|
|
|
|
|
|
int deleteByIds(String ids);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2022-06-01 14:50:58 +08:00
|
|
|
|
* @param customerId 消费者id
|
2022-03-22 15:30:40 +08:00
|
|
|
|
* @return 删除成功条数
|
|
|
|
|
|
*/
|
|
|
|
|
|
int deleteByCustomerId(Long customerId);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @param customer 消费者对象
|
|
|
|
|
|
* @return 入库成功条数
|
|
|
|
|
|
*/
|
|
|
|
|
|
int insertCustomer(Customer customer);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @param customer 消费者对象
|
|
|
|
|
|
* @return 更新成功条数
|
|
|
|
|
|
*/
|
|
|
|
|
|
int updateCustomer(Customer customer);
|
|
|
|
|
|
|
2022-06-01 14:50:58 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 根据消费者id集合信息进行查询封装成为map数据,
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param customerUserIdList 消费者Id集合信息数据
|
|
|
|
|
|
* @return 键值队列数据, key-> 消费者Id value-> 消费者实体信息
|
|
|
|
|
|
*/
|
|
|
|
|
|
Map<Long, Customer> byCustomerUseridInMap(List<Long> customerUserIdList);
|
|
|
|
|
|
|
2022-03-22 14:46:05 +08:00
|
|
|
|
}
|