guoyuji
2024-03-22 73be6b08f5a94e71550fe788c5d74705daa91be0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.example.erp.mapper.sd;
 
import com.example.erp.entity.sd.Customer;
import com.example.erp.entity.sd.Delivery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.repository.CrudRepository;
 
import java.util.List;
import java.util.Map;
 
@Mapper
public interface CustomerMapper extends CrudRepository<Customer,Long> {
 
    List<Customer> getCustomerList();
    List<Customer> getSelectCustomer(@Param("offset") Integer offset,
                                         @Param("pageSize") Integer pageSize,
                                         @Param("customer") Customer customer);
 
 
    Map<String,Integer> getSelectCustomerPageTotal(Integer offset, Integer pageSize, Customer customer);
 
    Boolean insertCustomer(@Param("customer") Customer customer);
 
    Boolean updateCustomer(@Param("customer") Customer customer);
 
    Boolean deleteCustomer(@Param("customer") Customer customer);
}