Compare commits

...

3 Commits

Author SHA1 Message Date
wudi 317d32e8fa Merge pull request 'zhaokangyu' (#4) from zhaokangyu into master
Reviewed-on: #4
2024-03-03 10:47:54 +08:00
zhaokangyu 1eb1938a59 添加 计费规则 2024-03-02 17:21:51 +08:00
zhaokangyu f55d493250 计价 2024-03-01 15:00:50 +08:00
108 changed files with 2832 additions and 151 deletions

8
.idea/.gitignore vendored
View File

@ -1,8 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@ -6,25 +6,31 @@
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="boot-auth" />
<module name="boot-common-seata" />
<module name="boot-visual-monitor" />
<module name="boot-job" />
<module name="boot-common-redis" />
<module name="boot-valuation-server" />
<module name="boot-valuation-rule-common" />
<module name="boot-common-datasource" />
<module name="boot-gen" />
<module name="boot-common-core" />
<module name="boot-common-swagger" />
<module name="boot-system-server" />
<module name="boot-auth" />
<module name="boot-valuation-rule-remote" />
<module name="boot-valuation-rule-server" />
<module name="boot-file-common" />
<module name="boot-file-remote" />
<module name="boot-system-remote" />
<module name="boot-job" />
<module name="boot-valuation-remote" />
<module name="boot-valuation-common" />
<module name="boot-common-log" />
<module name="boot-common-datascope" />
<module name="boot-common-redis" />
<module name="boot-common-security" />
<module name="boot-common-datasource" />
<module name="boot-file-server" />
<module name="boot-system-common" />
<module name="boot-gen" />
<module name="boot-common-core" />
<module name="boot-gateway" />
<module name="boot-common-swagger" />
<module name="boot-system-server" />
</profile>
</annotationProcessing>
</component>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/boot-auth/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-auth/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-common/boot-common-core/src/main/java" charset="UTF-8" />
@ -45,12 +45,27 @@
<file url="file://$PROJECT_DIR$/boot-modules/boot-system/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-modules/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-modules/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation-rule/boot-valuation-rule-common/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation-rule/boot-valuation-rule-common/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation-rule/boot-valuation-rule-remote/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation-rule/boot-valuation-rule-remote/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation-rule/boot-valuation-rule-server/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation-rule/boot-valuation-rule-server/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation-rule/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation-rule/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation/boot-valuation-common/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation/boot-valuation-common/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation/boot-valuation-remote/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation/boot-valuation-remote/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation/boot-valuation-server/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation/boot-valuation-server/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-valuation/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-visual/boot-monitor/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-visual/boot-monitor/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-visual/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/boot-visual/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
<file url="PROJECT" charset="UTF-8" />
</component>
</project>

View File

@ -9,7 +9,7 @@
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" />
<option name="url" value="https://repo.maven.apache.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />

168
.idea/workspace.xml 100644
View File

@ -0,0 +1,168 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="4ff1d9f5-2c42-4e1d-b888-deb3ee69a0d5" name="Changes" comment="计价">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_BRANCH_BY_REPOSITORY">
<map>
<entry key="$PROJECT_DIR$" value="master" />
</map>
</option>
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectColorInfo">{
&quot;associatedIndex&quot;: 2
}</component>
<component name="ProjectId" id="2d4jefPdsJdNUFTapNbGXQbTTOB" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectViewState">
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;RequestMappingsPanelOrder0&quot;: &quot;0&quot;,
&quot;RequestMappingsPanelOrder1&quot;: &quot;1&quot;,
&quot;RequestMappingsPanelWidth0&quot;: &quot;75&quot;,
&quot;RequestMappingsPanelWidth1&quot;: &quot;75&quot;,
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
&quot;git-widget-placeholder&quot;: &quot;zhaokangyu&quot;,
&quot;jdk.selected.JAVA_MODULE&quot;: &quot;17&quot;,
&quot;last_opened_file_path&quot;: &quot;D:/car/boot-Cloud1/pom.xml&quot;,
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
&quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
&quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
&quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
&quot;project.structure.last.edited&quot;: &quot;Modules&quot;,
&quot;project.structure.proportion&quot;: &quot;0.0&quot;,
&quot;project.structure.side.proportion&quot;: &quot;0.29681978&quot;,
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
}
}</component>
<component name="ReactorSettings">
<option name="notificationShown" value="true" />
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="D:\car\boot-Cloud1" />
</key>
</component>
<component name="RunDashboard">
<option name="configurationTypes">
<set>
<option value="SpringBootApplicationConfigurationType" />
</set>
</option>
</component>
<component name="RunManager" selected="Spring Boot.BootValuationRuleApplication">
<configuration name="BootAuthApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="boot-auth" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.boot.auth.BootAuthApplication" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="BootFileApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="boot-file-server" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.boot.file.BootFileApplication" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="BootGatewayApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="boot-gateway" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.boot.gateway.BootGatewayApplication" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="BootGenApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="boot-gen" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.boot.gen.BootGenApplication" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="BootJobApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="boot-job" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.boot.job.BootJobApplication" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="BootMonitorApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="boot-visual-monitor" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.boot.modules.monitor.BootMonitorApplication" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="BootSystemApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="boot-system-server" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.boot.system.BootSystemApplication" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="BootValuationApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="boot-valuation-server" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.boot.valuation.BootValuationApplication" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="BootValuationRuleApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="boot-valuation-rule-server" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.boot.rule.BootValuationRuleApplication" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="4ff1d9f5-2c42-4e1d-b888-deb3ee69a0d5" name="Changes" comment="" />
<created>1709274342728</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1709274342728</updated>
<workItem from="1709274347013" duration="1613000" />
<workItem from="1709275989973" duration="29000" />
<workItem from="1709276029497" duration="1553000" />
<workItem from="1709349938279" duration="86000" />
</task>
<task id="LOCAL-00001" summary="计价">
<option name="closed" value="true" />
<created>1709276471469</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1709276471470</updated>
</task>
<option name="localTasksCounter" value="2" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="计价" />
<option name="LAST_COMMIT_MESSAGE" value="计价" />
</component>
</project>

View File

@ -14,13 +14,14 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -14,13 +14,14 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -113,6 +113,11 @@
<artifactId>swagger-annotations</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -14,16 +14,17 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
sentinel:
# 取消控制台懒加载
eager: true
@ -34,7 +35,7 @@ spring:
datasource:
ds1:
nacos:
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
dataId: sentinel-boot-gateway
groupId: DEFAULT_GROUP
data-type: json

View File

@ -14,16 +14,17 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
sentinel:
# 取消控制台懒加载
eager: true
@ -34,7 +35,7 @@ spring:
datasource:
ds1:
nacos:
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
dataId: sentinel-boot-gateway
groupId: DEFAULT_GROUP
data-type: json

View File

@ -14,13 +14,14 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -14,13 +14,14 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -14,13 +14,14 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -14,13 +14,14 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -14,13 +14,14 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -14,13 +14,14 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -14,13 +14,14 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -14,13 +14,14 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -0,0 +1,27 @@
<?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>
<parent>
<groupId>com.boot</groupId>
<artifactId>boot-valuation-rule</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>boot-valuation-rule-common</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-common-core</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,35 @@
package com.boot.rule.common.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @ClassName ChargingMiddleTable
* @Description
* @Author
* @Date 2024/3/1 16:20
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChargingMiddleTable {
private Integer id;
private Integer cityId;
private Integer channelId;
private Integer serverTypeId;
private Integer rankId;
private Integer estimatedId;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime;
private String userName;
private Integer availableState;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
}

View File

@ -0,0 +1,36 @@
package com.boot.rule.common.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.util.Date;
/**
* @ClassName EstimatedOrder
* @Description
* @Author
* @Date 2024/3/1 16:15
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EstimatedOrder {
private Integer id;
private Integer cityId;
private Integer serverTypeId;
private Integer channelId;
private Integer rankId;
private Double kilometres;
private Integer serverTime;
private BigDecimal mealPrice;
private BigDecimal basicsPrice;
private Integer nightId;
private String sectionId;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
}

View File

@ -0,0 +1,26 @@
package com.boot.rule.common.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
/**
* @ClassName NightServer
* @Description
* @Author
* @Date 2024/3/1 16:22
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NightServer {
private Integer id;
private BigDecimal nightServerMileagePrice;
private BigDecimal nightServerTimePrice;
private BigDecimal mileagePrice;
private BigDecimal timePrice;
private Double longWayMileage;
private BigDecimal longWayPrice;
}

View File

@ -0,0 +1,24 @@
package com.boot.rule.common.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
/**
* @ClassName Section
* @Description
* @Author
* @Date 2024/3/1 16:24
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Section {
private Integer id;
private Integer startTime;
private Integer endTime;
private BigDecimal kilometrePrice;
private BigDecimal timePrice;
}

View File

@ -0,0 +1,78 @@
package com.boot.rule.common.domain.vo;
import com.boot.rule.common.domain.Section;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* @ClassName ValuationVo
* @Description
* @Author
* @Date 2024/3/1 15:52
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ValuationVo {
// 城市id
private Integer cityId;
// 渠道id
private Integer channelId;
// 服务类型id
private Integer serverTypeId;
// 车辆级别id
private Integer rankId;
// 最低消费(套餐价格)
private BigDecimal mealPrice;
// 基本消费
private BigDecimal basicsPrice;
// 包含公里数
private Double kilometres;
// 包含服务时间
private Integer serverTime;
// 超服务公里单价
private BigDecimal mileagePrice;
// 超服务时长单价
private BigDecimal timePrice;
// 远途服务起算公里
private Double longWayMileage;
// 远途服务公里单价
private BigDecimal longWayPrice;
// 夜间服务加收公里数单价
private BigDecimal nightServerMileagePrice;
// 夜间服务加收书剑单价
private BigDecimal nightServerTimePrice;
// 芬顿计费规则List集合
private List<Section> sectionList;
// 操作人
private String userName;
// 创建时间
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
}

View File

@ -0,0 +1,28 @@
<?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>
<parent>
<groupId>com.boot</groupId>
<artifactId>boot-valuation-rule</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>boot-valuation-rule-remote</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-valuation-rule-common</artifactId>
<version>3.6.3</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,114 @@
<?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>
<parent>
<groupId>com.boot</groupId>
<artifactId>boot-valuation-rule</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>boot-valuation-rule-server</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Swagger UI -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.fox.version}</version>
</dependency>
<!-- Mysql Connector -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
<!-- RuoYi Common DataSource -->
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-common-datasource</artifactId>
</dependency>
<!-- RuoYi Common DataScope -->
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-common-datascope</artifactId>
</dependency>
<!-- RuoYi Common Log -->
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-common-log</artifactId>
</dependency>
<!-- RuoYi Common Swagger -->
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-common-swagger</artifactId>
</dependency>
<!-- 计价服务的公共依赖-->
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-valuation-rule-common</artifactId>
<version>3.6.3</version>
</dependency>
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-file-remote</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,33 @@
package com.boot.rule;
import com.boot.common.security.annotation.EnableCustomConfig;
import com.boot.common.security.annotation.EnableRyFeignClients;
import com.boot.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @ClassName BootValuationRuleApplication
* @Description
* @Author
* @Date 2024/3/1 15:23
*/
@SpringBootApplication
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
public class BootValuationRuleApplication {
public static void main(String[] args) {
SpringApplication.run(BootValuationRuleApplication.class,args);
System.out.println("(♥◠‿◠)ノ゙ 计价规则模块启动成功 ლ(´ڡ`ლ)゙ \n" +
" .-------. ____ __ \n" +
" | _ _ \\ \\ \\ / / \n" +
" | ( ' ) | \\ _. / ' \n" +
" |(_ o _) / _( )_ .' \n" +
" | (_,_).' __ ___(_ o _)' \n" +
" | |\\ \\ | || |(_,_)' \n" +
" | | \\ `' /| `-' / \n" +
" | | \\ / \\ / \n" +
" ''-' `'-' `-..-' ");
}
}

