关于#idea#的问题,请各位专家解答!(语言-java)

这代码前端查询不出来,导师说是 Toint 识别不了,我的 idea 版本太新,让我找个别语句替换,应该怎么替换啊?各位朋友!这是图数据库

String searchCypher = String.format("MATCH (n) " +
"where labels(n)[0] <> '人' "+
"and toInt(left(replace(n.时间,'-',''),8))<=%s AND toInt(left(replace(n.时间,'-',''),8))>=%s AND n.地点 contains '%s' " +
"RETURN count(n) as number,toInt(left(replace(n.时间,'-',''),8)) AS timeDate,n.地点 AS address", date21, date11, address);

试试把 toInt() 换成 toInteger()函数