This skill provides specialized guidance for developing with MyBatis and MyBatis-Plus within the Leniu-Tengyun ecosystem. It ensures architectural consistency by enforcing specific project patterns, such as co-locating XML files with Mapper interfaces, implementing unique logic deletion flags (2 for normal, 1 for deleted), and standardizing pagination via PageHelper and PageVO. Developers can use this skill to generate high-performance Mapper code, handle complex dynamic SQL safely, and manage multi-tenant isolation or report-specific queries efficiently.
主な機能
01Automated PageHelper and PageVO pagination patterns for consistent API responses
02Enforcement of '1=Deleted, 2=Normal' logic deletion logic to prevent data inconsistency
03Tenant isolation control guidance using method and class-level @InterceptorIgnore
04Service layer injection standards using baseMapper naming and @Lazy for circular dependencies
05Standardized Mapper and XML template generation following project-specific co-location rules
0611 GitHub stars
ユースケース
01Creating robust CRUD operations using MyBatis-Plus BaseMapper and LambdaQueryWrapper
02Developing complex dynamic SQL in XML files while avoiding common pitfalls like SELECT *
03Implementing specialized report Mappers and cross-tenant data retrieval logic