chenlu
2024-06-07 2f640b1038fa331954f78ed1f4317212cf5bb34d
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
29
30
31
32
33
34
35
36
package com.example.erp.mapper.sd;
 
import com.example.erp.entity.sd.Customer;
import com.example.erp.entity.sd.Delivery;
import com.example.erp.entity.sd.DeliveryDetail;
import com.example.erp.entity.sd.OrderDetail;
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);
 
    List<OrderDetail> getSelectCustomerOderDate(@Param("offset") Integer offset,
                                                    @Param("pageSize") Integer pageSize, String startDate, String endDate,
                                                    @Param("orderDetail") OrderDetail orderDetail);
 
    Map<String,Integer> getSelectCustomerOderDatePageTotal(Integer offset, Integer pageSize,String startDate, String endDate, OrderDetail orderDetail);
}