引入多数据源及内存数据库
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
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);
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
package com.gzzn.omms.msgexchangeapi.dao;
|
||||
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
|
||||
import com.gzzn.omms.msgexchangeapi.entiy.Cmoutmsg;
|
||||
|
||||
|
||||
public interface CmoutmsgDao extends CrudRepository<Cmoutmsg, Long> {
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user