Skip to content

Instantly share code, notes, and snippets.

@dario61081
Created December 21, 2016 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dario61081/18875107e174a54358034bac658b2a75 to your computer and use it in GitHub Desktop.
Save dario61081/18875107e174a54358034bac658b2a75 to your computer and use it in GitHub Desktop.
MyBatis session factory
public void setDeliverStatus(String username, String status) {
try (SqlSession session = getSqlSessionFactory().openSession()) {
DeliverUserMapper mapper = session.getMapper(DeliverUserMapper.class);
mapper.setDeliverStatus(username, status);
session.commit();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment