我有实体
@GraphId
private Long id;
@GraphProperty
private Long senderId;
@GraphProperty
private String subject;
@GraphProperty
private Date dateSent;
我想按 userId 和日期搜索
我的方法是
List<Email> findBySenderIdAndDateSentBetween(Long userId, Date startDate, Date endDate);
但是在调用它之后我有这个异常
通过 newStartDate Fri Apr 27 00:00:00 AMST 2001 newEndDate Wed Apr 17 00:00:00 AMT 2013
"START `email`=node:__types__(className="com.backend.core.neo.entities.Email") WHERE `email`.`senderId`! = {0} AND `email`.`dateSent`! null {1} RETURN `email`"
^
at org.springframework.data.neo4j.support.query.CypherQueryEngine.query(CypherQueryEngine.java:52)
at org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.dispatchQuery(GraphRepositoryQuery.java:103)
at org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.execute(GraphRepositoryQuery.java:81)
at org.springframework.data.neo4j.repository.query.DerivedCypherRepositoryQuery.execute(DerivedCypherRepositoryQuery.java:39)
没有日期它工作正常
我在前端有转换器,我的日期模式是 yyyy-MM-dd 。
我不明白我该如何解决这个问题。
谢谢。