View File

@ -0,0 +1,29 @@
package com.boot.rule.controller;
import com.boot.common.core.domain.Result;
import com.boot.rule.common.domain.vo.ValuationVo;
import com.boot.rule.service.RuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @ClassName RuleController
* @Description
* @Author
* @Date 2024/3/1 16:27
*/
@RestController
@RequestMapping("/rule")
public class RuleController {
@Autowired
private RuleService ruleService;
@PostMapping("/addRule")
public Result addRule(@RequestBody ValuationVo valuationVo){
return ruleService.addRule(valuationVo);
}
}

View File

@ -0,0 +1,22 @@
package com.boot.rule.mapper;
import com.boot.rule.common.domain.ChargingMiddleTable;
import com.boot.rule.common.domain.EstimatedOrder;
import com.boot.rule.common.domain.NightServer;
import com.boot.rule.common.domain.Section;
/**
* @ClassName RuleMapper
* @Description
* @Author
* @Date 2024/3/1 16:28
*/
public interface RuleMapper {
void addSection(Section section);
void addNightServer(NightServer nightServer);
void addEstimatedOrder(EstimatedOrder estimatedOrder);
Integer addChargingMiddleTable(ChargingMiddleTable chargingMiddleTable);
}

View File

@ -0,0 +1,14 @@
package com.boot.rule.service;
import com.boot.common.core.domain.Result;
import com.boot.rule.common.domain.vo.ValuationVo;
/**
* @ClassName RuleService
* @Description
* @Author
* @Date 2024/3/1 16:27
*/
public interface RuleService {
Result addRule(ValuationVo valuationVo);
}

View File

@ -0,0 +1,86 @@
package com.boot.rule.service.impl;
import com.boot.common.core.domain.Result;
import com.boot.rule.common.domain.ChargingMiddleTable;
import com.boot.rule.common.domain.EstimatedOrder;
import com.boot.rule.common.domain.NightServer;
import com.boot.rule.common.domain.Section;
import com.boot.rule.common.domain.vo.ValuationVo;
import com.boot.rule.mapper.RuleMapper;
import com.boot.rule.service.RuleService;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
/**
* @ClassName RuleServiceImpl
* @Description
* @Author
* @Date 2024/3/1 16:28
*/
@Service
public class RuleServiceImpl implements RuleService {
@Autowired
private RuleMapper ruleMapper;
@Override
@Transactional
public Result addRule(ValuationVo valuationVo) {
String str = "";
NightServer nightServer = new NightServer();
EstimatedOrder estimatedOrder = new EstimatedOrder();
Section section1 = new Section();
ChargingMiddleTable chargingMiddleTable = new ChargingMiddleTable();
// 将前台的值分别赋值给不同的表,然后添加表中的数据
// 1.分段计费表中进行赋值
// 含有芬顿计费
if (valuationVo.getSectionList() != null){
str = "";
for (Section section : valuationVo.getSectionList()) {
ruleMapper.addSection(section);
Integer section1Id = section1.getId();
str += ","+section1Id;
}
estimatedOrder.setSectionId(str.substring(1));
}else { // 不含分段计费
estimatedOrder.setSectionId(String.valueOf(0));
}
// 2.夜间服务统计表中进行赋值
nightServer.setNightServerMileagePrice(valuationVo.getNightServerMileagePrice());
nightServer.setNightServerTimePrice(valuationVo.getNightServerTimePrice());
nightServer.setMileagePrice(valuationVo.getMileagePrice());
nightServer.setTimePrice(valuationVo.getTimePrice());
nightServer.setLongWayMileage(valuationVo.getLongWayMileage());
nightServer.setLongWayPrice(valuationVo.getLongWayPrice());
ruleMapper.addNightServer(nightServer);
Integer nightServerId = nightServer.getId();
// 3.套餐表中进行赋值
estimatedOrder.setCityId(valuationVo.getCityId());
estimatedOrder.setChannelId(valuationVo.getChannelId());
estimatedOrder.setRankId(valuationVo.getRankId());
estimatedOrder.setServerTypeId(valuationVo.getServerTypeId());
estimatedOrder.setKilometres(valuationVo.getKilometres());
estimatedOrder.setServerTime(valuationVo.getServerTime());
estimatedOrder.setMealPrice(valuationVo.getMealPrice());
estimatedOrder.setBasicsPrice(valuationVo.getBasicsPrice());
estimatedOrder.setNightId(nightServerId);
ruleMapper.addEstimatedOrder(estimatedOrder);
Integer estimatedOrderId = estimatedOrder.getId();
// 4.计费规则中间表中进行赋值
chargingMiddleTable.setCityId(valuationVo.getCityId());
chargingMiddleTable.setRankId(valuationVo.getRankId());
chargingMiddleTable.setServerTypeId(valuationVo.getServerTypeId());
chargingMiddleTable.setChannelId(valuationVo.getChannelId());
chargingMiddleTable.setEstimatedId(estimatedOrderId);
chargingMiddleTable.setUpdateTime(new Date());
chargingMiddleTable.setUserName(valuationVo.getUserName());
chargingMiddleTable.setCreateTime(valuationVo.getCreateTime());
Integer i = ruleMapper.addChargingMiddleTable(chargingMiddleTable);
return i>0?Result.ok("添加成功"):Result.fail("添加失败");
}
}

View File

