abel533 / MyBatis-Spring-Boot

Spring Boot集成MyBatis的基础项目
3.37k stars 1.59k forks source link

通过主键查询时,IDynamicTableName不起作用 #154

Open maheng-hub opened 5 years ago

maheng-hub commented 5 years ago

动态解析表名的时候会先判断参数是否是IDynamicTableName的子类,而selectByPrimaryKey的参数是Integer类型,因此不起作用,现在通过主键查询的时候暂时用select了,但希望能解决一下这个问题