| | |
| | | package com.ruoyi.basic.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.basic.excel.CustomerExcelDTO; |
| | | import com.ruoyi.basic.pojo.Customer; |
| | | |
| | | import java.util.List; |
| | |
| | | */ |
| | | public interface CustomerMapper extends BaseMapper<Customer> |
| | | { |
| | | /** |
| | | * 查询客户档案 |
| | | * |
| | | * @param id 客户档案主键 |
| | | * @return 客户档案 |
| | | */ |
| | | Customer selectCustomerById(Long id); |
| | | |
| | | /** |
| | | * 查询客户档案列表 |
| | | * |
| | | * @param customer 客户档案 |
| | | * @return 客户档案集合 |
| | | */ |
| | | List<Customer> selectCustomerList(Customer customer); |
| | | |
| | | /** |
| | | * 新增客户档案 |
| | | * |
| | | * @param customer 客户档案 |
| | | * @return 结果 |
| | | */ |
| | | int insertCustomer(Customer customer); |
| | | |
| | | /** |
| | | * 修改客户档案 |
| | | * |
| | | * @param customer 客户档案 |
| | | * @return 结果 |
| | | */ |
| | | int updateCustomer(Customer customer); |
| | | |
| | | /** |
| | | * 删除客户档案 |
| | | * |
| | | * @param id 客户档案主键 |
| | | * @return 结果 |
| | | */ |
| | | int deleteCustomerById(Long id); |
| | | |
| | | /** |
| | | * 批量删除客户档案 |
| | | * |
| | | * @param ids 需要删除的数据主键集合 |
| | | * @return 结果 |
| | | */ |
| | | int deleteCustomerByIds(Long[] ids); |
| | | List<CustomerExcelDTO> selectCustomerDtoListByIds(List<Long> ids); |
| | | List<CustomerExcelDTO> selectCustomerDtoLists(); |
| | | } |