计费 添加 列表

pull/10/head
wudi 2024-03-01 15:30:59 +08:00
parent 44c58b60aa
commit d97349d5bd
65 changed files with 1839 additions and 62 deletions

View File

@ -7,32 +7,35 @@
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="boot-auth" />
<module name="boot-mq" />
<module name="rush-order-remote" />
<module name="boot-common-seata" />
<module name="boot-visual-monitor" />
<module name="car-charging-common" />
<module name="boot-job" />
<module name="boot-common-redis" />
<module name="rush-order-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="car-charging-server" />
<module name="rush-order-remote" />
<module name="car-charging-remote" />
<module name="rush-order-server" />
<module name="boot-file-common" />
<module name="boot-file-remote" />
<module name="boot-system-remote" />
<module name="boot-job" />
<module name="boot-common-log" />
<module name="boot-common-datascope" />
<module name="boot-common-redis" />
<module name="boot-common-security" />
<module name="rush-order-common" />
<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>
<bytecodeTargetLevel>
<module name="boot-mq" target="1.8" />
<module name="boot-system (1)" target="1.8" />
<module name="boot-system (2)" target="1.8" />
<module name="car_server" target="1.8" />

View File

@ -51,6 +51,14 @@
<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$/car-charging/car-charging-common/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/car-charging/car-charging-common/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/car-charging/car-charging-remote/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/car-charging/car-charging-remote/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/car-charging/car-charging-server/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/car-charging/car-charging-server/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/car-charging/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/car-charging/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/rush-order/rush-order-common/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/rush-order/rush-order-common/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/rush-order/rush-order-remote/src/main/java" charset="UTF-8" />

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
@ -9,6 +10,11 @@
<option value="$PROJECT_DIR$/boot-car-order/pom.xml" />
</list>
</option>
<option name="ignoredFiles">
<set>
<option value="$PROJECT_DIR$/boot-mq/pom.xml" />
</set>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK" />
</project>

6
.idea/vcs.xml 100644
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -23,4 +23,4 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 123456789
namespace: wdwdwd

View File

@ -23,4 +23,4 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 123456789
namespace: wdwdwd

View File

@ -23,7 +23,7 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 123456789
namespace: wdwdwd
sentinel:
# 取消控制台懒加载
eager: true

View File

@ -23,7 +23,7 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 123456789
namespace: wdwdwd
sentinel:
# 取消控制台懒加载
eager: true

View File

@ -23,4 +23,4 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 123456789
namespace: wdwdwd

View File

@ -23,4 +23,4 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 123456789
namespace: wdwdwd

View File

@ -23,4 +23,4 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 123456789
namespace: wdwdwd

View File

@ -23,4 +23,4 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 123456789
namespace: wdwdwd

View File

@ -23,4 +23,4 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 123456789
namespace: wdwdwd

View File

@ -1,40 +0,0 @@
<?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>
<groupId>com.bwie</groupId>
<artifactId>boot-mq</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>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -23,4 +23,4 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: 123456789
namespace: wdwdwd

View File

