package ssw.{app_code}.mapper; // ✅ Mapper 放 ssw.{app_code}.mapper (ssw-common 共享 SswMapperConfig 自动注册) import ssw.{app_code}.entity.XxxEntity; import jnpf.base.mapper.SuperMapper; /** * {业务描述} Mapper * * ⭐ FIX-TEMPLATE-V0.12+ (jxcj 实战验证 端到端 200): * Mapper 放 `ssw.{app_code}.mapper` (不是 jnpf.mapper!) * 由 ssw-common 共享 SswMapperConfig (@MapperScan("ssw.**.mapper")) 统一注册. * 不需要自己写 MapperConfig. 业务包零 MapperConfig 配置 (BS-14 集中化). * * ⚠️ 必须同时创建同名 XML 文件 (即使是空的): * src/main/java/ssw/{app_code}/mapper/XxxMapper.xml * * * * * ⚠️ 必备配套 2 件 (BS-14/15, 见 ssw-pack-init): * 1) ssw-{app_code}-biz/pom.xml 加 ssw-common-biz 依赖 * (共享 ssw.common.config.SswMapperConfig 含 @MapperScan("ssw.**.mapper")) * 2) application-dev.yml: mybatis-plus.type-aliases-package: jnpf.**.entity,ssw.**.entity * * ❌ 没有 XML 文件会导致 "Invalid bound statement" 错误. * ❌ 缺 ssw-common-biz 依赖会启动报 NoSuchBeanDefinitionException (BS-14). */ public interface XxxMapper extends SuperMapper { }