diff --git a/cloud-auth/src/main/resources/bootstrap.yml b/cloud-auth/src/main/resources/bootstrap.yml
deleted file mode 100644
index 1cdb12c..0000000
--- a/cloud-auth/src/main/resources/bootstrap.yml
+++ /dev/null
@@ -1,47 +0,0 @@
-# Tomcat
-server:
- port: 9500
-
-# nacos线上地址
-nacos:
- addr: 159.75.188.178:8848
- user-name: nacos
- password: nacos
- namespace: eight
-# Spring
-spring:
- application:
- # 应用名称
- name: cloud-auth
- profiles:
- # 环境配置
- active: dev
- cloud:
- nacos:
- discovery:
- # 服务注册地址
- server-addr: ${nacos.addr}
- # nacos用户名
- username: ${nacos.user-name}
- # nacos密码
- password: ${nacos.password}
- # 命名空间
- namespace: ${nacos.namespace}
- config:
- # 服务注册地址
- server-addr: ${nacos.addr}
- # nacos用户名
- username: ${nacos.user-name}
- # nacos密码
- password: ${nacos.password}
- # 命名空间
- namespace: ${nacos.namespace}
- # 配置文件格式
- file-extension: yml
- # 共享配置
- shared-configs:
- # 系统共享配置
- - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
- # 系统环境Config共享配置
- - application-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
-
diff --git a/cloud-gateway/src/main/resources/bootstrap.yml b/cloud-gateway/src/main/resources/bootstrap.yml
deleted file mode 100644
index 7f67420..0000000
--- a/cloud-gateway/src/main/resources/bootstrap.yml
+++ /dev/null
@@ -1,75 +0,0 @@
-# Tomcat
-server:
- port: 8080
-
-# nacos线上地址
-nacos:
- addr: 159.75.188.178:8848
- user-name: nacos
- password: nacos
- namespace: eight
-
-# Spring
-spring:
- application:
- # 应用名称
- name: cloud-gateway
- profiles:
- # 环境配置
- active: dev
- cloud:
- nacos:
- discovery:
- # 服务注册地址
- server-addr: ${nacos.addr}
- # nacos用户名
- username: ${nacos.user-name}
- # nacos密码
- password: ${nacos.password}
- # 命名空间
- namespace: ${nacos.namespace}
- config:
- # 服务注册地址
- server-addr: ${nacos.addr}
- # nacos用户名
- username: ${nacos.user-name}
- # nacos密码
- password: ${nacos.password}
- # 命名空间
- namespace: ${nacos.namespace}
- # 配置文件格式
- file-extension: yml
- # 共享配置
- shared-configs:
- # 系统共享配置
- - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
- # 系统环境Config共享配置
- - application-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
- sentinel:
- # 取消控制台懒加载
- eager: true
- transport:
- # 控制台地址
- dashboard: 127.0.0.1:8718
- # nacos配置持久化
- datasource:
- ds1:
- nacos:
- server-addr: ${nacos.addr}
- dataId: sentinel-cloud-gateway
- groupId: DEFAULT_GROUP
- namespace: ${nacos.namespace}
- data-type: json
- rule-type: gw-flow
-knife4j:
- gateway:
- enabled: true
- # 指定服务发现的模式聚合微服务文档,并且是默认`default`分组
- strategy: discover
- discover:
- enabled: true
- # 指定版本号(Swagger2|OpenAPI3)
- version : openapi3
- # 需要排除的微服务(eg:网关服务)
- excluded-services:
- - cloud-monitor
diff --git a/cloud-modules/cloud-modules-car/pom.xml b/cloud-modules/cloud-modules-car/pom.xml
new file mode 100644
index 0000000..c7be081
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/pom.xml
@@ -0,0 +1,112 @@
+
+
+ 4.0.0
+
+ com.muyu
+ cloud-modules
+ 3.6.3
+
+
+ cloud-modules-car
+
+
+ 17
+ 17
+ UTF-8
+
+
+
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-nacos-discovery
+
+
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-nacos-config
+
+
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-sentinel
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+
+
+ com.mysql
+ mysql-connector-j
+
+
+
+
+ com.muyu
+ cloud-common-datasource
+
+
+
+
+ com.muyu
+ cloud-common-datascope
+
+
+
+
+ com.muyu
+ cloud-common-log
+
+
+
+
+
+ com.muyu
+ cloud-common-xxl
+
+
+
+ com.muyu
+ cloud-common-rabbit
+
+
+
+
+ com.muyu
+ cloud-common-system
+
+
+
+
+ com.muyu
+ cloud-common-api-doc
+
+
+
+
+ ${project.artifactId}
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+ repackage
+
+
+
+
+
+
+
+
+
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/CarApplication.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/CarApplication.java
new file mode 100644
index 0000000..75f209c
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/CarApplication.java
@@ -0,0 +1,18 @@
+package com.muyu.car;
+
+import com.muyu.common.security.annotation.EnableCustomConfig;
+import com.muyu.common.security.annotation.EnableMyFeignClients;
+import lombok.extern.log4j.Log4j2;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@EnableCustomConfig
+@EnableMyFeignClients
+@SpringBootApplication
+public class CarApplication {
+ public static void main(String[] args){
+ SpringApplication.run(CarApplication.class,args);
+ }
+
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/controller/CarInformationController.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/controller/CarInformationController.java
new file mode 100644
index 0000000..b0ab8bb
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/controller/CarInformationController.java
@@ -0,0 +1,116 @@
+package com.muyu.car.controller;
+
+import com.github.pagehelper.PageInfo;
+import com.muyu.car.domain.CarInformation;
+import com.muyu.car.domain.CarMessage;
+import com.muyu.car.domain.req.CarInformationAddReq;
+import com.muyu.car.domain.req.CarInformationListReq;
+import com.muyu.car.domain.req.CarInformationUpdReq;
+import com.muyu.car.service.CarInformationService;
+import com.muyu.common.core.domain.Result;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.extern.log4j.Log4j2;
+import org.springframework.stereotype.Controller;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.context.annotation.RequestScope;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+
+@Log4j2
+@RestController
+@RequestMapping("/carinformation")
+@Tag(name = "车辆信息管理控制层" ,description = "进行车辆管理基础业务操作")
+public class CarInformationController {
+ @Resource
+ private CarInformationService carInformationService;
+
+ /**
+ * 企业车辆管理列表
+ * 联查--> 车辆管理--车辆类型表--车辆电子围栏
+ * 搜索-->(车辆唯一VIN carInformationVIN 精确查
+ * 车辆类型ID carTypeId 精确查
+ * 车辆电子围栏外键ID carInformationFence 精确查
+ * 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)
+ * carInformationState 精确查
+ * 车辆电机厂商 carInformationMotorManufacturer 模糊查
+ * 车辆电机型号 carInformationMotorModel 精确查
+ * 车辆电池厂商 carInformationBatteryManufacturer 模糊查
+ * 车辆电池型号 carInformationBatteryModel 精确查
+ * )
+ * 分页--> 分页页数 pageNum 分页条数 pageSize
+ *
+ * @param carInformationListReq
+ * @return
+ */
+ @PostMapping("/selectCarInformationList")
+ @Operation(summary = "企业车辆管理列表")
+ public Result> selectCarInformationList(@Validated @RequestBody CarInformationListReq carInformationListReq) {
+ PageInfo pageInfo = carInformationService.selectCarInformationList(carInformationListReq);
+ log.info("企业车辆管理列表查询",carInformationListReq,pageInfo);
+ return Result.success(pageInfo);
+
+ }
+
+
+ /**
+ * 企业车辆添加管理
+ * @param carInformationAddReq
+ * @return
+ */
+ @PostMapping("/addCarInformation")
+ @Operation(summary = "企业车辆添加管理")
+ public Result addCarInformation(@Validated @RequestBody CarInformationAddReq carInformationAddReq){
+ return carInformationService.addCarInformation(carInformationAddReq);
+ }
+
+ /**
+ * 企业车辆删除
+ * @param carInformationId
+ * @return
+ */
+ @GetMapping("/delBycarInformationId/{carInformationId}")
+ @Operation(summary = "企业车辆删除")
+ public Result delBycarInformationId(@Validated @PathVariable("carInformationId") Integer carInformationId){
+ return carInformationService.delBycarInformationId(carInformationId);
+ }
+
+
+ /**
+ * 企业车辆修改管理
+ * @param carInformationUpdReq
+ * @return
+ */
+ @PostMapping("/updatecarInformation")
+ @Operation(summary = "企业车辆修改管理")
+ public Result updateCarMessage(@Validated @RequestBody CarInformationUpdReq carInformationUpdReq){
+ Result updatecarInformation = carInformationService.updatecarInformation(carInformationUpdReq);
+ log.info(updatecarInformation);
+ System.out.println("我在这个里:"+updatecarInformation);
+
+ return Result.success(updatecarInformation,"修改成功");
+
+ }
+
+
+
+ /**
+ * To 电子围栏负责人
+ * 查询企业车辆 carInformationID 和 carInformationLicensePlate
+ * 无参
+ * @return
+ */
+ @GetMapping("/selectCarInformationIdAndLicensePlate")
+ @Operation(summary = "查询企业车辆 carInformationID 和 carInformationLicensePlate")
+ public Result> selectCarInformationIdAndLicensePlate(){
+ List carInformations = carInformationService.selectBycarInformationIDAndLicensePlate();
+ return Result.success(carInformations);
+ }
+
+
+
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/controller/CarMessageController.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/controller/CarMessageController.java
new file mode 100644
index 0000000..097ed49
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/controller/CarMessageController.java
@@ -0,0 +1,124 @@
+package com.muyu.car.controller;
+
+import com.muyu.car.domain.CarMessage;
+import com.muyu.car.service.CarMessageService;
+import com.muyu.common.core.domain.Result;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.extern.log4j.Log4j2;
+import org.springframework.validation.annotation.Validated;
+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;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@Log4j2
+@RestController
+@RequestMapping("/carMessage")
+@Tag(name = "信息报文模块" )
+public class CarMessageController {
+ @Resource
+ private CarMessageService carMessageService;
+ /**
+ * 根据所属车类别 解析 车辆报文模板
+ * @param
+ * @return
+ */
+ @PostMapping("/selectCarMessageList")
+ @Operation(summary = "报文模板展示列表")
+ public Result> selectCarMessageList(){
+ List carMessages = carMessageService.selectCarMessageList();
+ return Result.success(carMessages);
+ }
+
+
+ /**
+ * 添加车辆报文规则
+ */
+ @PostMapping("/insertCarMessage")
+ @Operation(summary = "添加报文信息")
+ public Result insertCarMessage(@Validated @RequestBody CarMessage carMessage){
+ Result carMessage1 = carMessageService.insertCarMessage(carMessage);
+ return Result.success(carMessage1);
+ }
+
+ /**
+ * 删除车辆报文规则
+ *
+ */
+ @PostMapping("/delectByCarMessageId")
+ @Operation(summary = "删除报文信息")
+ public Result delectByCarMessageId(Integer carMessageId){
+ Result carMessage1 = carMessageService.delectByCarMessageId(carMessageId);
+ return Result.success(carMessage1);
+ }
+
+ /**
+ * 修改车辆报文规则
+ */
+ @PostMapping("/updateCarMessage")
+ @Operation(summary = "修改报文信息")
+ public Result updateCarMessage(@Validated @RequestBody CarMessage carMessage){
+ Result updateCarMessage = carMessageService.updateCarMessage(carMessage);
+ return Result.success(updateCarMessage,"修改成功");
+ }
+
+
+ /**
+ * 测试分割字符
+ */
+ public class MessageParser{
+ public static void main(String[] args) {
+ String message = "01,02,03," +
+ "04,05,06,07,08,09," +
+ "10,11,12,13,14,15,16" +
+ ",17,18,19,20,21,22,23," +
+ "24,25,26,27,28,29,30" +
+ ",31,32,33,34,35,36,37," +
+ "38,39,40,41,42,43,44,45," +
+ "46";
+
+
+ String[] split = message.split(",");
+ for (int i = 0; i < split.length; i++) {
+ System.out.println(split[i]);
+ if(i == 0){
+ System.out.println("开始");
+ }else if(i == split.length - 1){
+ System.out.println("结束");
+ }
+ }
+ System.out.println(split.length);
+ System.out.println(message.length());
+
+ System.out.println(message.substring(0,1));
+ System.out.println(message.substring(1,2));
+ System.out.println(message.substring(2,3));
+ System.out.println(message.substring(3,4));
+ System.out.println(message.substring(4,5));
+ System.out.println(message.substring(5,6));
+ System.out.println(message.substring(6,7));
+ System.out.println(message.substring(7,8));
+ System.out.println(message.substring(8,9));
+ System.out.println(message.substring(9,10));
+ System.out.println(message.substring(10,11));
+ System.out.println(message.substring(11,12));
+ System.out.println(message.substring(12,13));
+ System.out.println(message.substring(13,14));
+ System.out.println(message.substring(14,15));
+ System.out.println(message.substring(15,16));
+
+
+
+
+ }
+
+
+ }
+
+
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/CarInformation.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/CarInformation.java
new file mode 100644
index 0000000..2427db7
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/CarInformation.java
@@ -0,0 +1,123 @@
+package com.muyu.car.domain;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@SuperBuilder
+@TableName(value = "企业车辆管理实体类",autoResultMap = true)
+public class CarInformation {
+
+ /**
+ * 车辆ID
+ */
+ private Long carInformationId;
+
+ /**
+ * 车辆唯一VIN
+ * 固定(不可修改)
+ */
+ private String carInformationVIN;
+
+ /**
+ * 车牌号
+ * 固定(不可修改)
+ */
+ private String carInformationLicensePlate;
+
+ /**
+ * 车辆品牌
+ */
+ private String carInformationBrand;
+
+ /**
+ * 车辆颜色
+ */
+ private String carInformationColor;
+
+ /**
+ * 车辆驾驶员
+ */
+ private String carInformationDriver;
+
+ /**
+ * 车检到期日期
+ * 固定(不可修改)
+ */
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
+ @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
+ private Date carInformationExamineEnddata;
+
+ /**
+ * 车辆电机厂商
+ */
+ private String carInformationMotorManufacturer;
+
+ /**
+ * 车辆电机型号
+ */
+ private String carInformationMotorModel;
+
+ /**
+ * 车辆电池厂商
+ */
+ private String carInformationBatteryManufacturer;
+
+ /**
+ * 车辆电池型号
+ */
+ private String carInformationBatteryModel;
+
+ /**
+ * 车辆电子围栏外键ID
+ */
+ private Integer carInformationFence;
+
+ /**
+ * 车辆类型外键ID
+ */
+ private Integer carInformationType;
+
+ /**
+ * 是否重点车辆 (0否默认 1是 )
+ */
+ private Integer carInformationFocus;
+
+ /**
+ * 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)
+ */
+ private Integer carInformationState;
+
+
+ //车辆类型表
+ /**
+ * 车辆类型ID
+ */
+ private Integer carTypeId;
+ /**
+ * 车辆类型名
+ */
+ private String carTypeName;
+
+ //电子围栏
+ /**
+ *电子围栏ID
+ */
+ private Integer fenceid;
+
+ /**
+ * 电子围栏名
+ */
+ private String fencename;
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/CarMessage.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/CarMessage.java
new file mode 100644
index 0000000..1d04ceb
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/CarMessage.java
@@ -0,0 +1,85 @@
+package com.muyu.car.domain;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.v3.oas.models.security.SecurityScheme;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@SuperBuilder
+@TableName(value = "车辆报文模板实体类",autoResultMap = true)
+public class CarMessage {
+ //报文类型模块表
+ /**
+ * 自增主键
+ */
+ private Long messageTypeId;
+ /**
+ * 报文编码
+ */
+ private String messageTypeCode;
+ /**
+ * 报文名称
+ */
+ private String messageTypeName;
+
+ /**
+ * 报文所属类别
+ */
+ private String messageTypeBelongs;
+
+ //报文拆分位置主表
+ /**
+ * 自增主键
+ */
+ private Long carMessageId;
+ /**
+ * 车辆类型外键
+ */
+ private Integer carMessageCartype;
+ /**
+ * 车辆报文类型外键
+ */
+ private Integer carMessageType;
+ /**
+ * 开始位下标
+ */
+ private Integer carMessageStartIndex;
+ /**
+ * 结束位下标
+ */
+ private Integer carMessageEndIndex;
+ /**
+ * 报文数据类型 (固定值 区间随机值)
+ */
+ private String messageTypeClass;
+ /**
+ * 报文是否开启故障检测(0默认未开启 1开启)
+ */
+ private Integer carMessageState;
+
+
+
+/*
+ private Long messageTypeId ;
+ private String messageTypeCode ;
+ private String messageTypeName ;
+ private String messageTypeBelongs ;
+ private String messageTypeClass ;
+ private Long carMessageId ;
+ private Integer carMessageCartype ;
+ private Integer carMessageType ;
+ private Integer carMessageStartIndex ;
+ private Integer carMessageEndIndex ;
+ private Integer carMessageState ;
+ */
+
+
+
+
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/req/CarInformationAddReq.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/req/CarInformationAddReq.java
new file mode 100644
index 0000000..3d97a36
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/req/CarInformationAddReq.java
@@ -0,0 +1,83 @@
+package com.muyu.car.domain.req;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.springframework.format.annotation.DateTimeFormat;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@Builder
+@Tag(name = "车辆管理信息添加对象")
+public class CarInformationAddReq {
+
+ /**
+ * 车辆唯一VIN
+ */
+ private String carInformationVIN;
+
+ /**
+ * 车牌号
+ */
+ private String carInformationLicensePlate;
+
+ /**
+ * 车辆品牌
+ */
+ private String carInformationBrand;
+
+ /**
+ * 车辆颜色
+ */
+ private String carInformationColor;
+
+ /**
+ * 车辆驾驶员
+ */
+ private String carInformationDriver;
+
+ /**
+ * 车检到期日期
+ */
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
+ @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
+ private String carInformationExamineEnddata;
+
+ /**
+ * 车辆电机厂商
+ */
+ private String carInformationMotorManufacturer;
+
+ /**
+ * 车辆电机型号
+ */
+ private String carInformationMotorModel;
+
+ /**
+ * 车辆电池厂商
+ */
+ private String carInformationBatteryManufacturer;
+
+ /**
+ * 车辆电池型号
+ */
+ private String carInformationBatteryModel;
+
+ /**
+ * 车辆电子围栏外键ID
+ */
+ private Integer carInformationFence;
+
+ /**
+ * 车辆类型外键ID
+ */
+ private Integer carInformationType;
+
+
+
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/req/CarInformationListReq.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/req/CarInformationListReq.java
new file mode 100644
index 0000000..6dc3a49
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/req/CarInformationListReq.java
@@ -0,0 +1,110 @@
+package com.muyu.car.domain.req;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@SuperBuilder
+@Tag(name="车辆管理列表请求对象")
+public class CarInformationListReq {
+
+ /**
+ * 车辆唯一VIN
+ */
+ @Schema(
+ description = "车辆唯一VIN",
+ type = "String"
+ )
+ private String carInformationVIN;
+
+
+
+ /**
+ * 车辆类型ID
+ */
+ @Schema(
+ description = "车辆类型ID",
+ type = "Interger"
+ )
+ private Integer carTypeId;
+
+ /**
+ * 车辆电子围栏外键ID
+ */
+ @Schema(
+ description = "车辆电子围栏外键ID",
+ type = "Interger"
+ )
+ private Integer carInformationFence;
+
+ /**
+ * 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)
+ */
+ @Schema(
+ description = "启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)",
+ type = "Interger"
+ )
+ private Integer carInformationState;
+
+ /**
+ * 车辆电机厂商
+ */
+ @Schema(
+ description = "车辆电机厂商",
+ type = "String"
+ )
+ private String carInformationMotorManufacturer;
+
+ /**
+ * 车辆电机型号
+ */
+ @Schema(
+ description = "车辆电机型号",
+ type = "String"
+ )
+ private String carInformationMotorModel;
+
+ /**
+ * 车辆电池厂商
+ */
+ @Schema(
+ description = "车辆电池厂商",
+ type = "String"
+ )
+ private String carInformationBatteryManufacturer;
+
+ /**
+ * 车辆电池型号
+ */
+ @Schema(
+ description = "车辆电池型号",
+ type = "String"
+ )
+ private String carInformationBatteryModel;
+
+ //分页页数
+ private Integer pageNum = 1;
+ //分页条数
+ private Integer pageSize = 5;
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/req/CarInformationUpdReq.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/req/CarInformationUpdReq.java
new file mode 100644
index 0000000..e846045
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/req/CarInformationUpdReq.java
@@ -0,0 +1,99 @@
+package com.muyu.car.domain.req;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@SuperBuilder
+@Tag(name = "车辆管理修改操作请求对象")
+public class CarInformationUpdReq {
+
+ /**
+ * 车辆ID
+ */
+ @Schema(title = "车辆管理主键", type = "Long")
+ private Long carInformationId;
+
+ /**
+ * 车辆品牌
+ */
+ @Schema(title = "车辆品牌", type = "String")
+ private String carInformationBrand;
+
+ /**
+ * 车辆颜色
+ */
+ @Schema(title = "车辆颜色", type = "String")
+ private String carInformationColor;
+
+ /**
+ * 车辆驾驶员
+ */
+ @Schema(title = "车辆驾驶员", type = "String")
+ private String carInformationDriver;
+ /**
+ * 车辆电机厂商
+ */
+ @Schema(title = "车辆电机厂商", type = "String")
+ private String carInformationMotorManufacturer;
+
+ /**
+ * 车辆电机型号
+ */
+ @Schema(title = "车辆电机型号", type = "String")
+ private String carInformationMotorModel;
+
+ /**
+ * 车辆电池厂商
+ */
+ @Schema(title = "车辆电池厂商", type = "String")
+ private String carInformationBatteryManufacturer;
+
+ /**
+ * 车辆电池型号
+ */
+ @Schema(title = "车辆电池型号", type = "String")
+ private String carInformationBatteryModel;
+
+ /**
+ * 车辆电子围栏外键ID
+ */
+ @Schema(title = "车辆电子围栏外键ID", type = "Integer")
+ private Integer carInformationFence;
+
+ /**
+ * 车辆类型外键ID
+ */
+ @Schema(title = "车辆类型外键ID", type = "Integer")
+ private Integer carInformationType;
+
+ /**
+ * 是否重点车辆 (0否默认 1是 )
+ */
+ @Schema(title = "是否重点车辆 (0否默认 1是 )", type = "Integer")
+ private Integer carInformationFocus;
+
+ /**
+ * 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)
+ */
+ @Schema(title = "启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)", type = "Integer")
+ private Integer carInformationState;
+
+
+
+
+
+
+
+
+
+
+
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/resp/CarReq.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/resp/CarReq.java
new file mode 100644
index 0000000..f54a4c0
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/domain/resp/CarReq.java
@@ -0,0 +1,99 @@
+package com.muyu.car.domain.resp;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@Builder
+public class CarReq {
+
+ private String EatImagtion;
+ private String imgTion;
+ private String EatIma6ion;
+ private String EatImagtFformion;
+ private String EatTailImagtion;
+ private String EatImagertion;
+ private String EatImagtodoion;
+ private String EatasImagtion;
+ private String EatImageartion;
+ private String imagtionId;
+ private String Eagtion;
+ private String EatImag;
+ private String tImag;
+ private String agtizyRon;
+ private String EatImagcdtion;
+ private String agtigagtion;
+ private String EatImfhgdfagtion;
+ private String EffatImagtion;
+ private String EatImadfggtion;
+ private String EatImagfgtion;
+ private String EatImaggdtion;
+ private String EatImagdfgtion;
+ private String EatImfdgadfggtion;
+ private String EatIfdgmagtion;
+ private String EatIfdgfgmagtion;
+ private String EatImagdffggtion;
+ private String EatImaggfdtion;
+ private String EatImagtigon;
+ private String EatImagtbjion;
+ private String EatImagt_fdgion;
+ private String EatrgImagtion;
+ private String EatIdgmagtion;
+ private String EatImafggtion;
+ private String EgatImgagtion;
+ private String EatImggagtion;
+ private String EatImagfdgtion;
+ private String EatdfgImadfggtion;
+ private String EatIgdmagtion;
+ private String EatImagd;
+ private String EatdfgImagtion;
+ private String EatIgfgmagtion;
+ private String EatIsdmagtion;
+ private String EatfImagtion;
+ private String EadatImagtion;
+ private String EatdgImagtion;
+ private String EatdImagtion;
+ private String EatIafmagtion;
+ private String EatIagffmagtion;
+ private String EatgsImagtion;
+ private String EatasdImagtion;
+ private String EatIadmagtion;
+ private String EatadImagtion;
+ private String EatIcvmagtion;
+ private String EatImagtfion;
+ private String EatImagation;
+ private String EatImfagtion;
+ private String EatImagyution;
+ private Integer other;
+ private Integer othjjer;
+ private Integer otmkdowedher;
+ private Integer desother;
+private Integer otsmkeher;
+private Integer othsmer;
+private Integer oedednjihyther;
+private Integer othhuer;
+private Integer othmkjoer;
+private Integer othnjiu8er;
+private Integer othhubhyer;
+private Integer othejkihjur;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/mapper/CarInformationMapper.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/mapper/CarInformationMapper.java
new file mode 100644
index 0000000..1c822b0
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/mapper/CarInformationMapper.java
@@ -0,0 +1,68 @@
+package com.muyu.car.mapper;
+
+
+import com.muyu.car.domain.CarInformation;
+import com.muyu.car.domain.req.CarInformationAddReq;
+import com.muyu.car.domain.req.CarInformationListReq;
+import com.muyu.car.domain.req.CarInformationUpdReq;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.List;
+
+@Mapper
+public interface CarInformationMapper {
+/**
+ * 企业车辆管理列表
+ * 联查--> 车辆管理--车辆类型表--车辆电子围栏
+ * 搜索-->(车辆唯一VIN carInformationVIN 精确查
+ * 车辆类型ID carTypeId 精确查
+ * 车辆电子围栏外键ID carInformationFence 精确查
+ * 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)
+ * carInformationState 精确查
+ * 车辆电机厂商 carInformationMotorManufacturer 模糊查
+ * 车辆电机型号 carInformationMotorModel 精确查
+ * 车辆电池厂商 carInformationBatteryManufacturer 模糊查
+ * 车辆电池型号 carInformationBatteryModel 精确查
+ * )
+ * 分页--> 分页页数 pageNum 分页条数 pageSize
+ * @param carInformationListReq
+ * @return
+ */
+ List selectCarInformationList(CarInformationListReq carInformationListReq);
+
+/**
+ * 企业车辆添加管理
+ * @param carInformationAddReq
+ * @return
+ */
+ Integer addCarInformation(CarInformationAddReq carInformationAddReq);
+
+/**
+ * 企业车辆删除
+ * @param carInformationId
+ * @return
+ */
+ Integer delBycarInformationId(Integer carInformationId);
+
+
+/**
+ * 企业车辆修改管理
+ * @param carInformationUpdReq
+ * @return
+ */
+ Integer updatecarInformation(CarInformationUpdReq carInformationUpdReq);
+
+
+
+/**
+ * To 电子围栏负责人
+ * 查询企业车辆 carInformationID 和 carInformationLicensePlate
+ * 无参
+ * @return
+ */
+ List selectBycarInformationIDAndLicensePlate();
+
+
+
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/mapper/CarMessageMapper.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/mapper/CarMessageMapper.java
new file mode 100644
index 0000000..7e4d846
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/mapper/CarMessageMapper.java
@@ -0,0 +1,34 @@
+package com.muyu.car.mapper;
+
+import com.muyu.car.domain.CarMessage;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.List;
+
+@Mapper
+public interface CarMessageMapper {
+ /**
+ * 根据所属车类别 解析 车辆报文模板
+ * @param
+ * @return
+ */
+ List selectCarMessageList();
+
+
+ /**
+ * 添加车辆报文规则
+ */
+ Integer insertCarMessage(CarMessage carMessage);
+
+
+ /**
+ * 删除车辆报文规则
+ */
+ Integer deleteByCarMessageId(Integer carMessageId);
+
+ /**
+ * 修改车辆报文规则
+ */
+ Integer updateCarMessage(CarMessage carMessage);
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/service/CarInformationService.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/service/CarInformationService.java
new file mode 100644
index 0000000..62e733b
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/service/CarInformationService.java
@@ -0,0 +1,64 @@
+package com.muyu.car.service;
+
+import com.github.pagehelper.PageInfo;
+import com.muyu.car.domain.CarInformation;
+import com.muyu.car.domain.req.CarInformationAddReq;
+import com.muyu.car.domain.req.CarInformationListReq;
+import com.muyu.car.domain.req.CarInformationUpdReq;
+import com.muyu.common.core.domain.Result;
+
+import java.util.List;
+
+public interface CarInformationService {
+ /**
+ * 企业车辆管理列表
+ * 联查--> 车辆管理--车辆类型表--车辆电子围栏
+ * 搜索-->(车辆唯一VIN carInformationVIN 精确查
+ * 车辆类型ID carTypeId 精确查
+ * 车辆电子围栏外键ID carInformationFence 精确查
+ * 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)
+ * carInformationState 精确查
+ * 车辆电机厂商 carInformationMotorManufacturer 模糊查
+ * 车辆电机型号 carInformationMotorModel 精确查
+ * 车辆电池厂商 carInformationBatteryManufacturer 模糊查
+ * 车辆电池型号 carInformationBatteryModel 精确查
+ * )
+ * 分页--> 分页页数 pageNum 分页条数 pageSize
+ * @param carInformationListReq
+ * @return
+ */
+ PageInfo selectCarInformationList(CarInformationListReq carInformationListReq);
+
+
+ /**
+ * 企业车辆添加管理
+ * @param carInformationAddReq
+ * @return
+ */
+ Result addCarInformation(CarInformationAddReq carInformationAddReq);
+
+ /**
+ * 企业车辆删除
+ * @param carInformationId
+ * @return
+ */
+ Result delBycarInformationId(Integer carInformationId);
+
+
+ /**
+ * 企业车辆修改管理
+ * @param carInformationUpdReq
+ * @return
+ */
+ Result updatecarInformation(CarInformationUpdReq carInformationUpdReq);
+
+
+ /**
+ * To 电子围栏负责人
+ * 查询企业车辆 carInformationID 和 carInformationLicensePlate
+ * 无参
+ * @return
+ */
+ List selectBycarInformationIDAndLicensePlate();
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/service/CarMessageService.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/service/CarMessageService.java
new file mode 100644
index 0000000..056dc8c
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/service/CarMessageService.java
@@ -0,0 +1,40 @@
+package com.muyu.car.service;
+
+import com.muyu.car.domain.CarMessage;
+import com.muyu.common.core.domain.Result;
+
+import java.util.List;
+
+public interface CarMessageService {
+
+ /**
+ * 根据所属车类别 解析 车辆报文模板
+ * @param
+ * @return
+ */
+ List selectCarMessageList();
+
+
+ /**
+ * 添加车辆报文规则
+ */
+ Result insertCarMessage(CarMessage carMessage);
+
+
+ /**
+ * 删除车辆报文规则
+ */
+ Result delectByCarMessageId(Integer carMessageId);
+
+
+ /**
+ * 修改车辆报文规则
+ */
+ Result updateCarMessage(CarMessage carMessage);
+
+
+ /**
+ * 分割字符串获取报文模板信息
+ */
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/service/Impl/CarInformationServiceImpl.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/service/Impl/CarInformationServiceImpl.java
new file mode 100644
index 0000000..71e7337
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/service/Impl/CarInformationServiceImpl.java
@@ -0,0 +1,70 @@
+package com.muyu.car.service.Impl;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+import com.muyu.car.domain.CarInformation;
+import com.muyu.car.domain.CarMessage;
+import com.muyu.car.domain.req.CarInformationAddReq;
+import com.muyu.car.domain.req.CarInformationListReq;
+import com.muyu.car.domain.req.CarInformationUpdReq;
+import com.muyu.car.mapper.CarInformationMapper;
+import com.muyu.car.service.CarInformationService;
+import com.muyu.common.core.domain.Result;
+import jakarta.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@Service
+public class CarInformationServiceImpl implements CarInformationService {
+ @Resource
+ private CarInformationMapper carInformationMapper;
+ @Autowired
+ private HttpServletResponse response;
+
+
+ @Override
+ public PageInfo selectCarInformationList(CarInformationListReq carInformationListReq) {
+ PageHelper.startPage(carInformationListReq.getPageNum(),carInformationListReq.getPageSize());
+ List carInformations = carInformationMapper.selectCarInformationList(carInformationListReq);
+ PageInfo pageInfo = new PageInfo<>(carInformations);
+ return pageInfo;
+ }
+
+ @Override
+ public Result addCarInformation(CarInformationAddReq carInformationAddReq) {
+ Integer addCarInformation = carInformationMapper.addCarInformation(carInformationAddReq);
+ if(addCarInformation > 0){
+ return Result.success(addCarInformation,"添加车辆成功");
+ }
+ return Result.error(402,"添加车辆失败");
+ }
+
+ @Override
+ public Result delBycarInformationId(Integer carInformationId) {
+ Integer delBycarInformationId = carInformationMapper.delBycarInformationId(carInformationId);
+ if (delBycarInformationId > 0){
+ return Result.success(delBycarInformationId ,"删除车辆成功");
+ }
+ return Result.error(402,"删除车辆失败");
+ }
+
+
+ @Override
+ public Result updatecarInformation(CarInformationUpdReq carInformationUpdReq) {
+ Integer updatecarInformation = carInformationMapper.updatecarInformation(carInformationUpdReq);
+ if(updatecarInformation > 0)
+ {
+ return Result.success(carInformationUpdReq,"修改成功");
+ }
+ return Result.error( 402,"修改失败");
+ }
+
+
+ @Override
+ public List selectBycarInformationIDAndLicensePlate() {
+ return carInformationMapper.selectBycarInformationIDAndLicensePlate();
+ }
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/service/Impl/CarMessageServiceImpl.java b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/service/Impl/CarMessageServiceImpl.java
new file mode 100644
index 0000000..830252f
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/java/com/muyu/car/service/Impl/CarMessageServiceImpl.java
@@ -0,0 +1,55 @@
+package com.muyu.car.service.Impl;
+
+import com.muyu.car.domain.CarMessage;
+import com.muyu.car.mapper.CarMessageMapper;
+import com.muyu.car.service.CarMessageService;
+import com.muyu.common.core.domain.Result;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@Service
+public class CarMessageServiceImpl implements CarMessageService {
+ @Resource
+ private CarMessageMapper carMessageMapper;
+
+ @Override
+ public List selectCarMessageList() {
+ return carMessageMapper.selectCarMessageList();
+ }
+
+ @Override
+ public Result insertCarMessage(CarMessage carMessage) {
+ Integer inserted = carMessageMapper.insertCarMessage(carMessage);
+ if (inserted > 0){
+ return Result.success(inserted,"添加成功");
+ }
+ return Result.error(402,"添加失败");
+ }
+
+ @Override
+ public Result delectByCarMessageId(Integer carMessageId) {
+ Integer deleteByCarMessageId = carMessageMapper.deleteByCarMessageId(carMessageId);
+ if (deleteByCarMessageId >0){
+ return Result.success(carMessageId ,"删除成功");
+ }
+ return Result.error(402,"删除失败");
+ }
+
+ @Override
+ public Result updateCarMessage(CarMessage carMessage) {
+ Integer integer = carMessageMapper.updateCarMessage(carMessage);
+ if(integer > 0)
+ {
+ return Result.success(carMessage,"修改成功");
+ }
+ return Result.error( 402,"修改失败");
+ }
+
+
+
+
+
+
+}
diff --git a/cloud-modules/cloud-modules-car/src/main/resources/banner.txt b/cloud-modules/cloud-modules-car/src/main/resources/banner.txt
new file mode 100644
index 0000000..0dd5eee
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/resources/banner.txt
@@ -0,0 +1,2 @@
+Spring Boot Version: ${spring-boot.version}
+Spring Application Name: ${spring.application.name}
diff --git a/cloud-modules/cloud-modules-system/src/main/resources/bootstrap.yml b/cloud-modules/cloud-modules-car/src/main/resources/bootstrap.yml
similarity index 96%
rename from cloud-modules/cloud-modules-system/src/main/resources/bootstrap.yml
rename to cloud-modules/cloud-modules-car/src/main/resources/bootstrap.yml
index 91799f9..c66ccae 100644
--- a/cloud-modules/cloud-modules-system/src/main/resources/bootstrap.yml
+++ b/cloud-modules/cloud-modules-car/src/main/resources/bootstrap.yml
@@ -1,13 +1,13 @@
# Tomcat
server:
- port: 9701
+ port: 9717
# nacos线上地址
nacos:
addr: 159.75.188.178:8848
user-name: nacos
password: nacos
- namespace: eight
+ namespace: xxy
# SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all
# Spring
spring:
@@ -19,7 +19,7 @@ spring:
allow-bean-definition-overriding: true
application:
# 应用名称
- name: cloud-system
+ name: cloud-car
profiles:
# 环境配置
active: dev
diff --git a/cloud-modules/cloud-modules-car/src/main/resources/logback/dev.xml b/cloud-modules/cloud-modules-car/src/main/resources/logback/dev.xml
new file mode 100644
index 0000000..bb11ed5
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/resources/logback/dev.xml
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+ ${log.pattern}
+
+
+
+
+
+ ${log.path}/info.log
+
+
+
+ ${log.path}/info.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+ ${log.pattern}
+
+
+
+ INFO
+
+ ACCEPT
+
+ DENY
+
+
+
+
+ ${log.path}/error.log
+
+
+
+ ${log.path}/error.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+ ${log.pattern}
+
+
+
+ ERROR
+
+ ACCEPT
+
+ DENY
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cloud-modules/cloud-modules-car/src/main/resources/logback/prod.xml b/cloud-modules/cloud-modules-car/src/main/resources/logback/prod.xml
new file mode 100644
index 0000000..dfafbd9
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/resources/logback/prod.xml
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+ ${log.sky.pattern}
+
+
+
+
+
+ ${log.path}/info.log
+
+
+
+ ${log.path}/info.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+
+
+ INFO
+
+ ACCEPT
+
+ DENY
+
+
+
+
+ ${log.path}/error.log
+
+
+
+ ${log.path}/error.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+
+
+ ERROR
+
+ ACCEPT
+
+ DENY
+
+
+
+
+
+
+
+ ${log.sky.pattern}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cloud-modules/cloud-modules-car/src/main/resources/logback/test.xml b/cloud-modules/cloud-modules-car/src/main/resources/logback/test.xml
new file mode 100644
index 0000000..dfafbd9
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/resources/logback/test.xml
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+ ${log.sky.pattern}
+
+
+
+
+
+ ${log.path}/info.log
+
+
+
+ ${log.path}/info.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+
+
+ INFO
+
+ ACCEPT
+
+ DENY
+
+
+
+
+ ${log.path}/error.log
+
+
+
+ ${log.path}/error.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+
+
+ ERROR
+
+ ACCEPT
+
+ DENY
+
+
+
+
+
+
+
+ ${log.sky.pattern}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cloud-modules/cloud-modules-car/src/main/resources/mapper/car/CarInformationMapper.xml b/cloud-modules/cloud-modules-car/src/main/resources/mapper/car/CarInformationMapper.xml
new file mode 100644
index 0000000..53b02e0
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/resources/mapper/car/CarInformationMapper.xml
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT
+ car_information_id,
+ car_information_VIN,
+ car_information_license_plate,
+ car_information_brand,
+ car_information_color,
+ car_information_driver,
+ car_information_examine_enddata,
+ car_information_motor_manufacturer,
+ car_information_motor_model,
+ car_information_battery_manufacturer,
+ car_information_battery_model,
+ car_information_fence,
+ car_information_type,
+ car_information_focus,
+ car_information_state
+ FROM `car_information`
+
+
+
+
+
+
+
+
+ INSERT INTO `car_information`
+ (
+ car_information_VIN,
+ car_information_license_plate,
+ car_information_brand,
+ car_information_color,
+ car_information_driver,
+ car_information_examine_enddata,
+ car_information_motor_manufacturer,
+ car_information_motor_model,
+ car_information_battery_manufacturer,
+ car_information_battery_model,
+ car_information_fence,
+ car_information_type )
+ VALUES (
+ #{carInformationVIN},
+ #{carInformationLicensePlate},
+ #{carInformationBrand} ,
+ #{carInformationColor},
+ #{carInformationDriver},
+ #{carInformationExamineEnddata},
+ #{carInformationMotorManufacturer},
+ #{carInformationMotorModel},
+ #{carInformationBatteryManufacturer},
+ #{carInformationBatteryModel},
+ #{carInformationFence},
+ #{carInformationType} );
+
+
+
+ UPDATE `car_information`
+ SET
+
+ ` car_information_VIN` = #{carInformationVIN},
+
+
+ ` car_information_license_plate ` = #{carInformationLicensePlate},
+
+
+ `car_information_brand` = #{carInformationBrand},
+
+
+ `car_information_color` = #{carInformationColor},
+
+
+ `car_information_driver` = #{carInformationDriver},
+
+
+ `car_information_motor_manufacturer` = #{carInformationMotorManufacturer},
+
+
+ `car_information_motor_model` = #{carInformationMotorModel} ,
+
+
+ `car_information_battery_manufacturer `= #{carInformationBatteryManufacturer},
+
+
+ `car_information_battery_model` = #{carInformationBatteryModel},
+
+
+ `car_information_fence` = #{carInformationFence},
+
+
+ `car_information_type` = #{carInformationType} ,
+
+
+ `car_information_focus` = #{carInformationFocus},
+
+
+ `car_information_state` = #{carInformationState}
+
+ WHERE `car_information_id` = #{carInformationId}
+
+
+
+
+ DELETE FROM `car_information`
+ WHERE `car_information`.car_information_id= #{carInformationId}
+
+
+
+
+
+
+
diff --git a/cloud-modules/cloud-modules-car/src/main/resources/mapper/car/CarMessageMapper.xml b/cloud-modules/cloud-modules-car/src/main/resources/mapper/car/CarMessageMapper.xml
new file mode 100644
index 0000000..1c5e4e5
--- /dev/null
+++ b/cloud-modules/cloud-modules-car/src/main/resources/mapper/car/CarMessageMapper.xml
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO `car_message` (
+ car_message_cartype,
+ car_message_type,
+ car_message_start_index,
+ car_message_end_index,
+ message_type_class,
+ car_message_state
+ )
+ VALUES(
+ #{carMessageCartype},
+ #{carMessageType},
+ #{carMessageStartIndex},
+ #{carMessageEndIndex},
+ #{messageTypeClass},
+ #{carMessageState}
+ )
+
+
+
+ UPDATE `car_message`
+ SET
+
+ car_message_cartype = #{carMessageCartype} ,
+
+
+ car_message_type = #{carMessageType} ,
+
+
+ car_message_start_index = #{carMessageStartIndex} ,
+
+
+ car_message_end_index = #{carMessageEndIndex} ,
+
+
+ message_type_class = #{messageTypeClass} ,
+
+
+ car_message_state = #{carMessageState}
+
+
+
+
+
+ DELETE FROM `car_message`
+ WHERE `car_message`.car_message_id = #{carMessageId}
+
+
+
+
+
diff --git a/cloud-modules/cloud-modules-file/src/main/resources/bootstrap.yml b/cloud-modules/cloud-modules-file/src/main/resources/bootstrap.yml
deleted file mode 100644
index a02fcfb..0000000
--- a/cloud-modules/cloud-modules-file/src/main/resources/bootstrap.yml
+++ /dev/null
@@ -1,47 +0,0 @@
-# Tomcat
-server:
- port: 9300
-
-# nacos线上地址
-nacos:
- addr: 159.75.188.178:8848
- user-name: nacos
- password: nacos
- namespace: eight
-
-# Spring
-spring:
- application:
- # 应用名称
- name: cloud-file
- profiles:
- # 环境配置
- active: dev
- cloud:
- nacos:
- discovery:
- # 服务注册地址
- server-addr: ${nacos.addr}
- # nacos用户名
- username: ${nacos.user-name}
- # nacos密码
- password: ${nacos.password}
- # 命名空间
- namespace: ${nacos.namespace}
- config:
- # 服务注册地址
- server-addr: ${nacos.addr}
- # nacos用户名
- username: ${nacos.user-name}
- # nacos密码
- password: ${nacos.password}
- # 命名空间
- namespace: ${nacos.namespace}
- # 配置文件格式
- file-extension: yml
- # 共享配置
- shared-configs:
- # 系统共享配置
- - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
- # 系统环境Config共享配置
- - application-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
diff --git a/cloud-modules/cloud-modules-gen/src/main/resources/bootstrap.yml b/cloud-modules/cloud-modules-gen/src/main/resources/bootstrap.yml
deleted file mode 100644
index 4663d03..0000000
--- a/cloud-modules/cloud-modules-gen/src/main/resources/bootstrap.yml
+++ /dev/null
@@ -1,51 +0,0 @@
-# Tomcat
-server:
- port: 9202
-
-# nacos线上地址
-nacos:
- addr: 159.75.188.178:8848
- user-name: nacos
- password: nacos
- namespace: eight
-
-# Spring
-spring:
- main:
- allow-bean-definition-overriding: true
- application:
- # 应用名称
- name: cloud-gen
- profiles:
- # 环境配置
- active: dev
- cloud:
- nacos:
- discovery:
- # 服务注册地址
- server-addr: ${nacos.addr}
- # nacos用户名
- username: ${nacos.user-name}
- # nacos密码
- password: ${nacos.password}
- # 命名空间
- namespace: ${nacos.namespace}
- config:
- # 服务注册地址
- server-addr: ${nacos.addr}
- # nacos用户名
- username: ${nacos.user-name}
- # nacos密码
- password: ${nacos.password}
- # 命名空间
- namespace: ${nacos.namespace}
- # 配置文件格式
- file-extension: yml
- # 共享配置
- shared-configs:
- # 系统共享配置
- - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
- # 系统环境Config共享配置
- - application-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
- # xxl-job 配置文件
- - application-xxl-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
diff --git a/cloud-modules/pom.xml b/cloud-modules/pom.xml
index ba0d555..516b222 100644
--- a/cloud-modules/pom.xml
+++ b/cloud-modules/pom.xml
@@ -12,6 +12,7 @@
cloud-modules-system
cloud-modules-gen
cloud-modules-file
+ cloud-modules-car
cloud-modules
diff --git a/cloud-visual/cloud-visual-monitor/src/main/resources/bootstrap.yml b/cloud-visual/cloud-visual-monitor/src/main/resources/bootstrap.yml
deleted file mode 100644
index ae51cac..0000000
--- a/cloud-visual/cloud-visual-monitor/src/main/resources/bootstrap.yml
+++ /dev/null
@@ -1,47 +0,0 @@
-# Tomcat
-server:
- port: 9100
-
-# nacos线上地址
-nacos:
- addr: 159.75.188.178:8848
- user-name: nacos
- password: nacos
- namespace: eight
-
-# Spring
-spring:
- application:
- # 应用名称
- name: cloud-monitor
- profiles:
- # 环境配置
- active: dev
- cloud:
- nacos:
- discovery:
- # 服务注册地址
- server-addr: ${nacos.addr}
- # nacos用户名
- username: ${nacos.user-name}
- # nacos密码
- password: ${nacos.password}
- # 命名空间
- namespace: ${nacos.namespace}
- config:
- # 服务注册地址
- server-addr: ${nacos.addr}
- # nacos用户名
- username: ${nacos.user-name}
- # nacos密码
- password: ${nacos.password}
- # 命名空间
- namespace: ${nacos.namespace}
- # 配置文件格式
- file-extension: yml
- # 共享配置
- shared-configs:
- # 系统共享配置
- - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
- # 系统环境Config共享配置
- - application-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}