diff --git a/ruoyi-common/ruoyi-common-orm/src/main/java/com/ruoyi/common/orm/config/MyBatisFlexConfig.java b/ruoyi-common/ruoyi-common-orm/src/main/java/com/ruoyi/common/orm/config/MyBatisFlexConfig.java index aab2a89..739b21b 100644 --- a/ruoyi-common/ruoyi-common-orm/src/main/java/com/ruoyi/common/orm/config/MyBatisFlexConfig.java +++ b/ruoyi-common/ruoyi-common-orm/src/main/java/com/ruoyi/common/orm/config/MyBatisFlexConfig.java @@ -25,7 +25,6 @@ import org.springframework.context.annotation.Configuration; * @author dataprince数据小王子 */ @Configuration -@MapperScan("${mybatis-flex.mapper-package}") public class MyBatisFlexConfig implements ConfigurationCustomizer, MyBatisFlexCustomizer { private static final Logger logger = LoggerFactory.getLogger("mybatis-flex-sql"); diff --git a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoCustomerMapper.java b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoCustomerMapper.java index 4600acf..fa9cd2c 100644 --- a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoCustomerMapper.java +++ b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoCustomerMapper.java @@ -3,18 +3,20 @@ package com.ruoyi.demo.mapper; import java.util.List; import com.ruoyi.demo.domain.DemoCustomer; import com.ruoyi.demo.domain.DemoGoods; +import org.apache.ibatis.annotations.Mapper; /** * 客户主表(mb)Mapper接口 - * + * * @author 数据小王子 * 2023-07-11 */ -public interface DemoCustomerMapper +@Mapper +public interface DemoCustomerMapper { /** * 查询客户主表(mb) - * + * * @param customerId 客户主表(mb)主键 * @return 客户主表(mb) */ @@ -22,7 +24,7 @@ public interface DemoCustomerMapper /** * 查询客户主表(mb)列表 - * + * * @param demoCustomer 客户主表(mb) * @return 客户主表(mb)集合 */ @@ -30,7 +32,7 @@ public interface DemoCustomerMapper /** * 新增客户主表(mb) - * + * * @param demoCustomer 客户主表(mb) * @return 结果 */ @@ -38,7 +40,7 @@ public interface DemoCustomerMapper /** * 修改客户主表(mb) - * + * * @param demoCustomer 客户主表(mb) * @return 结果 */ @@ -46,7 +48,7 @@ public interface DemoCustomerMapper /** * 删除客户主表(mb) - * + * * @param customerId 客户主表(mb)主键 * @return 结果 */ @@ -54,7 +56,7 @@ public interface DemoCustomerMapper /** * 批量删除客户主表(mb) - * + * * @param customerIds 需要删除的数据主键集合 * @return 结果 */ @@ -62,24 +64,24 @@ public interface DemoCustomerMapper /** * 批量删除商品子 - * + * * @param customerIds 需要删除的数据主键集合 * @return 结果 */ int deleteDemoGoodsByCustomerIds(Long[] customerIds); - + /** * 批量新增商品子 - * + * * @param demoGoodsList 商品子列表 * @return 结果 */ int batchDemoGoods(List demoGoodsList); - + /** * 通过客户主表(mb)主键删除商品子信息 - * + * * @param customerId 客户主表(mb)ID * @return 结果 */ diff --git a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoProductMapper.java b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoProductMapper.java index e806b41..3943a7d 100644 --- a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoProductMapper.java +++ b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoProductMapper.java @@ -2,18 +2,20 @@ package com.ruoyi.demo.mapper; import java.util.List; import com.ruoyi.demo.domain.DemoProduct; +import org.apache.ibatis.annotations.Mapper; /** * 产品树表(mb)Mapper接口 - * + * * @author 数据小王子 * 2023-07-11 */ -public interface DemoProductMapper +@Mapper +public interface DemoProductMapper { /** * 查询产品树表(mb) - * + * * @param productId 产品树表(mb)主键 * @return 产品树表(mb) */ @@ -21,7 +23,7 @@ public interface DemoProductMapper /** * 查询产品树表(mb)列表 - * + * * @param demoProduct 产品树表(mb) * @return 产品树表(mb)集合 */ @@ -29,7 +31,7 @@ public interface DemoProductMapper /** * 新增产品树表(mb) - * + * * @param demoProduct 产品树表(mb) * @return 结果 */ @@ -37,7 +39,7 @@ public interface DemoProductMapper /** * 修改产品树表(mb) - * + * * @param demoProduct 产品树表(mb) * @return 结果 */ @@ -45,7 +47,7 @@ public interface DemoProductMapper /** * 删除产品树表(mb) - * + * * @param productId 产品树表(mb)主键 * @return 结果 */ @@ -53,7 +55,7 @@ public interface DemoProductMapper /** * 批量删除产品树表(mb) - * + * * @param productIds 需要删除的数据主键集合 * @return 结果 */ diff --git a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoStudentMapper.java b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoStudentMapper.java index ffa5414..2d544d2 100644 --- a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoStudentMapper.java +++ b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoStudentMapper.java @@ -2,18 +2,20 @@ package com.ruoyi.demo.mapper; import java.util.List; import com.ruoyi.demo.domain.DemoStudent; +import org.apache.ibatis.annotations.Mapper; /** * 学生信息单表(mb)Mapper接口 - * + * * @author 数据小王子 * 2023-07-11 */ -public interface DemoStudentMapper +@Mapper +public interface DemoStudentMapper { /** * 查询学生信息单表(mb) - * + * * @param studentId 学生信息单表(mb)主键 * @return 学生信息单表(mb) */ @@ -21,7 +23,7 @@ public interface DemoStudentMapper /** * 查询学生信息单表(mb)列表 - * + * * @param demoStudent 学生信息单表(mb) * @return 学生信息单表(mb)集合 */ @@ -29,7 +31,7 @@ public interface DemoStudentMapper /** * 新增学生信息单表(mb) - * + * * @param demoStudent 学生信息单表(mb) * @return 结果 */ @@ -37,7 +39,7 @@ public interface DemoStudentMapper /** * 修改学生信息单表(mb) - * + * * @param demoStudent 学生信息单表(mb) * @return 结果 */ @@ -45,7 +47,7 @@ public interface DemoStudentMapper /** * 删除学生信息单表(mb) - * + * * @param studentId 学生信息单表(mb)主键 * @return 结果 */ @@ -53,7 +55,7 @@ public interface DemoStudentMapper /** * 批量删除学生信息单表(mb) - * + * * @param studentIds 需要删除的数据主键集合 * @return 结果 */