错误:select t from user t where t.endDate-t.startDate=1正确:select t from user t where t.endDate=t.startDate+1