improve - subscribe event pop up register links automatically

This commit is contained in:
Sola
2015-12-26 00:39:15 +08:00
parent a506a7742f
commit 3e0c907655
9 changed files with 102 additions and 18 deletions

View File

@@ -72,6 +72,16 @@ public class TableTicket extends SQLCore {
}
}
@SuppressWarnings("unchecked")
public static List<Ticket> unsolved() {
try (Session s = SQLCore.sf.openSession()) {
return s.createCriteria(Ticket.class)
.add(Restrictions.ne(Ticket.PROPERTY_STATUS, Status.SOLVED))
.createCriteria(Ticket.PROPERTY_USER)
.list();
}
}
@SuppressWarnings("unchecked")
public static List<Object[]> track(int tid) {
try (Session s = SQLCore.sf.openSession()) {