@ -0,0 +1,33 @@
<?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.bawei</groupId>
<artifactId>car-charging</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>car-charging-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>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,90 @@
package com.car.charging.common.domain;
import java.util.Date;
/**
* @ClassName Channel
* @Description
* @Author Di.Wu
* @Date 2024/2/26 9:42
*/
public class Channel {
private Integer channelId;
private String channelName;
private Date createTime;
private Integer createUser;
private Date updTime;
private Integer updUser;
private Integer isDel;
public Channel() {
}
public Channel(Integer channelId, String channelName, Date createTime, Integer createUser, Date updTime, Integer updUser, Integer isDel) {
this.channelId = channelId;
this.channelName = channelName;
this.createTime = createTime;
this.createUser = createUser;
this.updTime = updTime;
this.updUser = updUser;
this.isDel = isDel;
}
public Integer getChannelId() {
return channelId;
}
public void setChannelId(Integer channelId) {
this.channelId = channelId;
}
public String getChannelName() {
return channelName;
}
public void setChannelName(String channelName) {
this.channelName = channelName;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Integer getCreateUser() {
return createUser;
}
public void setCreateUser(Integer createUser) {
this.createUser = createUser;
}
public Date getUpdTime() {
return updTime;
}
public void setUpdTime(Date updTime) {
this.updTime = updTime;
}
public Integer getUpdUser() {
return updUser;
}
public void setUpdUser(Integer updUser) {
this.updUser = updUser;
}
public Integer getIsDel() {
return isDel;
}
public void setIsDel(Integer isDel) {
this.isDel = isDel;
}
}

View File

@ -0,0 +1,40 @@
package com.car.charging.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 Di.Wu
* @Date 2024/2/26 14:02
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChargingMiddleTable {
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,23 @@
package com.car.charging.common.domain;
import lombok.Data;
/**
* @ClassName City
* @Version 1.0
* @Description
* @Author Di.Wu
* @Date 2024/2/26 9:31
*/
@Data
public class City {
private Integer cityId;
private String cityName;
}

View File

@ -0,0 +1,40 @@
package com.car.charging.common.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.util.Date;
/**
* @ClassName EstimatedOrder
* @Description
* @Author Di.Wu
* @Date 2024/2/27 19:56
*/
@Data
public class EstimatedOrder {
private Integer id;
private Integer city_id;
private Integer server_type_id;
private Integer channel_id;
private Integer rank_id;
private Double kilometres;
private Integer server_time;
private BigDecimal meal_price;
private BigDecimal basics_price;
private Integer night_id;
private Integer section_id;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date create_time;
}

View File

@ -0,0 +1,27 @@
package com.car.charging.common.domain;
import lombok.Data;
import java.math.BigDecimal;
/**
* @ClassName NightServer
* @Description
* @Author Di.Wu
* @Date 2024/2/27 19:53
*/
@Data
public class NightServer {
private Integer id;
private Integer vechicleId;
private Double nightServerMileagePrice;
private BigDecimal nightServerTimePrice;
private BigDecimal mileagePrice;
private BigDecimal timePrice;
private Double longWayMileage;
private BigDecimal longWayPrice;
}

View File

@ -0,0 +1,36 @@
package com.car.charging.common.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
* @ClassName Rank
* @Description
* @Author Di.Wu
* @Date 2024/2/26 9:44
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Rank {
private Integer rankId;
private String rankName;
private Date createTime;
private Integer createUser;
private Date updTime;
private Integer updUser;
private Integer isDel;
}

View File

@ -0,0 +1,28 @@
package com.car.charging.common.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
/**
* @ClassName Section
* @Description
* @Author Di.Wu
* @Date 2024/2/28 22:04
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Section {
private Integer id;
private Integer startTime;
private Integer endTime;
private BigDecimal kilometrePrice;
private BigDecimal timePrice;
}

View File

@ -0,0 +1,74 @@
package com.car.charging.common.domain.req;
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 AddChannel
* @Description
* @Author Di.Wu
* @Date 2024/2/28 15:36
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AddChannel {
private Integer cityId;
private Integer channelId;
private Integer serverTypeId;
private Integer rankId;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
private BigDecimal mealPrice;
private BigDecimal basicsPrice;
private Double kilometres;
private Integer nightId;
private Integer serverTime;
private Integer nightServerTime;
private BigDecimal mileagePrice;
private BigDecimal timePrice;
private Double longWayMileage;
private BigDecimal longWayPrice;
private BigDecimal nightServerMileagePrice;
private BigDecimal nightServerTimePrice;
private BigDecimal kilometrePrice;
}

View File

@ -0,0 +1,50 @@
package com.car.charging.common.domain.req;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @ClassName ChargingMiddleTableReq
* @Description
* @Author Di.Wu
* @Date 2024/2/26 14:40
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChargingMiddleTableReq {
private Integer pageNum =1;
private Integer pageSize =3;
/**
* id
*/
private Integer cityId;
/**
* id
*/
private Integer channelId;
/**
* id
*/
private Integer serverTypeId;
/**
* id
*/
private Integer rankId;
/**
*
*/
private Integer availableState;
}

View File

@ -0,0 +1,39 @@
package com.car.charging.common.domain.req;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @ClassName charginListAdd
* @Description
* @Author Di.Wu
* @Date 2024/2/28 9:44
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class charginListAdd {
/**
* id
*/
private Integer cityId;
/**
* id
*/
private Integer channelId;
/**
* id
*/
private Integer serverTypeId;
/**
* id
*/
private Integer rankId;
}

View File

@ -0,0 +1,34 @@
package com.car.charging.common.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
* @ClassName serverType
* @Description
* @Author Di.Wu
* @Date 2024/2/26 9:47
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class serverType {
private Integer serverTypeId;
private String typeName;
private Date createTime;
private Integer createUser;
private Date updTime;
private Integer updUser;
private Integer isDel;
}

View File

@ -0,0 +1,51 @@
package com.car.charging.common.domain.vo;
import com.car.charging.common.domain.Channel;
import com.car.charging.common.domain.City;
import com.car.charging.common.domain.Rank;
import com.car.charging.common.domain.serverType;
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 ChargingMiddleTableVo
* @Description
* @Author Di.Wu
* @Date 2024/2/26 14:37
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChargingMiddleTableVo {
private Integer id;
private Integer cityId;
private Integer channelId;
private Integer serverTypeId;
private Integer rankId;
@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;
private Channel channel;
private City city;
private Rank rank;
private serverType type;
}

View File

@ -0,0 +1,35 @@
package com.car.charging.common.result;
import com.boot.common.core.domain.Result;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @author DongZl
* @description:
*/
@Data
public class PageResult<T> implements Serializable {
/**
*
*/
private long total;
/**
*
*/
private List<T> list;
public PageResult() {
}
public PageResult(long total, List<T> list) {
this.total = total;
this.list = list;
}
public static <T> PageResult<T> toPageResult(long total, List<T> list){
return new PageResult(total , list);
}
public static <T> Result<PageResult<T>> toResult(long total, List<T> list){
return Result.ok(PageResult.toPageResult(total,list));
}
}

View File

@ -0,0 +1,30 @@
<?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.bawei</groupId>
<artifactId>car-charging</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>car-charging-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.bawei</groupId>
<artifactId>car-charging-common</artifactId>
<version>3.6.3</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,120 @@
<?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.bawei</groupId>
<artifactId>car-charging</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>car-charging-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-system-common</artifactId>
</dependency>
<dependency>
<groupId>com.boot</groupId>
<artifactId>boot-file-remote</artifactId>
</dependency>
<dependency>
<groupId>com.bawei</groupId>
<artifactId>car-charging-common</artifactId>
<version>3.6.3</version>
</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,36 @@
package com.car.charging;
import com.boot.common.security.annotation.EnableCustomConfig;
import com.boot.common.security.annotation.EnableRyFeignClients;
import com.boot.common.swagger.annotation.EnableCustomSwagger2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
*
*
* @author boot
*/
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication
@MapperScan("com.car.charging.mapper")
public class CarChargingApplication
{
public static void main(String[] args)
{
SpringApplication.run(CarChargingApplication.class, args);
System.out.println("~~|~~~ 计费模块启动成功 ~~~|~~\n" +
" --------- ---------\n" +
" ||| ||| \n" +
" \n" +
" | | \n" +
" (_ o _) \n" +
" ||||||||||||||| \n" +
" ~~~~~~~~~~~~~~~~~~~~~~~ \n" +
" \n" +
" ");
}
}

View File

@ -0,0 +1,99 @@
package com.car.charging.controller;
import com.boot.common.core.domain.Result;
import com.car.charging.common.domain.*;
import com.car.charging.common.domain.req.AddChannel;
import com.car.charging.common.domain.req.ChargingMiddleTableReq;
import com.car.charging.common.domain.vo.ChargingMiddleTableVo;
import com.car.charging.common.result.PageResult;
import com.car.charging.service.ChargingService;
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.RestController;
import com.car.charging.common.domain.Channel;
import java.util.List;
/**
* @ClassName CharginController
* @Description
* @Author Di.Wu
* @Date 2024/2/26 14:33
*/
@RestController
public class CharginController {
@Autowired
private ChargingService charginService;
/*
*
*/
@PostMapping("/charginList")
public Result<PageResult<ChargingMiddleTableVo>> charginList(@RequestBody ChargingMiddleTableReq req){
Result<PageResult<ChargingMiddleTableVo>> result = charginService.list(req);
return result;
}
@PostMapping("/AddChannel")
public Result AddChannel(@RequestBody AddChannel addChannel){
return Result.ok(charginService.addCharging(addChannel));
}
// @PostMapping("/viewList")
// public Result
@PostMapping("/ChannelList")
public Result<List<Channel>> ChannelList(){
// List<Channel> result = charginService.ChannelList();
List<Channel> result = charginService.ChannelList();
return Result.ok(result);
}
@PostMapping("/CityList")
public Result<List<City>> CityList(){
List<City> result = charginService.CityList();
return Result.ok(result);
}
@PostMapping("/RankList")
public Result<List<Rank>> RankList(){
List<Rank> result = charginService.RankList();
return Result.ok(result);
}
@PostMapping("/serverTypeList")
public Result<List<serverType>> serverTypeList(){
List<serverType> result = charginService.serverTypeList();
return Result.ok(result);
}
}

View File

@ -0,0 +1,42 @@
package com.car.charging.mapper;
import com.car.charging.common.domain.*;
import com.car.charging.common.domain.req.AddChannel;
import com.car.charging.common.domain.req.ChargingMiddleTableReq;
import com.car.charging.common.domain.vo.ChargingMiddleTableVo;
import java.util.List;
/**
* @ClassName ChargingMapper
* @Description
* @Author Di.Wu
* @Date 2024/2/26 14:14
*/
public interface ChargingMapper {
List<ChargingMiddleTableVo> list(ChargingMiddleTableReq res);
List<Channel> ChannelList();
List<City> CityList();
List<Rank> RankList();
List<serverType> serverTypeList();
int addChargingMiddleTable(AddChannel addChannel);
int addNightServer(AddChannel addChannel);
int addEstimatedOrder(AddChannel addChannel);
int addSection(AddChannel addChannel);
}

View File

@ -0,0 +1,42 @@
package com.car.charging.service;
import com.boot.common.core.domain.Result;
import com.car.charging.common.domain.*;
import com.car.charging.common.domain.req.AddChannel;
import com.car.charging.common.domain.req.ChargingMiddleTableReq;
import com.car.charging.common.domain.vo.ChargingMiddleTableVo;
import com.car.charging.common.result.PageResult;
import java.util.List;
/**
* @ClassName ChargingService
* @Description
* @Author Di.Wu
* @Date 2024/2/26 14:17
*/
public interface ChargingService {
Result<PageResult<ChargingMiddleTableVo>> list(ChargingMiddleTableReq req);
List<Channel> ChannelList();
List<City> CityList();
List<Rank> RankList();
List<serverType> serverTypeList();
int addChargingMiddleTable(AddChannel addChannel);
int addNightServer(AddChannel addChannel);
int addEstimatedOrder(AddChannel addChannel);
int addSection(AddChannel addChannel);
boolean addCharging(AddChannel addChannel);
}

View File

@ -0,0 +1,140 @@
package com.car.charging.service.impl;
import com.boot.common.core.domain.Result;
import com.car.charging.common.domain.*;
import com.car.charging.common.domain.req.AddChannel;
import com.car.charging.common.domain.req.ChargingMiddleTableReq;
import com.car.charging.common.domain.vo.ChargingMiddleTableVo;
import com.car.charging.common.result.PageResult;
import com.car.charging.mapper.ChargingMapper;
import com.car.charging.service.ChargingService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import java.util.List;
/**
* @ClassName ChargingServiceImpl
* @Description
* @Author Di.Wu
* @Date 2024/2/26 14:17
*/
@Service
public class ChargingServiceImpl implements ChargingService{
@Autowired
private ChargingMapper mapper;
@Override
public Result<PageResult<ChargingMiddleTableVo>> list(ChargingMiddleTableReq req) {
PageHelper.startPage(req.getPageNum(), req.getPageSize());
List<ChargingMiddleTableVo> list =mapper.list(req);
PageInfo<ChargingMiddleTableVo> chargingMiddleTableVoPageInfo = new PageInfo<>(list);
return PageResult.toResult(chargingMiddleTableVoPageInfo.getTotal(),list);
}
@Override
public List<Channel> ChannelList() {
return mapper.ChannelList();
}
@Override
public List<City> CityList() {
return mapper.CityList();
}
@Override
public List<Rank> RankList() {
return mapper.RankList();
}
@Override
public List<serverType> serverTypeList() {
return mapper.serverTypeList();
}
@Override
public int addChargingMiddleTable(AddChannel addChannel) {
int addChargingMiddleTable = mapper.addChargingMiddleTable(addChannel);
if (addChargingMiddleTable>0){
return 1;
}
return 0;
}
@Override
public int addNightServer(AddChannel addChannel) {
int addNightServer = mapper.addNightServer(addChannel);
if (addNightServer>0){
return 1;
}
return 0;
}
@Override
public int addEstimatedOrder(AddChannel addChannel) {
int addEstimatedOrder = mapper.addEstimatedOrder(addChannel);
if (addEstimatedOrder>0){
return 1;
}
return 0;
}
@Override
public int addSection(AddChannel addChannel) {
int addSection = mapper.addSection(addChannel);
if (addSection>0){
return 1;
}
return 0;
}
@Transactional
@Override
public boolean addCharging(AddChannel addChannel) {
mapper.addNightServer(addChannel);
mapper.addEstimatedOrder(addChannel);
mapper.addSection(addChannel);
mapper.addChargingMiddleTable(addChannel);
return true;
}
}

View File

@ -0,0 +1,22 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~}
| | }
| | }
| | }
| | }
| | }
| | }
~~~~~~~~~~~~~~~~~~ |~~~~~~~~~~~~~~~~~ }
| | }
| | }
| | }
| | }
| | }
| | }
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~}

