Skip to content

Commit

Permalink
小傅哥,feat:更新代码
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhengwei committed Feb 16, 2023
1 parent 7cb8496 commit aabf087
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void test_MapperProxyFactory() {
public void test_proxy_class() {
IUserDao userDao = (IUserDao) Proxy.newProxyInstance(
Thread.currentThread().getContextClassLoader(),
new Class[]{IUserDao.class}, (proxy, method, args) -> "你被代理了!");
new Class[]{IUserDao.class}, (proxy, method, args) -> "你的操作被代理了!");
String result = userDao.queryUserName("10001");
System.out.println("测试结果:" + result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ public DefaultSqlSession(MapperRegistry mapperRegistry) {

@Override
public <T> T selectOne(String statement) {
return (T) ("你被代理了!" + statement);
return (T) ("你的操作被代理了!" + statement);
}

@Override
public <T> T selectOne(String statement, Object parameter) {
return (T) ("你被代理了!" + "方法:" + statement + " 入参:" + parameter);
return (T) ("你的操作被代理了!" + "方法:" + statement + " 入参:" + parameter);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ public DefaultSqlSession(Configuration configuration) {

@Override
public <T> T selectOne(String statement) {
return (T) ("你被代理了!" + statement);
return (T) ("你的操作被代理了!" + statement);
}

@Override
public <T> T selectOne(String statement, Object parameter) {
MappedStatement mappedStatement = configuration.getMappedStatement(statement);
return (T) ("你被代理了!" + "\n方法:" + statement + "\n入参:" + parameter + "\n待执行SQL:" + mappedStatement.getSql());
return (T) ("你的操作被代理了!" + "\n方法:" + statement + "\n入参:" + parameter + "\n待执行SQL:" + mappedStatement.getSql());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public DefaultSqlSession(Configuration configuration) {

@Override
public <T> T selectOne(String statement) {
return (T) ("你被代理了!" + statement);
return (T) ("你的操作被代理了!" + statement);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public DefaultSqlSession(Configuration configuration) {

@Override
public <T> T selectOne(String statement) {
return (T) ("你被代理了!" + statement);
return (T) ("你的操作被代理了!" + statement);
}

@Override
Expand Down

0 comments on commit aabf087

Please sign in to comment.