Commit 3df825034b0a2e334fd0a6b66e558645f98c411b
1 parent
eef64f02
chore: update deps
Showing
3 changed files
with
22 additions
and
8 deletions
README.md
| ... | ... | @@ -191,19 +191,19 @@ ps:核心功能已经实现,正在对接微信小程序中... |
| 191 | 191 | | [Spring Boot](https://spring.io/projects/spring-boot) | 应用开发框架 | 2.7.7 | [文档](https://github.com/YunaiV/SpringBoot-Labs) | |
| 192 | 192 | | [MySQL](https://www.mysql.com/cn/) | 数据库服务器 | 5.7 / 8.0+ | | |
| 193 | 193 | | [Druid](https://github.com/alibaba/druid) | JDBC 连接池、监控组件 | 1.2.15 | [文档](http://www.iocoder.cn/Spring-Boot/datasource-pool/?yudao) | |
| 194 | -| [MyBatis Plus](https://mp.baomidou.com/) | MyBatis 增强工具包 | 3.5.3 | [文档](http://www.iocoder.cn/Spring-Boot/MyBatis/?yudao) | | |
| 194 | +| [MyBatis Plus](https://mp.baomidou.com/) | MyBatis 增强工具包 | 3.5.3.1 | [文档](http://www.iocoder.cn/Spring-Boot/MyBatis/?yudao) | | |
| 195 | 195 | | [Dynamic Datasource](https://dynamic-datasource.com/) | 动态数据源 | 3.6.1 | [文档](http://www.iocoder.cn/Spring-Boot/datasource-pool/?yudao) | |
| 196 | 196 | | [Redis](https://redis.io/) | key-value 数据库 | 5.0 / 6.0 | | |
| 197 | 197 | | [Redisson](https://github.com/redisson/redisson) | Redis 客户端 | 3.18.0 | [文档](http://www.iocoder.cn/Spring-Boot/Redis/?yudao) | |
| 198 | 198 | | [Spring MVC](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc) | MVC 框架 | 5.3.24 | [文档](http://www.iocoder.cn/SpringMVC/MVC/?yudao) | |
| 199 | -| [Spring Security](https://github.com/spring-projects/spring-security) | Spring 安全框架 | 5.7.5 | [文档](http://www.iocoder.cn/Spring-Boot/Spring-Security/?yudao) | | |
| 199 | +| [Spring Security](https://github.com/spring-projects/spring-security) | Spring 安全框架 | 5.7.6 | [文档](http://www.iocoder.cn/Spring-Boot/Spring-Security/?yudao) | | |
| 200 | 200 | | [Hibernate Validator](https://github.com/hibernate/hibernate-validator) | 参数校验组件 | 6.2.5 | [文档](http://www.iocoder.cn/Spring-Boot/Validation/?yudao) | |
| 201 | 201 | | [Flowable](https://github.com/flowable/flowable-engine) | 工作流引擎 | 6.8.0 | [文档](https://doc.iocoder.cn/bpm/) | |
| 202 | 202 | | [Quartz](https://github.com/quartz-scheduler) | 任务调度组件 | 2.3.2 | [文档](http://www.iocoder.cn/Spring-Boot/Job/?yudao) | |
| 203 | 203 | | [Knife4j](https://gitee.com/xiaoym/knife4j) | Swagger 增强 UI 实现 | 3.0.3 | [文档](http://www.iocoder.cn/Spring-Boot/Swagger/?yudao) | |
| 204 | 204 | | [Resilience4j](https://github.com/resilience4j/resilience4j) | 服务保障组件 | 1.7.1 | [文档](http://www.iocoder.cn/Spring-Boot/Resilience4j/?yudao) | |
| 205 | 205 | | [SkyWalking](https://skywalking.apache.org/) | 分布式应用追踪系统 | 8.12.0 | [文档](http://www.iocoder.cn/Spring-Boot/SkyWalking/?yudao) | |
| 206 | -| [Spring Boot Admin](https://github.com/codecentric/spring-boot-admin) | Spring Boot 监控平台 | 2.7.9 | [文档](http://www.iocoder.cn/Spring-Boot/Admin/?yudao) | | |
| 206 | +| [Spring Boot Admin](https://github.com/codecentric/spring-boot-admin) | Spring Boot 监控平台 | 2.7.10 | [文档](http://www.iocoder.cn/Spring-Boot/Admin/?yudao) | | |
| 207 | 207 | | [Jackson](https://github.com/FasterXML/jackson) | JSON 工具库 | 2.13.3 | | |
| 208 | 208 | | [MapStruct](https://mapstruct.org/) | Java Bean 转换 | 1.5.3.Final | [文档](http://www.iocoder.cn/Spring-Boot/MapStruct/?yudao) | |
| 209 | 209 | | [Lombok](https://projectlombok.org/) | 消除冗长的 Java 代码 | 1.18.24 | [文档](http://www.iocoder.cn/Spring-Boot/Lombok/?yudao) | |
| ... | ... | @@ -227,7 +227,7 @@ ps:核心功能已经实现,正在对接微信小程序中... |
| 227 | 227 | | [TypeScript](https://www.typescriptlang.org/docs/) | TypeScript | 4.9.4 | |
| 228 | 228 | | [pinia](https://pinia.vuejs.org/) | vuex5 | 2.0.28 | |
| 229 | 229 | | [vue-i18n](https://kazupon.github.io/vue-i18n/zh/introduction.html/) | 国际化 | 9.2.2 | |
| 230 | -| [vxe-table](https://vxetable.cn/) | vue最强表单 | 4.3.7 | | |
| 230 | +| [vxe-table](https://vxetable.cn/) | vue最强表单 | 4.3.9 | | |
| 231 | 231 | |
| 232 | 232 | ### [管理后台 uni-app 跨端](./yudao-ui-admin-uniapp) |
| 233 | 233 | ... | ... |
yudao-dependencies/pom.xml
| ... | ... | @@ -32,7 +32,7 @@ |
| 32 | 32 | <resilience4j.version>1.7.1</resilience4j.version> |
| 33 | 33 | <!-- 监控相关 --> |
| 34 | 34 | <skywalking.version>8.12.0</skywalking.version> |
| 35 | - <spring-boot-admin.version>2.7.9</spring-boot-admin.version> | |
| 35 | + <spring-boot-admin.version>2.7.10</spring-boot-admin.version> | |
| 36 | 36 | <opentracing.version>0.33.0</opentracing.version> |
| 37 | 37 | <!-- Test 测试相关 --> |
| 38 | 38 | <podam.version>7.2.11.RELEASE</podam.version> |
| ... | ... | @@ -45,7 +45,7 @@ |
| 45 | 45 | <lombok.version>1.18.24</lombok.version> |
| 46 | 46 | <mapstruct.version>1.5.3.Final</mapstruct.version> |
| 47 | 47 | <hutool.version>5.8.11</hutool.version> |
| 48 | - <easyexcel.verion>3.1.4</easyexcel.verion> | |
| 48 | + <easyexcel.verion>3.1.5</easyexcel.verion> | |
| 49 | 49 | <velocity.version>2.3</velocity.version> |
| 50 | 50 | <screw.version>1.0.5</screw.version> |
| 51 | 51 | <fastjson.version>1.2.83</fastjson.version> |
| ... | ... | @@ -64,7 +64,7 @@ |
| 64 | 64 | <minio.version>8.4.6</minio.version> |
| 65 | 65 | <aliyun-java-sdk-core.version>4.6.3</aliyun-java-sdk-core.version> |
| 66 | 66 | <aliyun-java-sdk-dysmsapi.version>2.2.1</aliyun-java-sdk-dysmsapi.version> |
| 67 | - <tencentcloud-sdk-java.version>3.1.660</tencentcloud-sdk-java.version> | |
| 67 | + <tencentcloud-sdk-java.version>3.1.667</tencentcloud-sdk-java.version> | |
| 68 | 68 | <justauth.version>1.4.0</justauth.version> |
| 69 | 69 | <jimureport.version>1.5.6</jimureport.version> |
| 70 | 70 | <xercesImpl.version>2.12.2</xercesImpl.version> | ... | ... |
yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/mybatis/core/mapper/BaseMapperX.java
| ... | ... | @@ -2,7 +2,6 @@ package cn.iocoder.yudao.framework.mybatis.core.mapper; |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.common.pojo.PageParam; |
| 4 | 4 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 5 | -import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; | |
| 6 | 5 | import cn.iocoder.yudao.framework.mybatis.core.util.MyBatisUtils; |
| 7 | 6 | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| 8 | 7 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| ... | ... | @@ -10,6 +9,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| 10 | 9 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 11 | 10 | import com.baomidou.mybatisplus.core.metadata.IPage; |
| 12 | 11 | import com.baomidou.mybatisplus.core.toolkit.support.SFunction; |
| 12 | +import com.baomidou.mybatisplus.extension.toolkit.Db; | |
| 13 | 13 | import org.apache.ibatis.annotations.Param; |
| 14 | 14 | |
| 15 | 15 | import java.util.Collection; |
| ... | ... | @@ -92,8 +92,22 @@ public interface BaseMapperX<T> extends BaseMapper<T> { |
| 92 | 92 | entities.forEach(this::insert); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | + /** | |
| 96 | + * 批量插入,适合大量数据插入 | |
| 97 | + * | |
| 98 | + * @param entities 实体们 | |
| 99 | + * @param size 插入数量 Db.saveBatch 默认为1000 | |
| 100 | + */ | |
| 101 | + default void insertBatch(Collection<T> entities, int size) { | |
| 102 | + Db.saveBatch(entities, size); | |
| 103 | + } | |
| 104 | + | |
| 95 | 105 | default void updateBatch(T update) { |
| 96 | 106 | update(update, new QueryWrapper<>()); |
| 97 | 107 | } |
| 98 | 108 | |
| 109 | + default void updateBatch(Collection<T> entities, int size) { | |
| 110 | + Db.updateBatchById(entities, size); | |
| 111 | + } | |
| 112 | + | |
| 99 | 113 | } | ... | ... |