View File

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

View File

@ -0,0 +1,248 @@
<?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.car.charging.mapper.ChargingMapper">
<!-- <resultMap type="com.car.charging.common.domain.vo.ChargingMiddleTableVo" id="SysUserRoleResult">-->
<!-- <result property="userId" column="user_id" />-->
<!-- <result property="roleId" column="role_id" />-->
<!-- </resultMap>-->
<resultMap type="com.car.charging.common.domain.vo.ChargingMiddleTableVo" id="ChargingMiddleTableResultMap">
<id property="id" column="id"/>
<result property="cityId" column="city_id"/>
<result property="channelId" column="channel_id"/>
<result property="serverTypeId" column="server_type_id"/>
<result property="rankId" column="rank_id"/>
<result property="updateTime" column="update_time"/>
<result property="userName" column="user_name"/>
<result property="availableState" column="available_state"/>
<!-- <association property="channel" javaType="com.car.charging.common.domain.Channel">-->
<!-- <id property="channelId" column="channel_id"/>&ndash;&gt;-->
<!-- <result property="channelName" column="channel_name"/>-->
<!-- <result property="createTime" column="create_time"/>-->
<!-- <result property="createUser" column="create_user"/>-->
<!-- <result property="updTime" column="upd_time"/>-->
<!-- <result property="updUser" column="upd_user"/>-->
<!-- <result property="isDel" column="is_del"/>-->
<!-- </association>-->
<association property="channel" javaType="com.car.charging.common.domain.Channel">
<id property="channelId" column="channel_id"/>
<result property="channelName" column="channel_name"/>
<result property="createTime" column="create_time"/>
<result property="createUser" column="create_user"/>
<result property="updTime" column="upd_time"/>
<result property="updUser" column="upd_user"/>
<result property="isDel" column="is_del"/>
</association>
<association property="city" javaType="com.car.charging.common.domain.City">
<id property="cityId" column="city_id"/>
<result property="cityName" column="city_name"/>
</association>
<association property="rank" javaType="com.car.charging.common.domain.Rank">
<id property="rankId" column="rank_id"/>
<result property="rankName" column="rank_name"/>
<result property="createTime" column="create_time"/>
<result property="createUser" column="create_user"/>
<result property="updTime" column="upd_time"/>
<result property="updUser" column="upd_user"/>
<result property="isDel" column="is_del"/>
</association>
<association property="type" javaType="com.car.charging.common.domain.serverType">
<id property="serverTypeId" column="server_type_id"/>
<result property="typeName" column="type_name"/>
<result property="createTime" column="create_time"/>
<result property="createUser" column="create_user"/>
<result property="updTime" column="upd_time"/>
<result property="updUser" column="upd_user"/>
<result property="isDel" column="is_del"/>
</association>
</resultMap>
<resultMap type="com.car.charging.common.domain.Channel" id="ChannelMap">
<id property="channelId" column="channel_id"/>
<result property="channelName" column="channel_name"/>
<result property="createTime" column="create_time"/>
<result property="createUser" column="create_user"/>
<result property="updTime" column="upd_time"/>
<result property="updUser" column="upd_user"/>
<result property="isDel" column="is_del"/>
</resultMap>
<resultMap type="com.car.charging.common.domain.City" id="CityMap">
<id property="cityId" column="city_id"/>
<result property="cityName" column="city_name"/>
</resultMap>
<resultMap type="com.car.charging.common.domain.Rank" id="RankMap">
<id property="rankId" column="rank_id"/>
<result property="rankName" column="rank_name"/>
<result property="createTime" column="create_time"/>
<result property="createUser" column="create_user"/>
<result property="updTime" column="upd_time"/>
<result property="updUser" column="upd_user"/>
<result property="isDel" column="is_del"/>
</resultMap>
<resultMap type="com.car.charging.common.domain.serverType" id="serverTypeMap">
<id property="serverTypeId" column="server_type_id"/>
<result property="typeName" column="type_name"/>
<result property="createTime" column="create_time"/>
<result property="createUser" column="create_user"/>
<result property="updTime" column="upd_time"/>
<result property="updUser" column="upd_user"/>
<result property="isDel" column="is_del"/>
</resultMap>
<insert id="addChargingMiddleTable">
INSERT INTO
charging_middle_table(
`city_id`,
`channel_id`,
`server_type_id`,
`rank_id`,
`create_time` )
VALUES
( #{cityId},#{channelId},#{serverTypeId},#{rankId},#{createTime});
</insert>
<insert id="addNightServer" keyProperty="id" useGeneratedKeys="true" parameterType="int">
INSERT INTO
`night_server`
(
`night_server_mileage_price`,
`night_server_time_price`,
`mileage_price`,
`time_price`,
`long_way_mileage`,
`long_way_price`)
VALUES
(#{nightServerMileagePrice}, #{nightServerTimePrice}, #{mealPrice}, #{timePrice}, #{longWayMileage}, #{longWayPrice});
</insert>
<insert id="addEstimatedOrder">
INSERT INTO `estimated_order`
(`city_id`,
`server_type_id`,
`channel_id`,
`rank_id`,
`kilometres`,
`server_time`,
`meal_price`,
`basics_price`,
`night_id`)
VALUES
(#{cityId}, #{serverTypeId}, #{channelId}, #{rankId},#{kilometres},#{serverTime}, #{mealPrice}, #{basicsPrice}, #{nightId});
</insert>
<insert id="addSection" useGeneratedKeys="true" parameterType="Long">
INSERT INTO `tb_section`
<trim prefix="(" suffix=")" suffixOverrides=",">
`kilometre_price`,
`time_price`
</trim>
VALUES
<trim prefix="(" suffix=")" suffixOverrides=",">
#{kilometrePrice},
#{timePrice}
</trim>
</insert>
<select id="list" resultMap="ChargingMiddleTableResultMap">
SELECT t.id,
c.city_id,
c.city_name,
l.channel_id,
l.channel_name,
st.server_type_id,
st.type_name,
t.rank_id,
r.rank_name,
t.update_time,
t.user_name,
t.available_state
FROM charging_middle_table t
LEFT JOIN city c on t.city_id = c.city_id
LEFT JOIN channel l on t.channel_id = l.channel_id
LEFT JOIN server_type st on t.server_type_id = st.server_type_id
LEFT JOIN t_rank r on t.rank_id = r.rank_id
<where>
<if test="cityId!=null">
and c.city_id = #{cityId}
</if>
<if test="channelId!=null">
and l.channel_id = #{channelId}
</if>
<if test="serverTypeId!=null">
and st.server_type_id = #{serverTypeId}
</if>
<if test="rankId!=null">
and t.rank_id = #{rankId}
</if>
<if test="availableState!=null">
and t.available_state = #{availableState}
</if>
</where>
</select>
<select id="ChannelList" resultMap="ChannelMap">
select * from channel
</select>
<select id="CityList" resultMap="CityMap">
select * from city
</select>
<select id="RankList" resultMap="RankMap">
select * from t_rank
</select>
<select id="serverTypeList" resultMap="serverTypeMap">
select * from server_type
</select>
</mapper>

View File

@ -0,0 +1,17 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~}
| | }
| | }
| | }
| | }
| | }
| | }
~~~~~~~~~~~~~~~~~~ |~~~~~~~~~~~~~~~~~ }
| | }
| | }
| | }
| | }
| | }
| | }
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~}

