35 lines
867 B
Java
35 lines
867 B
Java
package com.gzzn.omms.msgexchangeapi.dao;
|
|
|
|
import java.util.List;
|
|
|
|
import org.springframework.data.domain.Pageable;
|
|
import org.springframework.data.jpa.repository.Query;
|
|
import org.springframework.data.repository.CrudRepository;
|
|
|
|
import com.gzzn.omms.msgexchangeapi.entiy.Cminmsg;
|
|
|
|
|
|
public interface CminmsgDao extends CrudRepository<Cminmsg, Long> {
|
|
|
|
/**
|
|
*
|
|
* @return
|
|
*/
|
|
@Query("select count(*) from Cminmsg c where cminmsgsDateProcessed is not null")
|
|
public Long getCminmsgsDateProcessedIsNotNullCount();
|
|
|
|
|
|
/**
|
|
* 根据处理时间字段查询列表,Null情况
|
|
* @param date
|
|
* @return
|
|
*/
|
|
public List<Cminmsg> findByCminmsgsDateProcessedIsNull(Pageable pageable);
|
|
|
|
/**
|
|
* 非空情况
|
|
* @return
|
|
*/
|
|
public List<Cminmsg> findByCminmsgsDateProcessedIsNotNull(Pageable pageable);
|
|
}
|