日期:2014-05-17 浏览次数:20655 次
public interface TestUserMapper {
@Select("select * from test_user where username like #{username}")
public List<TestUser> getUserListByNames(String username);
}
testUserList = testUserService.getUserListByNames("'%"+ username + "%'");
testUserList = testUserService.getUserListByNames("%"+ username + "%");