28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
package com.cmeim.biz.repository;
|
|
|
|
import com.cmeim.biz.po.MmArriveBill;
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
import org.springframework.data.jpa.repository.Query;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import java.util.List;
|
|
|
|
@Repository(value = "MmArriveBillRepository")
|
|
public interface MmArriveBillRepository extends JpaRepository<MmArriveBill, Long>, JpaSpecificationExecutor {
|
|
|
|
MmArriveBill findByArriveBillNumber(String arriveBillNumber);
|
|
|
|
@Query(value = "select * from mm_arrive_bill where dict_status <= 20 order by created_dt desc ", nativeQuery = true)
|
|
List<MmArriveBill> getUnArriveBillList();
|
|
|
|
List<MmArriveBill> findByDictStatus(Integer dictStatus);
|
|
|
|
List<MmArriveBill> findAllByIdIn(Iterable<Long> ids);
|
|
|
|
List<MmArriveBill> findAllByDictStatusNotAndIsInInspecting(Integer dictStatus, Integer isInInspecting);
|
|
|
|
List<MmArriveBill> findAllByDictStatusLessThan(Integer dictStatus);
|
|
|
|
}
|