You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Queryquery = em.createQuery("update Remind o set o.status=:status, o.readTimeFormat=:readTimeFormat where o.receiverUserId=:receiverUserId and o.status <:status2")
89
+
.setParameter("status", 20)
90
+
.setParameter("readTimeFormat", time)
91
+
.setParameter("receiverUserId", userId)
92
+
.setParameter("status2", 20);
93
+
i += query.executeUpdate();
94
+
95
+
}else{//带下划线对象
96
+
Queryquery = em.createQuery("update Remind_"+tableNumber+" o set o.status=:status, o.readTimeFormat=:readTimeFormat where o.receiverUserId=:receiverUserId and o.status <:status2")
Queryquery = em.createQuery("update SubscriptionSystemNotify o set o.status=:status, o.readTime=:readTime where o.userId=:userId and o.status <:status2")
298
+
.setParameter("status", 20)
299
+
.setParameter("readTime", time)
300
+
.setParameter("userId", userId)
301
+
.setParameter("status2", 20);
302
+
i += query.executeUpdate();
303
+
304
+
}else{//带下划线对象
305
+
Queryquery = em.createQuery("update SubscriptionSystemNotify_"+tableNumber+" o set o.status=:status, o.readTime=:readTime where o.userId=:userId and o.status <:status2")
0 commit comments