[英]comparing against slick.lifted.Rep[java.sql.Timestamp]
I have the next command: 我有下一个命令:
def myfunction(depIDs: Option[String], iniDate: Option[String] ....
val iniDateValue = Timestamp.valueOf(iniDate.get)
..........
........
ai <- AppointmentItems.table if ((ai.projectService === prjs.id.getOrElse("NULL")) && (ai.start.get.before(iniDateValue )))
........
'start' is a field declared as “开始”是一个声明为的字段
start: Option[java.sql.Timestamp
We are using Slick. 我们正在使用Slick。 I got the error
我得到了错误
value before is not a member of slick.lifted.Rep[java.sql.Timestamp]
as I am trying to see if ai.start is before iniDateValue. 当我试图查看ai.start是否在inDateValue之前。
Is there a way to avoid this error? 有办法避免这种错误吗?
Thanks 谢谢
Try 尝试
ai.start.get < iniDateValue
instead of 代替
ai.start.get.before(iniDateValue)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.