Created
December 21, 2016 14:25
-
-
Save dario61081/18875107e174a54358034bac658b2a75 to your computer and use it in GitHub Desktop.
MyBatis session factory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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