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 { /** * * @return */ @Query("select count(*) from Cminmsg c where cminmsgsDateProcessed is not null") public Long getCminmsgsDateProcessedIsNotNullCount(); /** * 根据处理时间字段查询列表,Null情况 * @param date * @return */ public List findByCminmsgsDateProcessedIsNull(Pageable pageable); /** * 非空情况 * @return */ public List findByCminmsgsDateProcessedIsNotNull(Pageable pageable); }