增加 mybatis plus join 集成的修改建议

This commit is contained in:
YunaiV
2023-03-11 18:23:07 +08:00
parent 670f67e551
commit ef510f9478
3 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import org.springframework.context.annotation.Configuration;
import java.util.List;
// TODO @升平:是不是作为 YudaoMybatisAutoConfiguration 的 bean 即可呀?然后 getMethodList 不用重写
@Configuration
public class MybatisPlusJoinConfiguration extends JoinDefaultSqlInjector {

View File

@ -17,6 +17,8 @@ import java.util.List;
/**
* 在 MyBatis Plus 的 BaseMapper 的基础上拓展,提供更多的能力
*
* 为什么继承 JoinBaseMapper 接口?支持 MyBatis Plus 多表 Join 的能力。
*/
public interface BaseMapperX<T> extends JoinBaseMapper<T> {