@ -0,0 +1,27 @@
# Tomcat
server:
port: 9502
# Spring
spring:
application:
# 应用名称
name: boot-valuation-rule
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.boot.rule.mapper.RuleMapper">
<insert id="addSection" useGeneratedKeys="true" keyProperty="id">
INSERT INTO `car`.`tb_section`
(`start_time`, `end_time`, `kilometre_price`, `time_price`)
VALUES
(#{startTime}, #{endTime}, #{kilometrePrice}, #{timePrice})
</insert>
<insert id="addNightServer" keyProperty="id" useGeneratedKeys="true">
INSERT INTO `car`.`night_server`
(`night_server_mileage_price`, `night_server_time_price`, `mileage_price`, `time_price`, `long_way_mileage`, `long_way_price`)
VALUES
(#{nightServerMileagePrice}, #{nightServerTimePrice}, #{mileagePrice}, #{timePrice}, #{longWayMileage}, #{longWayPrice})
</insert>
<insert id="addEstimatedOrder" keyProperty="id" useGeneratedKeys="true">
INSERT INTO `car`.`estimated_order`
(`city_id`, `server_type_id`, `channel_id`, `rank_id`, `kilometres`, `server_time`, `meal_price`, `basics_price`, `night_id`, `section_id`)
VALUES
(#{cityId}, #{serverTypeId}, #{channelId}, #{rankId}, #{kilometres}, #{serverTime}, #{mealPrice}, #{basicsPrice}, #{nightId}, #{sectionId})
</insert>
<insert id="addChargingMiddleTable">
INSERT INTO `car`.`charging_middle_table`
(`city_id`, `channel_id`, `server_type_id`, `rank_id`, `estimated_id`, `update_time`, `user_name`, `available_state`, `create_time`)
VALUES
(#{cityId}, #{channelId}, #{serverTypeId}, #{rankId}, #{estimatedId}, #{updateTime}, #{userName}, 0, #{createTime})
</insert>
</mapper>

View File

@ -0,0 +1,27 @@
# Tomcat
server:
port: 9502
# Spring
spring:
application:
# 应用名称
name: boot-valuation-rule
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.boot.rule.mapper.RuleMapper">
<insert id="addSection" useGeneratedKeys="true" keyProperty="id">
INSERT INTO `car`.`tb_section`
(`start_time`, `end_time`, `kilometre_price`, `time_price`)
VALUES
(#{startTime}, #{endTime}, #{kilometrePrice}, #{timePrice})
</insert>
<insert id="addNightServer" keyProperty="id" useGeneratedKeys="true">
INSERT INTO `car`.`night_server`
(`night_server_mileage_price`, `night_server_time_price`, `mileage_price`, `time_price`, `long_way_mileage`, `long_way_price`)
VALUES
(#{nightServerMileagePrice}, #{nightServerTimePrice}, #{mileagePrice}, #{timePrice}, #{longWayMileage}, #{longWayPrice})
</insert>
<insert id="addEstimatedOrder" keyProperty="id" useGeneratedKeys="true">
INSERT INTO `car`.`estimated_order`
(`city_id`, `server_type_id`, `channel_id`, `rank_id`, `kilometres`, `server_time`, `meal_price`, `basics_price`, `night_id`, `section_id`)
VALUES
(#{cityId}, #{serverTypeId}, #{channelId}, #{rankId}, #{kilometres}, #{serverTime}, #{mealPrice}, #{basicsPrice}, #{nightId}, #{sectionId})
</insert>
<insert id="addChargingMiddleTable">
INSERT INTO `car`.`charging_middle_table`
(`city_id`, `channel_id`, `server_type_id`, `rank_id`, `estimated_id`, `update_time`, `user_name`, `available_state`, `create_time`)
VALUES
(#{cityId}, #{channelId}, #{serverTypeId}, #{rankId}, #{estimatedId}, #{updateTime}, #{userName}, 0, #{createTime})
</insert>
</mapper>

View File

@ -0,0 +1,26 @@
<?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>
<parent>
<groupId>com.boot</groupId>
<artifactId>boot</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>boot-valuation-rule</artifactId>
<packaging>pom</packaging>
<modules>
<module>boot-valuation-rule-common</module>
<module>boot-valuation-rule-server</module>
<module>boot-valuation-rule-remote</module>
</modules>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

View File

@ -0,0 +1,27 @@
<?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>
<parent>
<groupId>com.boot</groupId>
<artifactId>boot-valuation</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>boot-valuation-common</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-common-core</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,15 @@
package com.boot.valuation.common.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @ClassName DataInit
* @Description
* @Author
* @Date 2024/2/26 20:57
*/
public class DataInit {
}

View File

@ -0,0 +1,18 @@
package com.boot.valuation.common.domain;
/**
* @ClassName DefineParameter
* @Description
* @Author
* @Date 2024/2/26 21:30
*/
public class DefineParameter {
// 包含套餐
public static final Integer MEAL = 1;
// 夜间服务开始时间
public static final Integer START_TIME = 22;
// 夜间服务结束时间
public static final Integer END_TIME = 6;
// 具体分钟
public static final Integer MINUTES = 0;
}

View File

@ -0,0 +1,78 @@
package com.boot.valuation.common.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
/**
* @ClassName Estimated
* @Description
* @Author
* @Date 2024/2/27 8:52
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Estimated {
/**
* id
*/
private Integer id;
/**
*
*/
private Double kilometres;
/**
*
*/
private Integer serverTime;
/**
*
*/
private BigDecimal mealPrice;
/**
*
*/
private BigDecimal basicsPrice;
/**
*
*/
private BigDecimal nightServerMileagePrice;
/**
*
*/
private BigDecimal nightServerTimePrice;
/**
*
*/
private BigDecimal mileagePrice;
/**
*
*/
private BigDecimal timePrice;
/**
*
*/
private Double longWayMileage;
/**
*
*/
private BigDecimal longWayPrice;
/**
* id
*/
private String sectionId;
}

View File

@ -0,0 +1,21 @@
package com.boot.valuation.common.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @ClassName NightSection
* @Description
* @Author
* @Date 2024/2/27 16:03
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NightSection {
// 夜间服务费
private int nightDuration;
// 夜间行驶公里数
private Double nightDistance;
}

View File

@ -0,0 +1,26 @@
package com.boot.valuation.common.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import java.math.BigDecimal;
import java.util.Date;
/**
* @ClassName Section
* @Description
* @Author
* @Date 2024/2/28 16:27
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Section {
private Integer id;
private Integer startTime;
private Integer endTime;
private BigDecimal kilometrePrice;
private BigDecimal timePrice;
}

View File

@ -0,0 +1,59 @@
package com.boot.valuation.common.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
* @ClassName DataVo
* @Description
* @Author
* @Date 2024/2/26 19:57
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DataVo {
/**
* 1
*/
private Integer isMeal = 1;
/**
*
*/
private Double distance;
/**
*
*/
private Date time;
/**
*
*/
private Integer timeLong;
/**
* id
*/
private Integer cityId;
/**
* id
*/
private Integer serverTypeId;
/**
* id
*/
private Integer channelId;
/**
* id
*/
private Integer rankId;
}

View File

@ -0,0 +1,15 @@
package com.boot.valuation.common.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @ClassName DrivingRecordVo
* @Description
* @Author
* @Date 2024/2/27 11:39
*/
public class DrivingRecordVo {
}

View File

@ -0,0 +1,44 @@
package com.boot.valuation.common.utils;
import org.springframework.stereotype.Component;
import java.math.BigDecimal;
/**
* @ClassName BigDecimalUtils
* @Description
* @Author
* @Date 2024/2/27 19:29
*/
@Component
public class BigDecimalUtils {
// 加
public static BigDecimal add(BigDecimal num1, BigDecimal num2){
BigDecimal add = BigDecimal.ZERO;
add = num1.add(num2);
return add;
}
// 减
public static BigDecimal subtract(BigDecimal num1, BigDecimal num2){
BigDecimal subtract = BigDecimal.ZERO;
subtract = num1.subtract(num2);
return subtract;
}
// 乘
public static BigDecimal multiply(BigDecimal num1, BigDecimal num2){
BigDecimal multiply = BigDecimal.ZERO;
multiply = num1.multiply(num2);
return multiply;
}
// 除
public static BigDecimal divide(BigDecimal num1, BigDecimal num2){
BigDecimal divide = BigDecimal.ZERO;
divide = num1.divide(num2, 2, BigDecimal.ROUND_HALF_UP); // 保留2位小数四舍五入
return divide;
}
}

View File

@ -0,0 +1,83 @@
package com.boot.valuation.common.utils;
import com.boot.valuation.common.domain.DefineParameter;
import com.boot.valuation.common.domain.NightSection;
import org.springframework.stereotype.Component;
import java.time.LocalTime;
import java.time.temporal.ChronoUnit;
/**
* @ClassName ComputeSectionUtil
* @Description
* @Author
* @Date 2024/2/27 11:33
*/
/**
*
* */
@Component
public class ComputeSectionUtil {
private static final LocalTime NIGHT_START_TIME = LocalTime.of(DefineParameter.START_TIME,DefineParameter.MINUTES);
private static final LocalTime NIGHT_END_TIME = LocalTime.of(DefineParameter.END_TIME,DefineParameter.MINUTES);
public static NightSection nightSection(Integer duration, Double distance, LocalTime startTime){
// 初始化夜间行驶时间及距离
int nightDuration = 0;
Double nightDistance = 0.0;
// 加上时长后得到的结束时间
LocalTime endTime = startTime.plusMinutes(duration);
NightSection nightSection = new NightSection();
// 判断开始时间和技术时间是否在夜间服务时间段
if (startTime.isAfter(NIGHT_START_TIME) && NIGHT_END_TIME.isBefore(endTime)){
// if ((startTime.isAfter(NIGHT_START_TIME) || startTime.equals(NIGHT_START_TIME)) &&
// (startTime.isBefore(NIGHT_END_TIME) || startTime.equals(NIGHT_END_TIME)) &&
// (endTime.isAfter(NIGHT_START_TIME) || endTime.equals(NIGHT_START_TIME)) &&
// (endTime.isBefore(NIGHT_END_TIME) || endTime.equals(NIGHT_END_TIME))){
LocalTime start = startTime.isBefore(NIGHT_START_TIME) ? startTime : NIGHT_START_TIME ;
LocalTime end = endTime.isAfter(NIGHT_END_TIME) ? endTime : NIGHT_END_TIME;
long duration1 = start.until(end, ChronoUnit.MINUTES);
double distance1 = duration / (double) duration1 * distance;
nightDuration += duration1;
nightDistance += distance1;
nightSection.setNightDuration(nightDuration);
nightSection.setNightDistance(nightDistance);
}
if (startTime.isBefore(NIGHT_START_TIME) || (endTime.isAfter(NIGHT_START_TIME) && endTime.isBefore(NIGHT_END_TIME))){
LocalTime start = startTime.isBefore(NIGHT_START_TIME) ? startTime : NIGHT_START_TIME;
LocalTime end = endTime.isAfter(NIGHT_END_TIME) ?endTime : NIGHT_END_TIME;
long duration1 = start.until(end, ChronoUnit.MINUTES);
double distance1 = duration / (double) duration1 * distance;
nightDuration += duration1;
nightDistance += distance1;
nightSection.setNightDuration(nightDuration);
nightSection.setNightDistance(nightDistance);
}
if (startTime == null){
LocalTime start = NIGHT_START_TIME;
LocalTime end = NIGHT_END_TIME;
long duration1 = start.until(end, ChronoUnit.MINUTES);
double distance1 = duration / (double) duration1 * distance;
nightDuration += duration1;
nightDistance += distance1;
nightSection.setNightDuration(nightDuration);
nightSection.setNightDistance(nightDistance);
}
return nightSection;
}
}

View File

@ -0,0 +1,28 @@
<?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>
<parent>
<groupId>com.boot</groupId>
<artifactId>boot-valuation</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>boot-valuation-remote</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-valuation-common</artifactId>
<version>3.6.3</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,114 @@
<?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>
<parent>
<groupId>com.boot</groupId>
<artifactId>boot-valuation</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>boot-valuation-server</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Swagger UI -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.fox.version}</version>
</dependency>
<!-- Mysql Connector -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
<!-- RuoYi Common DataSource -->
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-common-datasource</artifactId>
</dependency>
<!-- RuoYi Common DataScope -->
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-common-datascope</artifactId>
</dependency>
<!-- RuoYi Common Log -->
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-common-log</artifactId>
</dependency>
<!-- RuoYi Common Swagger -->
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-common-swagger</artifactId>
</dependency>
<!-- 计价服务的公共依赖-->
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-valuation-common</artifactId>
<version>3.6.3</version>
</dependency>
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-file-remote</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,33 @@
package com.boot.valuation;
import com.boot.common.security.annotation.EnableCustomConfig;
import com.boot.common.security.annotation.EnableRyFeignClients;
import com.boot.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @ClassName BootValuationApplication
* @Description
* @Author
* @Date 2024/2/26 19:40
*/
@SpringBootApplication
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
public class BootValuationApplication {
public static void main(String[] args) {
SpringApplication.run(BootValuationApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 计价模块启动成功 ლ(´ڡ`ლ)゙ \n" +
" .-------. ____ __ \n" +
" | _ _ \\ \\ \\ / / \n" +
" | ( ' ) | \\ _. / ' \n" +
" |(_ o _) / _( )_ .' \n" +
" | (_,_).' __ ___(_ o _)' \n" +
" | |\\ \\ | || |(_,_)' \n" +
" | | \\ `' /| `-' / \n" +
" | | \\ / \\ / \n" +
" ''-' `'-' `-..-' ");
}
}

View File

@ -0,0 +1,33 @@
package com.boot.valuation.controller;
/**
* @ClassName ValuationController
* @Description
* @Author
* @Date 2024/2/26 19:39
*/
import com.boot.valuation.common.domain.vo.DataVo;
import com.boot.valuation.service.ValuationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.math.BigDecimal;
/**
*
* */
@RestController
@RequestMapping("/valuation")
public class ValuationController {
@Autowired
private ValuationService valuationService;
@PostMapping("/compute")
public BigDecimal computePrice(@RequestBody DataVo dataVo){
// Double sumPrice = valuationService.computePrice(dataVo);
// BigDecimal bigDecimal = BigDecimal.valueOf(sumPrice);
return valuationService.computePrice(dataVo);
}
}

View File

@ -0,0 +1,20 @@
package com.boot.valuation.mapper;
import com.boot.valuation.common.domain.Estimated;
import com.boot.valuation.common.domain.Section;
import com.boot.valuation.common.domain.vo.DataVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* @ClassName ValuationMapper
* @Description
* @Author
* @Date 2024/2/26 19:44
*/
@Mapper
public interface ValuationMapper {
Estimated getEstimatedId(DataVo dataVo);
Section computeSectionMoney(@Param("sss") String s);
}

View File

@ -0,0 +1,16 @@
package com.boot.valuation.service;
import com.boot.valuation.common.domain.vo.DataVo;
import java.math.BigDecimal;
/**
* @ClassName ValuationService
* @Description
* @Author
* @Date 2024/2/26 19:43
*/
public interface ValuationService {
BigDecimal computePrice(DataVo dataVo);
}

View File

@ -0,0 +1,365 @@
package com.boot.valuation.service.impl;
import com.boot.valuation.common.domain.DefineParameter;
import com.boot.valuation.common.domain.Estimated;
import com.boot.valuation.common.domain.NightSection;
import com.boot.valuation.common.domain.Section;
import com.boot.valuation.common.domain.vo.DataVo;
import com.boot.valuation.common.utils.BigDecimalUtils;
import com.boot.valuation.common.utils.ComputeSectionUtil;
import com.boot.valuation.mapper.ValuationMapper;
import com.boot.valuation.service.ValuationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.time.LocalTime;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
/**
* @ClassName ValuationServiceImpl
* @Description
* @Author
* @Date 2024/2/26 19:44
*/
@Service
public class ValuationServiceImpl implements ValuationService {
public static ValuationMapper valuationMapper;
@Autowired
private void setValuationMapper(ValuationMapper valuationMapper){
this.valuationMapper = valuationMapper;
}
@Override
public BigDecimal computePrice(DataVo dataVo) {
// 定义返回参数赋值为0
BigDecimal sum = BigDecimal.ZERO;
// 获取到夜间开始时间
LocalTime time = LocalTime.of(DefineParameter.START_TIME, DefineParameter.MINUTES);
// 获取到当前时间
LocalTime now = LocalTime.now();
// 获取到当前订单结束时间
LocalTime endTime = now.plusMinutes(dataVo.getTimeLong());
// 所属套餐id
Estimated estimated = valuationMapper.getEstimatedId(dataVo);
// 包含套餐 不包含分段计费
if (dataVo.getIsMeal() == DefineParameter.MEAL){ // 在套餐中
// 判断是否在套餐中
if (estimated.getKilometres()>=dataVo.getDistance() && estimated.getServerTime()>=dataVo.getTimeLong()){
// 判断是否在夜间服务范围内(在套餐中)
if (endTime.isAfter(time) || now.isAfter(time)){
NightSection nightSection = ComputeSectionUtil.nightSection(dataVo.getTimeLong(), dataVo.getDistance(), now);
// 计算在套餐中 和夜间服务费的价钱
sum = estimated.getMealPrice()
.add(computeNightServerMoney(dataVo,estimated,nightSection));
return sum;
}else { // 不在夜间服务(在套餐中)
return estimated.getMealPrice();
}
}else { // 不在套餐中
// 判断是否在夜间服务范围内(超出套餐)
if (endTime.isAfter(time) || now.isAfter(time)){
NightSection nightSection = ComputeSectionUtil.nightSection(dataVo.getTimeLong(), dataVo.getDistance(), now);
// 计算不在套餐中 和在夜间服务费的价钱
// 判断实际路径是否大于远途路径(有在夜间行驶)
if (estimated.getLongWayMileage().compareTo(dataVo.getDistance())>=0){
// 订单金额 = 基础价格 + 实际里程数 - 包含公里数)* 超公里单价注3 + (实际服务时长数 - 包含服务时长数)* 超时间单价注3 +(实际里程数 - 远途起算公里)* 远途单价 + 夜间服务费注2
sum = estimated.getBasicsPrice()
.add(computeOverDistanceMoney(dataVo,estimated))
.add(computeOvertimeMoney(dataVo,estimated))
.add(computeNightServerMoney(dataVo,estimated,nightSection));
// 判断是否订单金额是否大于套餐单价
if (estimated.getMealPrice().compareTo(sum)>0){
return estimated.getMealPrice();
}else {
return sum;
}
}else {
// 订单金额 = 基础价格 + 实际里程数 - 包含公里数)* 超公里单价注3 + (实际服务时长数 - 包含服务时长数)* 超时间单价注3 +(实际里程数 - 远途起算公里)* 远途单价 + 夜间服务费注2
sum = estimated.getBasicsPrice()
.add(computeOverDistanceMoney(dataVo,estimated))
.add(computeOvertimeMoney(dataVo,estimated))
.add(computeNightServerMoney(dataVo,estimated,nightSection))
.add(computeLongWayMoney(dataVo,estimated));
// 判断是否订单金额是否大于套餐单价
if (estimated.getMealPrice().compareTo(sum)>0){
return estimated.getMealPrice();
}else {
return sum;
}
}
}else { // 不在夜间服务(在套餐中)
// 判断实际路径是否大于远途路径(有在夜间行驶)
if (estimated.getLongWayMileage().compareTo(dataVo.getDistance())>=0){
// 订单金额 = 基础价格 + 实际里程数 - 包含公里数)* 超公里单价注3 + (实际服务时长数 - 包含服务时长数)* 超时间单价注3 +(实际里程数 - 远途起算公里)* 远途单价 + 夜间服务费注2
sum = estimated.getBasicsPrice()
.add(computeOverDistanceMoney(dataVo,estimated))
.add(computeOvertimeMoney(dataVo,estimated));
// 判断是否订单金额是否大于套餐单价
if (estimated.getMealPrice().compareTo(sum)>0){
return estimated.getMealPrice();
}else {
return sum;
}
}else { // 不在夜间服务,不超过远途公里数
// 订单金额 = 基础价格 + 实际里程数 - 包含公里数)* 超公里单价注3 + (实际服务时长数 - 包含服务时长数)* 超时间单价注3
sum = estimated.getBasicsPrice()
.add(computeOverDistanceMoney(dataVo,estimated))
.add(computeOvertimeMoney(dataVo,estimated))
.add(computeLongWayMoney(dataVo,estimated));
// 判断是否订单金额是否大于套餐单价
if (estimated.getMealPrice().compareTo(sum)>0){
return estimated.getMealPrice();
}else {
return sum;
}
}
}
}
}else {// 不包含套餐 包含分段计费
// 订单金额 = 基础价格 + 里程费用注4 + 时长费用注4 +(实际里程数 - 远途起算公里)* 远途单价 + 夜间服务费注2
// 分段计费价格
BigDecimal sectionTotalPrice = computeSectionMoney(estimated, dataVo);
NightSection nightSection = ComputeSectionUtil.nightSection(dataVo.getTimeLong(), dataVo.getDistance(), now);
// 包含夜间服务费
if (now.isAfter(time) || endTime.isAfter(time)){
// 不包含计算远途价钱 (实际公里数<=远途公里数)
if (estimated.getLongWayMileage().compareTo(dataVo.getDistance())>=0){
sum = estimated.getMealPrice()
.add(sectionTotalPrice)
.add(computeNightServerMoney(dataVo,estimated,nightSection));
}else { // 包含计算远途价钱 (实际公里数>远途公里数)
sum = estimated.getMealPrice()
.add(sectionTotalPrice)
.add(computeNightServerMoney(dataVo,estimated,nightSection))
.add(computeLongWayMoney(dataVo,estimated));
}
}else { // 不包含夜间服务费
// 不包含计算远途价钱 (实际公里数<=远途公里数)
if (estimated.getLongWayMileage().compareTo(dataVo.getDistance()) >= 0) {
sum = estimated.getMealPrice()
.add(sectionTotalPrice);
} else { // 包含计算远途价钱 (实际公里数>远途公里数)
sum = estimated.getMealPrice()
.add(sectionTotalPrice)
.add(computeLongWayMoney(dataVo,estimated));
}
}
return sum;
}
}
/**
*
* @param dataVo
* @param estimated
* @param nightSection
* @return
*/
public static BigDecimal computeNightServerMoney(DataVo dataVo, Estimated estimated, NightSection nightSection){
BigDecimal nightServerMoney = BigDecimal.ZERO;
// 夜间服务费 = 夜间行驶时间段 * 夜间加收公里单价 + 夜间行驶时间段的里程数 * 夜间加收时间单价
nightServerMoney = BigDecimalUtils.add(
BigDecimalUtils.multiply(BigDecimal.valueOf(nightSection.getNightDuration()),estimated.getNightServerTimePrice())
,BigDecimalUtils.multiply(BigDecimal.valueOf(nightSection.getNightDistance()),estimated.getNightServerMileagePrice())
);
return nightServerMoney;
}
/**
* - *
* @param dataVo
* @param estimated
* @return
*/
public static BigDecimal computeLongWayMoney(DataVo dataVo, Estimated estimated){
BigDecimal longWayMoney = BigDecimal.ZERO;
// (实际里程数 - 远途起算公里)* 远途单价
longWayMoney = BigDecimalUtils.multiply(BigDecimalUtils.subtract(BigDecimal.valueOf(dataVo.getDistance()),BigDecimal.valueOf(estimated.getLongWayMileage())),estimated.getLongWayPrice());
return longWayMoney;
}
/**
* - * 3
* @param dataVo
* @param estimated
* @return
*/
public static BigDecimal computeOvertimeMoney(DataVo dataVo, Estimated estimated){
BigDecimal overtimeMoney = BigDecimal.ZERO;
// (实际服务时长数 - 包含服务时长数)* 超时间单价注3
overtimeMoney = BigDecimalUtils.multiply(BigDecimalUtils.subtract(BigDecimal.valueOf(dataVo.getTimeLong()),BigDecimal.valueOf(estimated.getServerTime())),estimated.getTimePrice());
return overtimeMoney;
}
/**
* - * 3
* @param dataVo
* @param estimated
* @return
*/
public static BigDecimal computeOverDistanceMoney(DataVo dataVo, Estimated estimated){
BigDecimal overDistanceMoney = BigDecimal.ZERO;
// 判断实际公里数是否大于远途计算公里数
if (dataVo.getDistance() > estimated.getLongWayMileage()){
overDistanceMoney = BigDecimalUtils.multiply(BigDecimal.valueOf(estimated.getLongWayMileage() - estimated.getKilometres()), estimated.getMileagePrice());
}else {
// 实际里程数 - 包含公里数)* 超公里单价注3
overDistanceMoney = BigDecimalUtils.multiply(BigDecimal.valueOf(dataVo.getDistance() - estimated.getKilometres()), estimated.getMileagePrice());
}
return overDistanceMoney;
}
/**
*
* @param estimated
* @param dataVo
* @return
*/
public static BigDecimal computeSectionMoney(Estimated estimated, DataVo dataVo){
BigDecimal sectionMoney = BigDecimal.ZERO;
// 定义分段集合
List<Section> sectionsList = new ArrayList<>();
// 根据分段id获取到响应的 分段计费
for (String s : estimated.getSectionId().split(",")) {
Section section = valuationMapper.computeSectionMoney(s);
sectionsList.add(section);
}
// 获取当前时间
LocalTime nowTime = LocalTime.now();
// 计算出结束时间
LocalTime finishTime = nowTime.plusMinutes(dataVo.getTimeLong());
for (Section section : sectionsList) {
sectionMoney = sectionMoney.add(sectionMoneyMonthed(dataVo,estimated,section,nowTime,finishTime));
}
return sectionMoney;
}
public static BigDecimal sectionMoneyMonthed(DataVo dataVo, Estimated estimated, Section section, LocalTime nowTime, LocalTime finishTime){
BigDecimal timeMoney = BigDecimal.ZERO;
if (estimated.getLongWayMileage() >= dataVo.getDistance()){
// 1.开始时间和结束时间是否在特殊时间段
if (nowTime.isAfter(LocalTime.of(section.getStartTime(),DefineParameter.MINUTES)) &&
finishTime.isBefore(LocalTime.of(section.getEndTime(),DefineParameter.MINUTES))){
// 起始时间和结束时间都在特殊时间段内的 总价
// dataVo.getDistance() * section.getKilometrePrice() +
// dataVo.getTimeLong() * section.getTimePrice();
timeMoney = BigDecimalUtils.multiply(BigDecimal.valueOf(dataVo.getDistance()),section.getKilometrePrice())
.add(BigDecimalUtils.multiply(BigDecimal.valueOf(dataVo.getTimeLong()),section.getTimePrice()));
}
// 2.开始时间在特殊时间段内,结束时间不在
if ((nowTime.isAfter(LocalTime.of(section.getStartTime(), DefineParameter.MINUTES))
&& nowTime.isBefore(LocalTime.of(section.getEndTime(), DefineParameter.MINUTES)))
&& finishTime.isAfter(LocalTime.of(section.getEndTime(), DefineParameter.MINUTES))
) {
// 在特殊时间内行驶的时长unitmin
long until = nowTime.until(LocalTime.of(section.getEndTime(), DefineParameter.MINUTES), ChronoUnit.MINUTES);
// 在特殊时间段内行驶时间的总价
BigDecimal timePrice = section.getTimePrice().multiply(BigDecimal.valueOf(until));
double v = (double) until / (double) dataVo.getTimeLong();
// 根据比率计算在特殊时间段内行驶的路程
double distance = dataVo.getDistance() * v;
BigDecimal distancePrice = section.getKilometrePrice().multiply(BigDecimal.valueOf(distance));
timeMoney = timePrice.add(distancePrice);
}
// 3.开始时间不在,结束时间在特殊时间段内
if (nowTime.isBefore(LocalTime.of(section.getStartTime(), DefineParameter.MINUTES))
&& (finishTime.isAfter(LocalTime.of(section.getStartTime(), DefineParameter.MINUTES))
&& finishTime.isBefore(LocalTime.of(section.getEndTime(), DefineParameter.MINUTES)))
){
// 在特殊时间内行驶的时长unitmin
long until = LocalTime.of(section.getStartTime(), DefineParameter.MINUTES).until(finishTime, ChronoUnit.MINUTES);
// 在特殊时间段内行驶的时间比率
double v = (double) dataVo.getTimeLong() / until;
// 根据市场比率得出 在特殊时段内行驶的路程
double distance = dataVo.getDistance() * v;
// 特殊时段内的时间总价
BigDecimal timePrice = section.getTimePrice().multiply(BigDecimal.valueOf(until));
// 特殊时段内的路程总价
BigDecimal distancePrice = section.getKilometrePrice().multiply(BigDecimal.valueOf(distance));
timeMoney = timePrice.add(distancePrice);
}
}else {
// 1.开始时间和结束时间是否在特殊时间段
if (nowTime.isAfter(LocalTime.of(section.getStartTime(),DefineParameter.MINUTES)) &&
finishTime.isBefore(LocalTime.of(section.getEndTime(),DefineParameter.MINUTES))){
// 起始时间和结束时间都在特殊时间段内的 总价
timeMoney = BigDecimalUtils.multiply(BigDecimal.valueOf(estimated.getLongWayMileage()),section.getKilometrePrice())
.add(BigDecimalUtils.multiply(BigDecimal.valueOf(dataVo.getTimeLong()),section.getTimePrice()))
.add(BigDecimalUtils.multiply(BigDecimalUtils.subtract(BigDecimal.valueOf(dataVo.getDistance()),BigDecimal.valueOf(estimated.getLongWayMileage())),estimated.getLongWayPrice()));
}
// 2.开始时间在特殊时间段内,结束时间不在
if ((nowTime.isAfter(LocalTime.of(section.getStartTime(), DefineParameter.MINUTES))
&& nowTime.isBefore(LocalTime.of(section.getEndTime(), DefineParameter.MINUTES)))
&& finishTime.isAfter(LocalTime.of(section.getEndTime(), DefineParameter.MINUTES))
) {
// 在特殊时间内行驶的时长unitmin
long until = nowTime.until(LocalTime.of(section.getEndTime(), DefineParameter.MINUTES), ChronoUnit.MINUTES);
// 在特殊时间段内行驶时间的总价
BigDecimal timePrice = section.getTimePrice().multiply(BigDecimal.valueOf(until));
double v = (double) until / (double) dataVo.getTimeLong();
// 根据比率计算在特殊时间段内行驶的路程
double distance = dataVo.getDistance() * v;
BigDecimal distancePrice = section.getKilometrePrice().multiply(BigDecimal.valueOf(distance));
timeMoney = timePrice.add(distancePrice);
}
// 3.开始时间不在,结束时间在特殊时间段内
if (nowTime.isBefore(LocalTime.of(section.getStartTime(), DefineParameter.MINUTES))
&& (finishTime.isAfter(LocalTime.of(section.getStartTime(), DefineParameter.MINUTES))
&& finishTime.isBefore(LocalTime.of(section.getEndTime(), DefineParameter.MINUTES)))
){
// 在特殊时间内行驶的时长unitmin
long until = LocalTime.of(section.getStartTime(), DefineParameter.MINUTES).until(finishTime, ChronoUnit.MINUTES);
// 在特殊时间段内行驶的时间比率
double v = (double) dataVo.getTimeLong() / until;
// 根据市场比率得出 在特殊时段内行驶的路程
double distance = dataVo.getDistance() * v;
// 特殊时段内的时间总价
BigDecimal timePrice = section.getTimePrice().multiply(BigDecimal.valueOf(until));
// 特殊时段内的路程总价
BigDecimal distancePrice = section.getKilometrePrice().multiply(BigDecimal.valueOf(distance));
timeMoney = timePrice.add(distancePrice);
}
}
return timeMoney;
/**
* 1.
* 2.
* 3.
*/
}
}

View File

@ -0,0 +1,27 @@
# Tomcat
server:
port: 9501
# Spring
spring:
application:
# 应用名称
name: boot-valuation
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.boot.valuation.mapper.ValuationMapper">
<resultMap id="estimated" type="com.boot.valuation.common.domain.Estimated">
<id column="id" property="id"></id>
<result column="kilometres" property="kilometres"></result>
<result column="server_time" property="serverTime"></result>
<result column="meal_price" property="mealPrice"></result>
<result column="basics_price" property="basicsPrice"></result>
<result column="section_id" property="sectionId"></result>
<result column="night_server_mileage_price" property="nightServerMileagePrice"></result>
<result column="night_server_time_price" property="nightServerTimePrice"></result>
<result column="mileage_price" property="mileagePrice"></result>
<result column="time_price" property="timePrice"></result>
<result column="long_way_mileage" property="longWayMileage"></result>
<result column="long_way_price" property="longWayPrice"></result>
</resultMap>
<select id="getEstimatedId" resultMap="estimated">
SELECT
e.id,e.kilometres,e.server_time,e.meal_price,e.basics_price,e.section_id,n.night_server_mileage_price,n.night_server_time_price,n.mileage_price,n.time_price,n.long_way_mileage,n.long_way_price
FROM estimated_order e LEFT JOIN night_server n ON e.night_id = n.id
<where>
<if test="null != cityId">
and e.city_id = #{cityId}
</if>
<if test="null != serverTypeId">
and e.server_type_id = #{serverTypeId}
</if>
<if test="null != channelId">
and e.channel_id = #{channelId}
</if>
<if test="null != rankId">
and e.rank_id = #{rankId}
</if>
</where>
</select>
<resultMap id="section" type="com.boot.valuation.common.domain.Section">
<id column="id" property="id"></id>
<result column="start_time" property="startTime"></result>
<result column="end_time" property="endTime"></result>
<result column="kilometre_price" property="kilometrePrice"></result>
<result column="time_price" property="timePrice"></result>
</resultMap>
<select id="computeSectionMoney" resultMap="section">
SELECT
id,start_time,end_time,kilometre_price,time_price
from tb_section
where id = #{sss}
</select>
</mapper>

View File

@ -0,0 +1,27 @@
# Tomcat
server:
port: 9501
# Spring
spring:
application:
# 应用名称
name: boot-valuation
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.boot.valuation.mapper.ValuationMapper">
<resultMap id="estimated" type="com.boot.valuation.common.domain.Estimated">
<id column="id" property="id"></id>
<result column="kilometres" property="kilometres"></result>
<result column="server_time" property="serverTime"></result>
<result column="meal_price" property="mealPrice"></result>
<result column="basics_price" property="basicsPrice"></result>
<result column="section_id" property="sectionId"></result>
<result column="night_server_mileage_price" property="nightServerMileagePrice"></result>
<result column="night_server_time_price" property="nightServerTimePrice"></result>
<result column="mileage_price" property="mileagePrice"></result>
<result column="time_price" property="timePrice"></result>
<result column="long_way_mileage" property="longWayMileage"></result>
<result column="long_way_price" property="longWayPrice"></result>
</resultMap>
<select id="getEstimatedId" resultMap="estimated">
SELECT
e.id,e.kilometres,e.server_time,e.meal_price,e.basics_price,e.section_id,n.night_server_mileage_price,n.night_server_time_price,n.mileage_price,n.time_price,n.long_way_mileage,n.long_way_price
FROM estimated_order e LEFT JOIN night_server n ON e.night_id = n.id
<where>
<if test="null != cityId">
and e.city_id = #{cityId}
</if>
<if test="null != serverTypeId">
and e.server_type_id = #{serverTypeId}
</if>
<if test="null != channelId">
and e.channel_id = #{channelId}
</if>
<if test="null != rankId">
and e.rank_id = #{rankId}
</if>
</where>
</select>
<resultMap id="section" type="com.boot.valuation.common.domain.Section">
<id column="id" property="id"></id>
<result column="start_time" property="startTime"></result>
<result column="end_time" property="endTime"></result>
<result column="kilometre_price" property="kilometrePrice"></result>
<result column="time_price" property="timePrice"></result>
</resultMap>
<select id="computeSectionMoney" resultMap="section">
SELECT
id,start_time,end_time,kilometre_price,time_price
from tb_section
where id = #{sss}
</select>
</mapper>

View File

@ -0,0 +1,26 @@
<?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>
<parent>
<groupId>com.boot</groupId>
<artifactId>boot</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>boot-valuation</artifactId>
<packaging>pom</packaging>
<modules>
<module>boot-valuation-common</module>
<module>boot-valuation-remote</module>
<module>boot-valuation-server</module>
</modules>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

Binary file not shown.

View File

@ -0,0 +1,5 @@
#Generated by Maven
#Mon Feb 26 19:11:34 GMT+08:00 2024
groupId=com.boot
artifactId=boot-valuation
version=3.6.3

View File

@ -14,13 +14,14 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -14,13 +14,14 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5
config:
# 配置中心地址
server-addr: 124.223.15.200:8848
server-addr: 122.152.215.207:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 0aeaa321-b967-4df4-8fae-d55617039cb3
namespace: 305eac8a-d1bd-4c64-8945-ad0c19c359c5

View File

@ -95,7 +95,7 @@ java.io.IOException: 远程主机强迫关闭了一个现有的连接。
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
21:32:21.505 [lettuce-eventExecutorLoop-1-4] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /124.223.15.200:6379
21:32:22.279 [lettuce-nioEventLoop-4-2] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 124.223.15.200:6379
21:32:21.505 [lettuce-eventExecutorLoop-1-4] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /122.152.215.207:6379
21:32:22.279 [lettuce-nioEventLoop-4-2] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 122.152.215.207:6379
21:34:34.875 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
21:34:34.913 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.

View File

@ -17,17 +17,17 @@
14:38:25.361 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth.yml, group=DEFAULT_GROUP
14:38:25.363 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth-dev.yml, group=DEFAULT_GROUP
14:38:25.623 [RMI TCP Connection(2)-10.3.216.29] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
15:24:49.829 [lettuce-eventExecutorLoop-1-18] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /124.223.15.200:6379
15:24:58.916 [lettuce-eventExecutorLoop-1-10] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:25:07.223 [lettuce-eventExecutorLoop-1-11] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:25:23.710 [lettuce-eventExecutorLoop-1-12] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:25:53.814 [lettuce-eventExecutorLoop-1-4] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:26:23.912 [lettuce-eventExecutorLoop-1-9] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:26:54.013 [lettuce-eventExecutorLoop-1-11] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:27:24.113 [lettuce-eventExecutorLoop-1-13] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:27:54.214 [lettuce-eventExecutorLoop-1-15] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:28:24.323 [lettuce-eventExecutorLoop-1-17] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:28:54.412 [lettuce-eventExecutorLoop-1-19] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:28:54.444 [lettuce-nioEventLoop-4-3] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 124.223.15.200/<unresolved>:6379
15:24:49.829 [lettuce-eventExecutorLoop-1-18] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /122.152.215.207:6379
15:24:58.916 [lettuce-eventExecutorLoop-1-10] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:25:07.223 [lettuce-eventExecutorLoop-1-11] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:25:23.710 [lettuce-eventExecutorLoop-1-12] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:25:53.814 [lettuce-eventExecutorLoop-1-4] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:26:23.912 [lettuce-eventExecutorLoop-1-9] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:26:54.013 [lettuce-eventExecutorLoop-1-11] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:27:24.113 [lettuce-eventExecutorLoop-1-13] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:27:54.214 [lettuce-eventExecutorLoop-1-15] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:28:24.323 [lettuce-eventExecutorLoop-1-17] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:28:54.412 [lettuce-eventExecutorLoop-1-19] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:28:54.444 [lettuce-nioEventLoop-4-3] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 122.152.215.207/<unresolved>:6379
21:34:14.417 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
21:34:14.427 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.

View File

@ -82,3 +82,66 @@
15:23:09.173 [RMI TCP Connection(1)-10.3.216.29] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
15:33:13.814 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
15:33:13.828 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
14:40:04.062 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
14:40:04.139 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
14:40:04.526 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:40:04.526 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:40:05.963 [main] INFO c.b.a.BootAuthApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
14:40:07.667 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9200"]
14:40:07.668 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
14:40:07.669 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.76]
14:40:07.871 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
14:40:09.139 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
14:40:10.358 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-9200"]
14:40:10.385 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:40:10.385 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:40:10.540 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-auth 10.3.216.29:9200 register finished
14:40:10.733 [main] INFO c.b.a.BootAuthApplication - [logStarted,61] - Started BootAuthApplication in 7.323 seconds (JVM running for 8.942)
14:40:10.749 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth, group=DEFAULT_GROUP
14:40:10.750 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth.yml, group=DEFAULT_GROUP
14:40:10.751 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth-dev.yml, group=DEFAULT_GROUP
14:40:10.825 [RMI TCP Connection(1)-10.3.216.29] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
14:52:41.707 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
14:52:41.717 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
14:54:58.786 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
14:54:58.842 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
14:54:59.151 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:54:59.152 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:55:00.637 [main] INFO c.b.a.BootAuthApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
14:55:02.064 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9200"]
14:55:02.065 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
14:55:02.066 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.76]
14:55:02.188 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
14:55:03.155 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
14:55:04.577 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-9200"]
14:55:04.607 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:55:04.607 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:55:04.782 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-auth 10.3.216.29:9200 register finished
14:55:05.032 [main] INFO c.b.a.BootAuthApplication - [logStarted,61] - Started BootAuthApplication in 6.731 seconds (JVM running for 7.538)
14:55:05.050 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth, group=DEFAULT_GROUP
14:55:05.051 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth.yml, group=DEFAULT_GROUP
14:55:05.052 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth-dev.yml, group=DEFAULT_GROUP
14:55:05.571 [RMI TCP Connection(3)-10.3.216.29] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
14:57:51.965 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
14:57:51.979 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
14:58:19.567 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
14:58:19.624 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
14:58:19.934 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:58:19.935 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:58:21.207 [main] INFO c.b.a.BootAuthApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
14:58:22.472 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9200"]
14:58:22.474 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
14:58:22.474 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.76]
14:58:22.576 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
14:58:23.508 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
14:58:24.764 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-9200"]
14:58:24.787 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:58:24.787 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:58:24.974 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-auth 10.3.216.29:9200 register finished
14:58:25.190 [main] INFO c.b.a.BootAuthApplication - [logStarted,61] - Started BootAuthApplication in 6.095 seconds (JVM running for 6.752)
14:58:25.206 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth, group=DEFAULT_GROUP
14:58:25.206 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth.yml, group=DEFAULT_GROUP
14:58:25.208 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth-dev.yml, group=DEFAULT_GROUP
14:58:25.345 [RMI TCP Connection(1)-10.3.216.29] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
14:59:43.129 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
14:59:43.142 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.

View File

@ -19,3 +19,66 @@
14:38:29.247 [RMI TCP Connection(4)-10.3.216.29] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
15:38:11.022 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
15:38:11.037 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
14:40:08.989 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
14:40:09.064 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
14:40:09.399 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:40:09.400 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:40:10.825 [main] INFO c.b.f.BootFileApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
14:40:12.152 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9300"]
14:40:12.154 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
14:40:12.154 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.76]
14:40:12.278 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
14:40:13.161 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
14:40:14.951 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-9300"]
14:40:14.974 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:40:14.974 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:40:15.173 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-file 10.3.216.29:9300 register finished
14:40:15.534 [main] INFO c.b.f.BootFileApplication - [logStarted,61] - Started BootFileApplication in 7.134 seconds (JVM running for 8.158)
14:40:15.550 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-file.yml, group=DEFAULT_GROUP
14:40:15.551 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-file, group=DEFAULT_GROUP
14:40:15.552 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-file-dev.yml, group=DEFAULT_GROUP
14:40:15.659 [RMI TCP Connection(3)-10.3.216.29] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
14:52:41.664 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
14:52:41.676 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
14:55:01.150 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
14:55:01.211 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
14:55:01.538 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:55:01.539 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:55:02.971 [main] INFO c.b.f.BootFileApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
14:55:04.503 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9300"]
14:55:04.505 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
14:55:04.505 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.76]
14:55:04.659 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
14:55:05.358 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
14:55:06.988 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-9300"]
14:55:07.020 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:55:07.021 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:55:07.202 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-file 10.3.216.29:9300 register finished
14:55:07.619 [main] INFO c.b.f.BootFileApplication - [logStarted,61] - Started BootFileApplication in 7.012 seconds (JVM running for 7.772)
14:55:07.635 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-file.yml, group=DEFAULT_GROUP
14:55:07.635 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-file, group=DEFAULT_GROUP
14:55:07.636 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-file-dev.yml, group=DEFAULT_GROUP
14:55:08.185 [RMI TCP Connection(2)-10.3.216.29] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
14:57:52.049 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
14:57:52.067 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
14:58:24.274 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
14:58:24.332 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
14:58:24.652 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:58:24.652 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:58:26.075 [main] INFO c.b.f.BootFileApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
14:58:27.300 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9300"]
14:58:27.302 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
14:58:27.302 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.76]
14:58:27.413 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
14:58:28.044 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
14:58:29.393 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-9300"]
14:58:29.415 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:58:29.415 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:58:29.588 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-file 10.3.216.29:9300 register finished
14:58:29.968 [main] INFO c.b.f.BootFileApplication - [logStarted,61] - Started BootFileApplication in 6.251 seconds (JVM running for 7.034)
14:58:29.984 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-file.yml, group=DEFAULT_GROUP
14:58:29.984 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-file, group=DEFAULT_GROUP
14:58:29.985 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-file-dev.yml, group=DEFAULT_GROUP
14:58:30.305 [RMI TCP Connection(3)-10.3.216.29] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
14:59:43.073 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
14:59:43.097 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.

