@Override public List<Message> queryMessagebyUid(long uid) throws Exception { final String SQL = property.getSql("queryMessagebyUid", uid); return jdbcTemplate.query(SQL, messageMapper); }
@Override public void insertMessage(Message message) throws Exception { final String SQL = property.getSql("insertMessage", message.getUserinfo_test_id()); jdbcTemplate.update(SQL, new Object[] {message.getMessage()}); }