feat: 更新分期方案初始化脚本,匹配最新表结构

- 更新表名和字段名为小写格式
- 修正字段类型以匹配实体类定义
- 新增缺失字段:scheme_type, down_payment_ratio等
- 添加索引优化查询性能
- 完善表和字段注释
This commit is contained in:
Admin
2025-09-11 18:42:41 +08:00
parent 9f5a484689
commit aca5fb0a44
1165 changed files with 497 additions and 900 deletions

109
pom.xml
View File

@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-vue-plus</artifactId>
<artifactId>LCXiaoguan</artifactId>
<version>${revision}</version>
<name>RuoYi-Vue-Plus</name>
<name>LCXiaoguan</name>
<url>https://gitee.com/dromara/RuoYi-Vue-Plus</url>
<description>Dromara RuoYi-Vue-Plus多租户管理系统</description>
<description>LCXiaoguan Multi-tenant Management System</description>
<properties>
<revision>5.4.1</revision>
@ -37,26 +37,26 @@
<lombok.version>1.18.36</lombok.version>
<bouncycastle.version>1.80</bouncycastle.version>
<justauth.version>1.16.7</justauth.version>
<!-- 离线IP地址定位库 -->
<!-- Offline IP address location library -->
<ip2region.version>2.7.0</ip2region.version>
<!-- OSS 配置 -->
<!-- OSS configuration -->
<aws.sdk.version>2.28.22</aws.sdk.version>
<!-- SMS 配置 -->
<!-- SMS configuration -->
<sms4j.version>3.3.4</sms4j.version>
<!-- 限制框架中的fastjson版本 -->
<!-- Restrict fastjson version in framework -->
<fastjson.version>1.2.83</fastjson.version>
<!-- 面向运行时的D-ORM依赖 -->
<!-- Runtime-oriented D-ORM dependency -->
<anyline.version>8.7.2-20250603</anyline.version>
<!-- 工作流配置 -->
<!-- Workflow configuration -->
<warm-flow.version>1.7.4</warm-flow.version>
<!-- 插件版本 -->
<!-- Plugin versions -->
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
<maven-war-plugin.version>3.4.0</maven-war-plugin.version>
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
<maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
<flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
<!-- 打包默认跳过测试 -->
<!-- Skip tests by default when packaging -->
<skipTests>true</skipTests>
</properties>
@ -64,7 +64,7 @@
<profile>
<id>local</id>
<properties>
<!-- 环境标识,需要与配置文件的名称相对应 -->
<!-- Environment identifier, needs to match configuration file name -->
<profiles.active>local</profiles.active>
<logging.level>info</logging.level>
<monitor.username>ruoyi</monitor.username>
@ -74,14 +74,14 @@
<profile>
<id>dev</id>
<properties>
<!-- 环境标识,需要与配置文件的名称相对应 -->
<!-- Environment identifier, needs to match configuration file name -->
<profiles.active>dev</profiles.active>
<logging.level>info</logging.level>
<monitor.username>ruoyi</monitor.username>
<monitor.password>123456</monitor.password>
</properties>
<activation>
<!-- 默认环境 -->
<!-- Default environment -->
<activeByDefault>true</activeByDefault>
</activation>
</profile>
@ -96,11 +96,11 @@
</profile>
</profiles>
<!-- 依赖声明 -->
<!-- Dependency declarations -->
<dependencyManagement>
<dependencies>
<!-- SpringBoot的依赖配置-->
<!-- SpringBoot dependency configuration -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
@ -109,7 +109,7 @@
<scope>import</scope>
</dependency>
<!-- hutool 的依赖配置-->
<!-- hutool dependency configuration -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-bom</artifactId>
@ -118,7 +118,7 @@
<scope>import</scope>
</dependency>
<!-- Warm-Flow国产工作流引擎, 在线文档:http://warm-flow.cn/ -->
<!-- Warm-Flow domestic workflow engine online documentation: http://warm-flow.cn/ -->
<dependency>
<groupId>org.dromara.warm</groupId>
<artifactId>warm-flow-mybatis-plus-sb3-starter</artifactId>
@ -130,17 +130,17 @@
<version>${warm-flow.version}</version>
</dependency>
<!-- JustAuth 的依赖配置-->
<!-- JustAuth dependency configuration -->
<dependency>
<groupId>me.zhyd.oauth</groupId>
<artifactId>JustAuth</artifactId>
<version>${justauth.version}</version>
</dependency>
<!-- common 的依赖配置-->
<!-- common dependency configuration -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-bom</artifactId>
<artifactId>LCXiaoguan-common-bom</artifactId>
<version>${revision}</version>
<type>pom</type>
<scope>import</scope>
@ -170,20 +170,20 @@
<version>${fastexcel.version}</version>
</dependency>
<!-- velocity代码生成使用模板 -->
<!-- velocity code generation template -->
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity-engine-core</artifactId>
<version>${velocity.version}</version>
</dependency>
<!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
<!-- Sa-Token permission authentication, online documentation: http://sa-token.dev33.cn/ -->
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot3-starter</artifactId>
<version>${satoken.version}</version>
</dependency>
<!-- Sa-Token 整合 jwt -->
<!-- Sa-Token integration jwt -->
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-jwt</artifactId>
@ -201,7 +201,7 @@
<version>${satoken.version}</version>
</dependency>
<!-- dynamic-datasource 多数据源-->
<!-- dynamic-datasource multi-data source -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
@ -232,32 +232,32 @@
<version>${mybatis-plus.version}</version>
</dependency>
<!-- sql性能分析插件 -->
<!-- sql performance analysis plugin -->
<dependency>
<groupId>p6spy</groupId>
<artifactId>p6spy</artifactId>
<version>${p6spy.version}</version>
</dependency>
<!-- AWS SDK for Java 2.x -->
<!-- AWS SDK for Java 2.x -->
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
<version>${aws.sdk.version}</version>
</dependency>
<!-- 基于 AWS CRT S3 客户端的性能增强的 S3 传输管理器 -->
<!-- Performance enhanced S3 transfer manager based on AWS CRT S3 client -->
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3-transfer-manager</artifactId>
<version>${aws.sdk.version}</version>
</dependency>
<!-- 将基于 Netty 的 HTTP 客户端从类路径中移除 -->
<!-- Remove Netty-based HTTP client from classpath -->
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>netty-nio-client</artifactId>
<version>${aws.sdk.version}</version>
</dependency>
<!--短信sms4j-->
<!-- SMS sms4j -->
<dependency>
<groupId>org.dromara.sms4j</groupId>
<artifactId>sms4j-spring-boot-starter</artifactId>
@ -275,7 +275,7 @@
<version>${spring-boot-admin.version}</version>
</dependency>
<!--redisson-->
<!-- redisson -->
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson-spring-boot-starter</artifactId>
@ -300,7 +300,7 @@
<version>${snailjob.version}</version>
</dependency>
<!-- 加密包引入 -->
<!-- Encryption package import -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15to18</artifactId>
@ -313,7 +313,7 @@
<version>${mapstruct-plus.version}</version>
</dependency>
<!-- 离线IP地址定位库 ip2region -->
<!-- Offline IP address location library ip2region -->
<dependency>
<groupId>org.lionsoul</groupId>
<artifactId>ip2region</artifactId>
@ -328,47 +328,47 @@
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-system</artifactId>
<artifactId>LCXiaoguan-system</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-job</artifactId>
<artifactId>LCXiaoguan-job</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-generator</artifactId>
<artifactId>LCXiaoguan-generator</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-demo</artifactId>
<artifactId>LCXiaoguan-demo</artifactId>
<version>${revision}</version>
</dependency>
<!-- 工作流模块 -->
<!-- Workflow module -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-workflow</artifactId>
<artifactId>LCXiaoguan-workflow</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-businessdata</artifactId>
<artifactId>LCXiaoguan-businessdata</artifactId>
<version>${revision}</version>
</dependency>
</dependencies>
</dependencyManagement>
<modules>
<module>ruoyi-admin</module>
<module>ruoyi-common</module>
<module>ruoyi-extend</module>
<module>ruoyi-modules</module>
<module>LCXiaoguan-admin</module>
<module>LCXiaoguan-common</module>
<module>LCXiaoguan-extend</module>
<module>LCXiaoguan-modules</module>
</modules>
<packaging>pom</packaging>
@ -414,20 +414,20 @@
</compilerArgs>
</configuration>
</plugin>
<!-- 单元测试使用 -->
<!-- Unit test usage -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<argLine>-Dfile.encoding=UTF-8</argLine>
<!-- 根据打包环境执行对应的@Tag测试方法 -->
<!-- Execute corresponding @Tag test methods based on packaging environment -->
<groups>${profiles.active}</groups>
<!-- 排除标签 -->
<!-- Exclude tags -->
<excludedGroups>exclude</excludedGroups>
</configuration>
</plugin>
<!-- 统一版本号管理 -->
<!-- Unified version management -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
@ -457,18 +457,18 @@
<resources>
<resource>
<directory>src/main/resources</directory>
<!-- 关闭过滤 -->
<!-- Disable filtering -->
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<!-- 引入所有 匹配文件进行过滤 -->
<!-- Include all matching files for filtering -->
<includes>
<include>application*</include>
<include>bootstrap*</include>
<include>banner*</include>
</includes>
<!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
<!-- Enable filtering, variables in this resource will be replaced by filter values -->
<filtering>true</filtering>
</resource>
</resources>
@ -493,12 +493,9 @@
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>