View File

@ -1 +1,2 @@
15:23:43.011 [reactor-http-nio-2] ERROR c.b.g.f.AuthFilter - [unauthorizedResponse,104] - [鉴权异常处理]请求路径:/system/user/getInfo
14:59:24.869 [reactor-http-nio-4] ERROR c.b.g.f.AuthFilter - [unauthorizedResponse,104] - [鉴权异常处理]请求路径:/valuation/valuation/compute

View File

@ -355,8 +355,8 @@ java.io.IOException: 远程主机强迫关闭了一个现有的连接。
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
21:32:21.493 [lettuce-eventExecutorLoop-3-4] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /124.223.15.200:6379
21:32:21.786 [lettuce-nioEventLoop-5-2] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 124.223.15.200:6379
21:32:21.493 [lettuce-eventExecutorLoop-3-4] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /122.152.215.207:6379
21:32:21.786 [lettuce-nioEventLoop-5-2] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 122.152.215.207:6379
21:32:28.306 [boundedElastic-2] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
21:32:45.341 [boundedElastic-17] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
21:33:05.361 [boundedElastic-30] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty

View File

@ -53,18 +53,18 @@
15:23:50.700 [boundedElastic-60] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
15:24:10.763 [boundedElastic-63] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
15:24:30.753 [boundedElastic-60] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
15:24:49.724 [lettuce-eventExecutorLoop-3-18] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /124.223.15.200:6379
15:24:58.821 [lettuce-eventExecutorLoop-3-10] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:25:07.113 [lettuce-eventExecutorLoop-3-11] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:25:23.618 [lettuce-eventExecutorLoop-3-12] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:25:53.712 [lettuce-eventExecutorLoop-3-4] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:26:23.819 [lettuce-eventExecutorLoop-3-9] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:26:53.911 [lettuce-eventExecutorLoop-3-11] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:27:24.022 [lettuce-eventExecutorLoop-3-13] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:27:54.120 [lettuce-eventExecutorLoop-3-15] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:28:24.218 [lettuce-eventExecutorLoop-3-17] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:28:54.312 [lettuce-eventExecutorLoop-3-19] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:28:54.354 [lettuce-nioEventLoop-5-3] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 124.223.15.200/<unresolved>:6379
15:24:49.724 [lettuce-eventExecutorLoop-3-18] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /122.152.215.207:6379
15:24:58.821 [lettuce-eventExecutorLoop-3-10] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:25:07.113 [lettuce-eventExecutorLoop-3-11] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:25:23.618 [lettuce-eventExecutorLoop-3-12] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:25:53.712 [lettuce-eventExecutorLoop-3-4] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:26:23.819 [lettuce-eventExecutorLoop-3-9] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:26:53.911 [lettuce-eventExecutorLoop-3-11] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:27:24.022 [lettuce-eventExecutorLoop-3-13] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:27:54.120 [lettuce-eventExecutorLoop-3-15] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:28:24.218 [lettuce-eventExecutorLoop-3-17] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:28:54.312 [lettuce-eventExecutorLoop-3-19] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:28:54.354 [lettuce-nioEventLoop-5-3] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 122.152.215.207/<unresolved>:6379
15:29:00.470 [boundedElastic-60] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
15:29:20.446 [boundedElastic-67] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
15:29:40.435 [boundedElastic-66] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty

