chenlu
2024-03-29 6c17e1f3da486ffd16b7237d9bc35a9bcbef5348
north-glass-erp/src/main/java/com/example/erp/mapper/sd/CustomerMapper.java
@@ -1,11 +1,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 {
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);
}