ChangeDelInfoRepository.java 670 Bytes
Newer Older
kangxiaoshan committed
1 2 3 4 5 6 7 8 9 10
package common.repository;

import common.model.ChangeDelInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ChangeDelInfoRepository  extends JpaRepository<ChangeDelInfo, Long> {

kangxiaoshan committed
11
    @Query(value = "select * from change_del_info where contract_code = ?1 order by ds desc",nativeQuery = true)
kangxiaoshan committed
12
    List<ChangeDelInfo> findByContract(String contranctCode);
kangxiaoshan committed
13

kangxiaoshan committed
14
    @Query(value = "select * from change_del_info where ds >= ?1  and ds <= ?2 order by creat_time desc",nativeQuery = true)
kangxiaoshan committed
15
    List<ChangeDelInfo> findOnStartDate(String startDate, String endDate);
kangxiaoshan committed
16
}