diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/service/MessagesServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/MessagesServiceImpl.java b/src/main/java/com/juick/service/MessagesServiceImpl.java index b135f3c2..369c508e 100644 --- a/src/main/java/com/juick/service/MessagesServiceImpl.java +++ b/src/main/java/com/juick/service/MessagesServiceImpl.java @@ -349,7 +349,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ @Override public void setReadOnly(final int mid, final boolean readonly) { - getJdbcTemplate().update("UPDATE messages SET readonly=?", readonly); + getJdbcTemplate().update("UPDATE messages SET readonly=? WHERE message_id=?", readonly, mid); } @Transactional(readOnly = true) |