Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbi authored Nov 29, 2019
1 parent 7a601e2 commit 02a3eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public interface MyMapper<T> {
import org.apache.ibatis.jdbc.SQL;
import tech.wetech.mybatis.builder.EntityMapping;
public class MyEntitySqlBuilder {
public String deleteByPrimaryKey(EntityMapping entityMapping) {
public String selectById(EntityMapping entityMapping) {
return new SQL() {{
SELECT("*");
FROM(entityMapping.getTableName());
Expand All @@ -514,4 +514,4 @@ public interface UserMapper extends MyMapper<User> {
```
## 示例工程

示例工程请查阅项目mybatis-ext-simple模块,提供原生Java版、SpringMVC版、SpringBoot版集成示例。
示例工程请查阅项目mybatis-ext-simple模块,提供原生Java版、SpringMVC版、SpringBoot版集成示例。

0 comments on commit 02a3eb5

Please sign in to comment.