View File

@ -82,3 +82,114 @@
15:23:13.679 [RMI TCP Connection(4)-10.3.216.29] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
15:33:13.730 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
15:33:13.745 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
14:40:14.940 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
14:40:15.021 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
14:40:15.392 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:40:15.393 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:40:16.701 [main] INFO c.b.g.BootGatewayApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
14:40:19.981 [main] INFO c.a.c.s.g.s.SentinelSCGAutoConfiguration - [sentinelGatewayFilter,144] - [Sentinel SpringCloudGateway] register SentinelGatewayFilter with order: -2147483648
14:40:20.480 [main] INFO c.a.c.s.g.s.SentinelSCGAutoConfiguration - [sentinelGatewayBlockExceptionHandler,134] - [Sentinel SpringCloudGateway] register SentinelGatewayBlockExceptionHandler
14:40:20.828 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:40:20.829 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:40:21.004 [main] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:40:21.573 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:40:21.574 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:40:21.756 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-gateway 10.3.216.29:8080 register finished
14:40:21.918 [main] INFO c.a.c.n.d.GatewayLocatorHeartBeatPublisher - [start,64] - Start nacos gateway locator heartBeat task scheduler.
14:40:21.942 [main] INFO c.b.g.BootGatewayApplication - [logStarted,61] - Started BootGatewayApplication in 7.595 seconds (JVM running for 8.695)
14:40:21.946 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway.yml, group=DEFAULT_GROUP
14:40:21.947 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway-dev.yml, group=DEFAULT_GROUP
14:40:21.948 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway, group=DEFAULT_GROUP
14:40:22.055 [RMI TCP Connection(6)-10.3.216.29] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:40:37.811 [boundedElastic-7] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:40:56.217 [boundedElastic-7] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:41:16.202 [boundedElastic-4] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:41:36.213 [boundedElastic-1] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:41:56.216 [boundedElastic-2] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:42:16.199 [boundedElastic-11] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:42:36.212 [boundedElastic-11] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:42:56.202 [boundedElastic-5] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:43:16.203 [boundedElastic-9] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:43:36.208 [boundedElastic-12] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:43:56.202 [boundedElastic-12] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:44:16.226 [boundedElastic-15] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:44:36.207 [boundedElastic-3] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:44:56.222 [boundedElastic-2] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:45:16.210 [boundedElastic-9] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:45:36.222 [boundedElastic-8] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:45:56.217 [boundedElastic-11] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:46:16.416 [boundedElastic-8] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:46:36.223 [boundedElastic-11] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:46:56.209 [boundedElastic-3] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:47:16.207 [boundedElastic-3] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:47:36.203 [boundedElastic-4] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:47:56.203 [boundedElastic-16] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:48:16.229 [boundedElastic-17] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:48:36.207 [boundedElastic-18] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:48:56.207 [boundedElastic-14] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:49:16.203 [boundedElastic-21] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:49:36.204 [boundedElastic-21] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:49:56.203 [boundedElastic-17] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:50:16.214 [boundedElastic-3] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:50:36.203 [boundedElastic-3] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:50:56.200 [boundedElastic-15] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:51:16.208 [boundedElastic-14] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:51:36.222 [boundedElastic-14] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:51:56.210 [boundedElastic-8] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:52:16.207 [boundedElastic-13] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:52:36.228 [boundedElastic-14] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:52:41.571 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
14:52:41.582 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
14:55:04.309 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
14:55:04.373 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
14:55:04.745 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:55:04.745 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:55:06.358 [main] INFO c.b.g.BootGatewayApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
14:55:09.837 [main] INFO c.a.c.s.g.s.SentinelSCGAutoConfiguration - [sentinelGatewayFilter,144] - [Sentinel SpringCloudGateway] register SentinelGatewayFilter with order: -2147483648
14:55:10.346 [main] INFO c.a.c.s.g.s.SentinelSCGAutoConfiguration - [sentinelGatewayBlockExceptionHandler,134] - [Sentinel SpringCloudGateway] register SentinelGatewayBlockExceptionHandler
14:55:10.752 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:55:10.754 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:55:10.918 [main] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:55:11.580 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:55:11.581 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:55:11.767 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-gateway 10.3.216.29:8080 register finished
14:55:11.922 [main] INFO c.a.c.n.d.GatewayLocatorHeartBeatPublisher - [start,64] - Start nacos gateway locator heartBeat task scheduler.
14:55:11.951 [main] INFO c.b.g.BootGatewayApplication - [logStarted,61] - Started BootGatewayApplication in 8.262 seconds (JVM running for 9.185)
14:55:11.958 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway.yml, group=DEFAULT_GROUP
14:55:11.960 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway-dev.yml, group=DEFAULT_GROUP
14:55:11.961 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway, group=DEFAULT_GROUP
14:55:12.076 [RMI TCP Connection(2)-10.3.216.29] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:55:20.782 [boundedElastic-4] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:55:39.050 [boundedElastic-3] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:55:59.056 [boundedElastic-6] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:56:19.047 [boundedElastic-6] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:56:39.072 [boundedElastic-1] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:56:59.043 [boundedElastic-9] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:57:19.250 [boundedElastic-8] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:57:39.074 [boundedElastic-9] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:57:52.118 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
14:57:52.130 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
14:58:30.768 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
14:58:30.822 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
14:58:31.155 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:58:31.155 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:58:33.502 [main] INFO c.b.g.BootGatewayApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
14:58:36.368 [main] INFO c.a.c.s.g.s.SentinelSCGAutoConfiguration - [sentinelGatewayFilter,144] - [Sentinel SpringCloudGateway] register SentinelGatewayFilter with order: -2147483648
14:58:36.909 [main] INFO c.a.c.s.g.s.SentinelSCGAutoConfiguration - [sentinelGatewayBlockExceptionHandler,134] - [Sentinel SpringCloudGateway] register SentinelGatewayBlockExceptionHandler
14:58:37.302 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:58:37.302 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:58:37.474 [main] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:58:38.097 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:58:38.097 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:58:38.316 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-gateway 10.3.216.29:8080 register finished
14:58:38.477 [main] INFO c.a.c.n.d.GatewayLocatorHeartBeatPublisher - [start,64] - Start nacos gateway locator heartBeat task scheduler.
14:58:38.506 [main] INFO c.b.g.BootGatewayApplication - [logStarted,61] - Started BootGatewayApplication in 8.299 seconds (JVM running for 9.068)
14:58:38.511 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway.yml, group=DEFAULT_GROUP
14:58:38.513 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway-dev.yml, group=DEFAULT_GROUP
14:58:38.515 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway, group=DEFAULT_GROUP
14:58:38.952 [RMI TCP Connection(4)-10.3.216.29] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:58:52.367 [boundedElastic-8] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:59:10.967 [boundedElastic-8] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:59:30.927 [boundedElastic-1] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
14:59:43.004 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
14:59:43.019 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.

