完了していない投票を表示したいのですが、現在のユーザーはこれらの投票に関与していません。
私はこれらの基準から始めました:
def displayAdherantByVote(){
def adherant=springSecurityService.currentUser.username
def elec=Election.withCriteria(){
createAlias("adherant", "adherant")
createAlias("candidature", "candidature")
eq('adherant.firstName',adherant)
projections{
property('candidature.vote')
}
def newvote(){
def votes= Vote.createCriteria()
def results=votes.list{
ge("enddateelection",new Date())
le("startdateelection",new Date())
}