|
|
@@ -3,6 +3,7 @@ package com.lianda.backend.repository;
|
|
|
import com.lianda.backend.model.BusCustomerCompany;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
+import org.springframework.data.domain.Sort;
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
import java.util.List;
|
|
|
@@ -35,6 +36,11 @@ public interface BusCustomerCompanyRepository extends JpaRepository<BusCustomerC
|
|
|
*/
|
|
|
Page<BusCustomerCompany> findByRecordStatus(Integer recordStatus, Pageable pageable);
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据记录状态和分页参数查找客户公司(支持排序)
|
|
|
+ */
|
|
|
+ Page<BusCustomerCompany> findByRecordStatus(Integer recordStatus, Pageable pageable, Sort sort);
|
|
|
+
|
|
|
/**
|
|
|
* 根据名称和记录状态查找客户公司
|
|
|
*/
|