View File

@ -93,8 +93,8 @@ java.io.IOException: 远程主机强迫关闭了一个现有的连接。
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
21:32:21.494 [lettuce-eventExecutorLoop-1-5] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /124.223.15.200:6379
21:32:22.275 [lettuce-nioEventLoop-4-2] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 124.223.15.200:6379
21:32:21.494 [lettuce-eventExecutorLoop-1-5] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /122.152.215.207:6379
21:32:22.275 [lettuce-nioEventLoop-4-2] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 122.152.215.207:6379
21:34:34.807 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
21:34:34.817 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
21:34:34.957 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,350] - HikariPool-1 - Shutdown initiated...

View File

@ -35,19 +35,94 @@ java.net.SocketException: Connection reset
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:842)
15:24:49.848 [lettuce-eventExecutorLoop-1-17] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /124.223.15.200:6379
15:24:58.946 [lettuce-eventExecutorLoop-1-9] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:25:07.254 [lettuce-eventExecutorLoop-1-10] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:25:23.742 [lettuce-eventExecutorLoop-1-13] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:25:53.846 [lettuce-eventExecutorLoop-1-5] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:26:23.940 [lettuce-eventExecutorLoop-1-10] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:26:54.045 [lettuce-eventExecutorLoop-1-12] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:27:24.144 [lettuce-eventExecutorLoop-1-14] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:27:54.246 [lettuce-eventExecutorLoop-1-16] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:28:24.354 [lettuce-eventExecutorLoop-1-18] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:28:54.443 [lettuce-eventExecutorLoop-1-20] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 124.223.15.200/<unresolved>:6379
15:28:54.496 [lettuce-nioEventLoop-4-3] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 124.223.15.200/<unresolved>:6379
15:24:49.848 [lettuce-eventExecutorLoop-1-17] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /122.152.215.207:6379
15:24:58.946 [lettuce-eventExecutorLoop-1-9] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:25:07.254 [lettuce-eventExecutorLoop-1-10] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:25:23.742 [lettuce-eventExecutorLoop-1-13] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:25:53.846 [lettuce-eventExecutorLoop-1-5] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:26:23.940 [lettuce-eventExecutorLoop-1-10] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:26:54.045 [lettuce-eventExecutorLoop-1-12] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:27:24.144 [lettuce-eventExecutorLoop-1-14] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:27:54.246 [lettuce-eventExecutorLoop-1-16] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:28:24.354 [lettuce-eventExecutorLoop-1-18] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:28:54.443 [lettuce-eventExecutorLoop-1-20] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was 122.152.215.207/<unresolved>:6379
15:28:54.496 [lettuce-nioEventLoop-4-3] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 122.152.215.207/<unresolved>:6379
15:38:11.085 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
15:38:11.098 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
15:38:11.222 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,350] - HikariPool-1 - Shutdown initiated...
15:38:11.226 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,352] - HikariPool-1 - Shutdown completed.
14:40:20.650 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
14:40:20.722 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
14:40:21.009 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:40:21.011 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:40:22.620 [main] INFO c.b.g.BootGenApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
14:40:24.456 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9202"]
14:40:24.458 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
14:40:24.458 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.76]
14:40:24.700 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
14:40:25.986 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
14:40:28.152 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-9202"]
14:40:28.179 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:40:28.179 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:40:28.354 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-gen 10.3.216.29:9202 register finished
14:40:28.836 [main] INFO c.b.g.BootGenApplication - [logStarted,61] - Started BootGenApplication in 8.725 seconds (JVM running for 9.714)
14:40:28.850 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gen, group=DEFAULT_GROUP
14:40:28.851 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gen.yml, group=DEFAULT_GROUP
14:40:28.852 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gen-dev.yml, group=DEFAULT_GROUP
14:40:29.212 [RMI TCP Connection(3)-10.3.216.29] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
14:40:29.241 [RMI TCP Connection(1)-10.3.216.29] INFO c.z.h.HikariDataSource - [getConnection,110] - HikariPool-1 - Starting...
14:40:29.852 [RMI TCP Connection(1)-10.3.216.29] INFO c.z.h.HikariDataSource - [getConnection,123] - HikariPool-1 - Start completed.
14:52:41.530 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
14:52:41.546 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
14:52:41.682 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,350] - HikariPool-1 - Shutdown initiated...
14:52:41.689 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,352] - HikariPool-1 - Shutdown completed.
14:55:07.696 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
14:55:07.780 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
14:55:08.082 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:55:08.082 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:55:09.742 [main] INFO c.b.g.BootGenApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
14:55:11.748 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9202"]
14:55:11.749 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
14:55:11.749 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.76]
14:55:11.895 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
14:55:13.054 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
14:55:15.432 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-9202"]
14:55:15.465 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:55:15.466 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:55:15.638 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-gen 10.3.216.29:9202 register finished
14:55:16.178 [main] INFO c.b.g.BootGenApplication - [logStarted,61] - Started BootGenApplication in 9.092 seconds (JVM running for 9.981)
14:55:16.196 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gen, group=DEFAULT_GROUP
14:55:16.197 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gen.yml, group=DEFAULT_GROUP
14:55:16.198 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gen-dev.yml, group=DEFAULT_GROUP
14:55:16.574 [RMI TCP Connection(2)-10.3.216.29] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
14:55:16.621 [RMI TCP Connection(3)-10.3.216.29] INFO c.z.h.HikariDataSource - [getConnection,110] - HikariPool-1 - Starting...
14:55:17.106 [RMI TCP Connection(3)-10.3.216.29] INFO c.z.h.HikariDataSource - [getConnection,123] - HikariPool-1 - Start completed.
14:57:52.194 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
14:57:52.208 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
14:57:52.342 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,350] - HikariPool-1 - Shutdown initiated...
14:57:52.348 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,352] - HikariPool-1 - Shutdown completed.
14:58:37.209 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
14:58:37.271 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
14:58:37.568 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:58:37.569 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:58:39.007 [main] INFO c.b.g.BootGenApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
14:58:40.861 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9202"]
14:58:40.862 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
14:58:40.863 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.76]
14:58:41.019 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
14:58:42.099 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
14:58:45.200 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-9202"]
14:58:45.247 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
14:58:45.247 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
14:58:45.436 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-gen 10.3.216.29:9202 register finished
14:58:46.222 [main] INFO c.b.g.BootGenApplication - [logStarted,61] - Started BootGenApplication in 9.586 seconds (JVM running for 10.425)
14:58:46.255 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gen, group=DEFAULT_GROUP
14:58:46.255 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gen.yml, group=DEFAULT_GROUP
14:58:46.255 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gen-dev.yml, group=DEFAULT_GROUP
14:58:46.723 [RMI TCP Connection(2)-10.3.216.29] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
14:58:46.785 [RMI TCP Connection(1)-10.3.216.29] INFO c.z.h.HikariDataSource - [getConnection,110] - HikariPool-1 - Starting...
14:58:47.476 [RMI TCP Connection(1)-10.3.216.29] INFO c.z.h.HikariDataSource - [getConnection,123] - HikariPool-1 - Start completed.
14:59:42.969 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
14:59:43.000 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
14:59:43.125 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,350] - HikariPool-1 - Shutdown initiated...
14:59:43.131 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,352] - HikariPool-1 - Shutdown completed.

Some files were not shown because too many files have changed in this diff Show More