View File

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

View File

@ -0,0 +1,248 @@
<?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.car.charging.mapper.ChargingMapper">
<!-- <resultMap type="com.car.charging.common.domain.vo.ChargingMiddleTableVo" id="SysUserRoleResult">-->
<!-- <result property="userId" column="user_id" />-->
<!-- <result property="roleId" column="role_id" />-->
<!-- </resultMap>-->
<resultMap type="com.car.charging.common.domain.vo.ChargingMiddleTableVo" id="ChargingMiddleTableResultMap">
<id property="id" column="id"/>
<result property="cityId" column="city_id"/>
<result property="channelId" column="channel_id"/>
<result property="serverTypeId" column="server_type_id"/>
<result property="rankId" column="rank_id"/>
<result property="updateTime" column="update_time"/>
<result property="userName" column="user_name"/>
<result property="availableState" column="available_state"/>
<!-- <association property="channel" javaType="com.car.charging.common.domain.Channel">-->
<!-- <id property="channelId" column="channel_id"/>&ndash;&gt;-->
<!-- <result property="channelName" column="channel_name"/>-->
<!-- <result property="createTime" column="create_time"/>-->
<!-- <result property="createUser" column="create_user"/>-->
<!-- <result property="updTime" column="upd_time"/>-->
<!-- <result property="updUser" column="upd_user"/>-->
<!-- <result property="isDel" column="is_del"/>-->
<!-- </association>-->
<association property="channel" javaType="com.car.charging.common.domain.Channel">
<id property="channelId" column="channel_id"/>
<result property="channelName" column="channel_name"/>
<result property="createTime" column="create_time"/>
<result property="createUser" column="create_user"/>
<result property="updTime" column="upd_time"/>
<result property="updUser" column="upd_user"/>
<result property="isDel" column="is_del"/>
</association>
<association property="city" javaType="com.car.charging.common.domain.City">
<id property="cityId" column="city_id"/>
<result property="cityName" column="city_name"/>
</association>
<association property="rank" javaType="com.car.charging.common.domain.Rank">
<id property="rankId" column="rank_id"/>
<result property="rankName" column="rank_name"/>
<result property="createTime" column="create_time"/>
<result property="createUser" column="create_user"/>
<result property="updTime" column="upd_time"/>
<result property="updUser" column="upd_user"/>
<result property="isDel" column="is_del"/>
</association>
<association property="type" javaType="com.car.charging.common.domain.serverType">
<id property="serverTypeId" column="server_type_id"/>
<result property="typeName" column="type_name"/>
<result property="createTime" column="create_time"/>
<result property="createUser" column="create_user"/>
<result property="updTime" column="upd_time"/>
<result property="updUser" column="upd_user"/>
<result property="isDel" column="is_del"/>
</association>
</resultMap>
<resultMap type="com.car.charging.common.domain.Channel" id="ChannelMap">
<id property="channelId" column="channel_id"/>
<result property="channelName" column="channel_name"/>
<result property="createTime" column="create_time"/>
<result property="createUser" column="create_user"/>
<result property="updTime" column="upd_time"/>
<result property="updUser" column="upd_user"/>
<result property="isDel" column="is_del"/>
</resultMap>
<resultMap type="com.car.charging.common.domain.City" id="CityMap">
<id property="cityId" column="city_id"/>
<result property="cityName" column="city_name"/>
</resultMap>
<resultMap type="com.car.charging.common.domain.Rank" id="RankMap">
<id property="rankId" column="rank_id"/>
<result property="rankName" column="rank_name"/>
<result property="createTime" column="create_time"/>
<result property="createUser" column="create_user"/>
<result property="updTime" column="upd_time"/>
<result property="updUser" column="upd_user"/>
<result property="isDel" column="is_del"/>
</resultMap>
<resultMap type="com.car.charging.common.domain.serverType" id="serverTypeMap">
<id property="serverTypeId" column="server_type_id"/>
<result property="typeName" column="type_name"/>
<result property="createTime" column="create_time"/>
<result property="createUser" column="create_user"/>
<result property="updTime" column="upd_time"/>
<result property="updUser" column="upd_user"/>
<result property="isDel" column="is_del"/>
</resultMap>
<insert id="addChargingMiddleTable">
INSERT INTO
charging_middle_table(
`city_id`,
`channel_id`,
`server_type_id`,
`rank_id`,
`create_time` )
VALUES
( #{cityId},#{channelId},#{serverTypeId},#{rankId},#{createTime});
</insert>
<insert id="addNightServer" keyProperty="id" useGeneratedKeys="true" parameterType="int">
INSERT INTO
`night_server`
(
`night_server_mileage_price`,
`night_server_time_price`,
`mileage_price`,
`time_price`,
`long_way_mileage`,
`long_way_price`)
VALUES
(#{nightServerMileagePrice}, #{nightServerTimePrice}, #{mealPrice}, #{timePrice}, #{longWayMileage}, #{longWayPrice});
</insert>
<insert id="addEstimatedOrder">
INSERT INTO `estimated_order`
(`city_id`,
`server_type_id`,
`channel_id`,
`rank_id`,
`kilometres`,
`server_time`,
`meal_price`,
`basics_price`,
`night_id`)
VALUES
(#{cityId}, #{serverTypeId}, #{channelId}, #{rankId},#{kilometres},#{serverTime}, #{mealPrice}, #{basicsPrice}, #{nightId});
</insert>
<insert id="addSection" useGeneratedKeys="true" parameterType="Long">
INSERT INTO `tb_section`
<trim prefix="(" suffix=")" suffixOverrides=",">
`kilometre_price`,
`time_price`
</trim>
VALUES
<trim prefix="(" suffix=")" suffixOverrides=",">
#{kilometrePrice},
#{timePrice}
</trim>
</insert>
<select id="list" resultMap="ChargingMiddleTableResultMap">
SELECT t.id,
c.city_id,
c.city_name,
l.channel_id,
l.channel_name,
st.server_type_id,
st.type_name,
t.rank_id,
r.rank_name,
t.update_time,
t.user_name,
t.available_state
FROM charging_middle_table t
LEFT JOIN city c on t.city_id = c.city_id
LEFT JOIN channel l on t.channel_id = l.channel_id
LEFT JOIN server_type st on t.server_type_id = st.server_type_id
LEFT JOIN t_rank r on t.rank_id = r.rank_id
<where>
<if test="cityId!=null">
and c.city_id = #{cityId}
</if>
<if test="channelId!=null">
and l.channel_id = #{channelId}
</if>
<if test="serverTypeId!=null">
and st.server_type_id = #{serverTypeId}
</if>
<if test="rankId!=null">
and t.rank_id = #{rankId}
</if>
<if test="availableState!=null">
and t.available_state = #{availableState}
</if>
</where>
</select>
<select id="ChannelList" resultMap="ChannelMap">
select * from channel
</select>
<select id="CityList" resultMap="CityMap">
select * from city
</select>
<select id="RankList" resultMap="RankMap">
select * from t_rank
</select>
<select id="serverTypeList" resultMap="serverTypeMap">
select * from server_type
</select>
</mapper>

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</artifactId>
<version>3.6.3</version>
</parent>
<groupId>com.bawei</groupId>
<artifactId>car-charging</artifactId>
<packaging>pom</packaging>
<modules>
<module>car-charging-common</module>
<module>car-charging-remote</module>
<module>car-charging-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>

View File

@ -98,3 +98,24 @@
19:43:17.744 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth, group=DEFAULT_GROUP
19:43:17.744 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth.yml, group=DEFAULT_GROUP
19:43:17.745 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth-dev.yml, group=DEFAULT_GROUP
15:24:31.356 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
15:24:31.406 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
15:24:31.963 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
15:24:31.964 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
15:24:33.470 [main] INFO c.b.a.BootAuthApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
15:24:34.903 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9200"]
15:24:34.905 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
15:24:34.906 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.76]
15:24:35.090 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
15:24:36.202 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
15:24:38.249 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-9200"]
15:24:38.274 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
15:24:38.274 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
15:24:38.457 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-auth 10.3.216.28:9200 register finished
15:24:38.719 [main] INFO c.b.a.BootAuthApplication - [logStarted,61] - Started BootAuthApplication in 7.971 seconds (JVM running for 9.151)
15:24:38.733 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth, group=DEFAULT_GROUP
15:24:38.734 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth.yml, group=DEFAULT_GROUP
15:24:38.736 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-auth-dev.yml, group=DEFAULT_GROUP
15:24:39.107 [RMI TCP Connection(8)-10.3.216.28] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
15:30:08.003 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
15:30:08.018 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.

View File

@ -98,3 +98,23 @@
19:43:22.866 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway.yml, group=DEFAULT_GROUP
19:43:22.867 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway-dev.yml, group=DEFAULT_GROUP
19:43:22.867 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway, group=DEFAULT_GROUP
15:24:38.623 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
15:24:38.673 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
15:24:38.984 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
15:24:38.984 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
15:24:40.441 [main] INFO c.b.g.BootGatewayApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
15:24:43.495 [main] INFO c.a.c.s.g.s.SentinelSCGAutoConfiguration - [sentinelGatewayFilter,144] - [Sentinel SpringCloudGateway] register SentinelGatewayFilter with order: -2147483648
15:24:43.991 [main] INFO c.a.c.s.g.s.SentinelSCGAutoConfiguration - [sentinelGatewayBlockExceptionHandler,134] - [Sentinel SpringCloudGateway] register SentinelGatewayBlockExceptionHandler
15:24:44.379 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
15:24:44.379 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
15:24:44.597 [main] INFO c.a.c.s.d.c.SentinelConverter - [convert,79] - converter can not convert rules because source is empty
15:24:45.414 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
15:24:45.414 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
15:24:45.597 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-gateway 10.3.216.28:8080 register finished
15:24:45.785 [main] INFO c.a.c.n.d.GatewayLocatorHeartBeatPublisher - [start,64] - Start nacos gateway locator heartBeat task scheduler.
15:24:45.811 [main] INFO c.b.g.BootGatewayApplication - [logStarted,61] - Started BootGatewayApplication in 7.708 seconds (JVM running for 9.297)
15:24:45.817 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway.yml, group=DEFAULT_GROUP
15:24:45.819 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway-dev.yml, group=DEFAULT_GROUP
15:24:45.821 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-gateway, group=DEFAULT_GROUP
15:30:08.010 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
15:30:08.033 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.

View File

@ -194,3 +194,31 @@
20:40:06.368 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-system-dev.yml, group=DEFAULT_GROUP
20:40:06.369 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-system.yml, group=DEFAULT_GROUP
20:40:06.370 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-system, group=DEFAULT_GROUP
15:24:47.466 [main] INFO c.a.n.c.e.SearchableProperties - [sortPropertySourceDefaultOrder,197] - properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING
15:24:47.553 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
15:24:48.083 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
15:24:48.083 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
15:24:49.699 [main] INFO c.b.s.BootSystemApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
15:24:51.638 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9201"]
15:24:51.639 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
15:24:51.639 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.76]
15:24:51.829 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
15:24:53.729 [main] INFO c.a.d.p.DruidDataSource - [init,996] - {dataSource-1,master} inited
15:24:53.730 [main] INFO c.b.d.d.DynamicRoutingDataSource - [addDataSource,154] - dynamic-datasource - add a datasource named [master] success
15:24:53.731 [main] INFO c.b.d.d.DynamicRoutingDataSource - [afterPropertiesSet,234] - dynamic-datasource initial loaded [1] datasource,primary datasource named [master]
15:24:57.193 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
15:24:58.955 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-9201"]
15:24:58.974 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
15:24:58.975 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
15:24:59.166 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP boot-system 10.3.216.28:9201 register finished
15:24:59.703 [main] INFO c.b.s.BootSystemApplication - [logStarted,61] - Started BootSystemApplication in 13.188 seconds (JVM running for 14.542)
15:24:59.715 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-system-dev.yml, group=DEFAULT_GROUP
15:24:59.716 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-system.yml, group=DEFAULT_GROUP
15:24:59.716 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,129] - [Nacos Config] Listening config: dataId=boot-system, group=DEFAULT_GROUP
15:24:59.876 [RMI TCP Connection(4)-10.3.216.28] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
15:30:08.081 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
15:30:08.094 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
15:30:08.225 [SpringApplicationShutdownHook] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,211] - dynamic-datasource start closing ....
15:30:08.227 [SpringApplicationShutdownHook] INFO c.a.d.p.DruidDataSource - [close,2138] - {dataSource-1} closing ...
15:30:08.231 [SpringApplicationShutdownHook] INFO c.a.d.p.DruidDataSource - [close,2211] - {dataSource-1} closed
15:30:08.231 [SpringApplicationShutdownHook] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,215] - dynamic-datasource all closed success,bye

View File

@ -246,7 +246,7 @@
<module>boot-visual</module>
<module>boot-modules</module>
<module>boot-common</module>
<module>boot-mq</module>
<module>car-charging</module>
</modules>
<packaging>pom</packaging>