From f597b6cbfc8c009256fc2d01616061978a278c8d Mon Sep 17 00:00:00 2001
From: liuyunhu <3286117488@qq.com>
Date: Sun, 31 Mar 2024 22:10:30 +0800
Subject: [PATCH] =?UTF-8?q?=E8=99=8E=EF=BC=8C=E8=BD=A6=E8=BE=86=E6=A8=A1?=
=?UTF-8?q?=E5=9D=97=E5=AE=8C=E5=96=84=EF=BC=8C=E5=89=8D=E5=8F=B0=E5=AE=8C?=
=?UTF-8?q?=E5=96=84=EF=BC=8C=E5=8A=9F=E8=83=BD=E5=B7=B2=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
couplet-auth/src/main/resources/bootstrap.yml | 2 +
.../src/main/resources/bootstrap.yml | 2 +
.../src/main/resources/bootstrap.yml | 2 +
.../src/main/resources/bootstrap.yml | 2 +
.../src/main/resources/bootstrap.yml | 4 +-
.../src/main/resources/bootstrap.yml | 4 +-
.../src/main/resources/bootstrap.yml | 4 +-
.../src/main/resources/bootstrap.yml | 4 +-
.../couplet-modules-vehicle/pom.xml | 7 ++++
.../vehicle/controller/VehicleController.java | 29 +++++++++++--
.../vehicle/domain/req/VehicleEditParams.java | 4 ++
.../domain/req/VehicleInsertParams.java | 1 -
.../vehicle/domain/req/VehicleListParams.java | 6 +++
.../vehicle/mapper/VehicleAndLogoMapper.java | 4 ++
.../service/VehicleAndLogoService.java | 4 ++
.../vehicle/service/VehicleService.java | 2 +
.../impl/VehicleAndLogoServiceImpl.java | 37 +++++++++++++++++
.../service/impl/VehicleServiceImpl.java | 41 ++++++++++++++++---
.../src/main/resources/bootstrap.yml | 4 +-
.../mapper/vehicle/VehicleAndLogoMapper.xml | 12 ++++++
.../src/main/resources/bootstrap.yml | 2 +
.../src/main/resources/bootstrap.yml | 4 +-
.../src/main/resources/bootstrap.yml | 4 +-
pom.xml | 4 +-
24 files changed, 164 insertions(+), 25 deletions(-)
diff --git a/couplet-auth/src/main/resources/bootstrap.yml b/couplet-auth/src/main/resources/bootstrap.yml
index 3853815..ff483b1 100644
--- a/couplet-auth/src/main/resources/bootstrap.yml
+++ b/couplet-auth/src/main/resources/bootstrap.yml
@@ -15,9 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
+ namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
+ namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置
diff --git a/couplet-gateway/src/main/resources/bootstrap.yml b/couplet-gateway/src/main/resources/bootstrap.yml
index 091e68a..6dc39fe 100644
--- a/couplet-gateway/src/main/resources/bootstrap.yml
+++ b/couplet-gateway/src/main/resources/bootstrap.yml
@@ -15,9 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
+ namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
+ namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置
diff --git a/couplet-modules/couplet-electronic-fence/couplet-electronic-fence-server/src/main/resources/bootstrap.yml b/couplet-modules/couplet-electronic-fence/couplet-electronic-fence-server/src/main/resources/bootstrap.yml
index 770cb7e..470080e 100644
--- a/couplet-modules/couplet-electronic-fence/couplet-electronic-fence-server/src/main/resources/bootstrap.yml
+++ b/couplet-modules/couplet-electronic-fence/couplet-electronic-fence-server/src/main/resources/bootstrap.yml
@@ -16,9 +16,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
+ namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
+ namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置
diff --git a/couplet-modules/couplet-enterprisemanagement/couplet-enterprisemanagement-server/src/main/resources/bootstrap.yml b/couplet-modules/couplet-enterprisemanagement/couplet-enterprisemanagement-server/src/main/resources/bootstrap.yml
index 97e6515..7ae87e9 100644
--- a/couplet-modules/couplet-enterprisemanagement/couplet-enterprisemanagement-server/src/main/resources/bootstrap.yml
+++ b/couplet-modules/couplet-enterprisemanagement/couplet-enterprisemanagement-server/src/main/resources/bootstrap.yml
@@ -15,9 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
+ namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
+ namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置
diff --git a/couplet-modules/couplet-file/src/main/resources/bootstrap.yml b/couplet-modules/couplet-file/src/main/resources/bootstrap.yml
index 8681657..b0d1d24 100644
--- a/couplet-modules/couplet-file/src/main/resources/bootstrap.yml
+++ b/couplet-modules/couplet-file/src/main/resources/bootstrap.yml
@@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
- namespace: 968741d4-299d-483c-8d30-ede2aff8cfd4
+ namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
- namespace: 968741d4-299d-483c-8d30-ede2aff8cfd4
+ namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置
diff --git a/couplet-modules/couplet-gen/src/main/resources/bootstrap.yml b/couplet-modules/couplet-gen/src/main/resources/bootstrap.yml
index b1f7d75..617a4d1 100644
--- a/couplet-modules/couplet-gen/src/main/resources/bootstrap.yml
+++ b/couplet-modules/couplet-gen/src/main/resources/bootstrap.yml
@@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
- namespace: 968741d4-299d-483c-8d30-ede2aff8cfd4
+ namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
- namespace: 968741d4-299d-483c-8d30-ede2aff8cfd4
+ namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置
diff --git a/couplet-modules/couplet-job/src/main/resources/bootstrap.yml b/couplet-modules/couplet-job/src/main/resources/bootstrap.yml
index 147fbc9..41d1fef 100644
--- a/couplet-modules/couplet-job/src/main/resources/bootstrap.yml
+++ b/couplet-modules/couplet-job/src/main/resources/bootstrap.yml
@@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
- namespace: 00004c44-c962-48f0-bc9a-7e589b2881e3
+ namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
- namespace: 00004c44-c962-48f0-bc9a-7e589b2881e3
+ namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置
diff --git a/couplet-modules/couplet-modules-mq/src/main/resources/bootstrap.yml b/couplet-modules/couplet-modules-mq/src/main/resources/bootstrap.yml
index 29958e8..61d454f 100644
--- a/couplet-modules/couplet-modules-mq/src/main/resources/bootstrap.yml
+++ b/couplet-modules/couplet-modules-mq/src/main/resources/bootstrap.yml
@@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
- namespace: a439ce3f-2c42-4b4c-9c4d-c8db49933c15
+ namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
- namespace: a439ce3f-2c42-4b4c-9c4d-c8db49933c15
+ namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置
diff --git a/couplet-modules/couplet-modules-vehicle/pom.xml b/couplet-modules/couplet-modules-vehicle/pom.xml
index bd06244..52301c1 100644
--- a/couplet-modules/couplet-modules-vehicle/pom.xml
+++ b/couplet-modules/couplet-modules-vehicle/pom.xml
@@ -84,6 +84,13 @@
couplet-common-swagger
+
+
+ com.github.pagehelper
+ pagehelper-spring-boot-starter
+ 1.4.1
+
+
diff --git a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/controller/VehicleController.java b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/controller/VehicleController.java
index d78d7aa..655dc34 100644
--- a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/controller/VehicleController.java
+++ b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/controller/VehicleController.java
@@ -10,6 +10,8 @@ import com.couplet.vehicle.domain.req.VehicleEditParams;
import com.couplet.vehicle.domain.req.VehicleInsertParams;
import com.couplet.vehicle.domain.req.VehicleListParams;
import com.couplet.vehicle.service.VehicleService;
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -39,10 +41,13 @@ public class VehicleController extends BaseController {
@PostMapping("/list")
@Log(title = "车辆列表")
public Result list(@RequestBody VehicleListParams listParams) {
+ PageHelper.startPage(listParams.getPageNum(), listParams.getPageSize());
- List List = vehicleService.list(listParams);
+ List list = vehicleService.list(listParams);
- return Result.success(List);
+ PageInfo vehiclePageInfo = new PageInfo<>(list);
+
+ return Result.success(vehiclePageInfo);
}
/*
@@ -90,9 +95,27 @@ public class VehicleController extends BaseController {
@PostMapping("/insert")
@Log(title = "新增车辆", businessType = BusinessType.INSERT)
public Result insert(@RequestBody @Validated VehicleInsertParams insertParams) {
-
+ System.out.println(insertParams);
String result = vehicleService.insert(insertParams);
return Result.success(result);
}
+
+
+ /*
+ * @Author: LiuYunHu
+ * @Date: 2024/3/31 21:34
+ * @Description: 获取绑定当前车辆的标识
+ * @Param: [vehicleId]
+ * @Return: com.couplet.common.core.domain.Result
+ **/
+ @RequiresPermissions("couplet:vehicle:list")
+ @GetMapping("/getBindLogoById/{vehicleId}")
+ public Result getBindLogoById(@PathVariable("vehicleId") Long vehicleId) {
+
+ List bindLogoById = vehicleService.getBindLogoById(vehicleId);
+
+
+ return Result.success(bindLogoById);
+ }
}
diff --git a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/domain/req/VehicleEditParams.java b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/domain/req/VehicleEditParams.java
index d2186d4..3eeeb6f 100644
--- a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/domain/req/VehicleEditParams.java
+++ b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/domain/req/VehicleEditParams.java
@@ -6,6 +6,7 @@ import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import javax.validation.constraints.NotNull;
+import java.util.List;
/**
@@ -53,4 +54,7 @@ public class VehicleEditParams {
* */
private String batteryNumber;
+ //标识id集合
+ private List logoIds;
+
}
diff --git a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/domain/req/VehicleInsertParams.java b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/domain/req/VehicleInsertParams.java
index db7a36d..51c2279 100644
--- a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/domain/req/VehicleInsertParams.java
+++ b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/domain/req/VehicleInsertParams.java
@@ -57,7 +57,6 @@ public class VehicleInsertParams {
/*
* 一辆车可以绑定多个标识
* */
- @Size(min = 1, message = "车辆至少绑定一个标识")
private List logoIds;
}
diff --git a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/domain/req/VehicleListParams.java b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/domain/req/VehicleListParams.java
index 7568e72..31acc33 100644
--- a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/domain/req/VehicleListParams.java
+++ b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/domain/req/VehicleListParams.java
@@ -26,4 +26,10 @@ public class VehicleListParams {
* */
private Integer vehicleState;
+ /*
+ * 分页参数
+ * */
+ private Integer pageNum = 1;
+ private Integer pageSize = 5;
+
}
diff --git a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/mapper/VehicleAndLogoMapper.java b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/mapper/VehicleAndLogoMapper.java
index 4d0072b..aff8454 100644
--- a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/mapper/VehicleAndLogoMapper.java
+++ b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/mapper/VehicleAndLogoMapper.java
@@ -18,4 +18,8 @@ import java.util.List;
@Component
public interface VehicleAndLogoMapper extends BaseMapper {
int vehicleBindLogo(@Param("vehicleId") Long vehicleId, @Param("logoIds") List logoIds);
+
+ int deleteByVehicleId(@Param("vehicleId") Long vehicleId);
+
+ List getBindLogoById(@Param("vehicleId") Long vehicleId);
}
diff --git a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/VehicleAndLogoService.java b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/VehicleAndLogoService.java
index 59c40d7..1e15138 100644
--- a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/VehicleAndLogoService.java
+++ b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/VehicleAndLogoService.java
@@ -14,4 +14,8 @@ import java.util.List;
public interface VehicleAndLogoService extends IService {
int vehicleBindLogo(Long vehicleId, List logoIds);
+
+ int deleteByVehicleId(Long vehicleId);
+
+ List getBindLogoById(Long vehicleId);
}
diff --git a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/VehicleService.java b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/VehicleService.java
index dcf66fa..ee6b50f 100644
--- a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/VehicleService.java
+++ b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/VehicleService.java
@@ -23,4 +23,6 @@ public interface VehicleService extends IService {
String editById(VehicleEditParams editParams);
String insert(VehicleInsertParams insertParams);
+
+ List getBindLogoById(Long vehicleId);
}
diff --git a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/impl/VehicleAndLogoServiceImpl.java b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/impl/VehicleAndLogoServiceImpl.java
index 7a82c69..e5e5a5e 100644
--- a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/impl/VehicleAndLogoServiceImpl.java
+++ b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/impl/VehicleAndLogoServiceImpl.java
@@ -8,6 +8,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
+import java.util.ArrayList;
import java.util.List;
/**
@@ -34,7 +35,43 @@ public class VehicleAndLogoServiceImpl extends ServiceImpl logoIds) {
+ //将ids转为list
+// ArrayList logoIdList = new ArrayList<>();
+// String[] split = logoIds.split(",");
+// for (String s : split) {
+// logoIdList.add(Long.parseLong(s));
+// }
+ //执行绑定
return mapper.vehicleBindLogo(vehicleId, logoIds);
}
+
+ /*
+ * @Author: LiuYunHu
+ * @Date: 2024/3/31 21:21
+ * @Description: 删除掉车辆绑定
+ * @Param: [vehicleId]
+ * @Return: int
+ **/
+ @Override
+ public int deleteByVehicleId(Long vehicleId) {
+
+
+ return mapper.deleteByVehicleId(vehicleId);
+ }
+
+ /*
+ * @Author: LiuYunHu
+ * @Date: 2024/3/31 21:35
+ * @Description: 获取绑定当前车辆的标识
+ * @Param: [vehicleId]
+ * @Return: java.util.List
+ **/
+ @Override
+ public List getBindLogoById(Long vehicleId) {
+
+
+ return mapper.getBindLogoById(vehicleId);
+ }
+
}
diff --git a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/impl/VehicleServiceImpl.java b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/impl/VehicleServiceImpl.java
index 5302c01..1a4d5f8 100644
--- a/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/impl/VehicleServiceImpl.java
+++ b/couplet-modules/couplet-modules-vehicle/src/main/java/com/couplet/vehicle/service/impl/VehicleServiceImpl.java
@@ -3,13 +3,13 @@ package com.couplet.vehicle.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.couplet.common.core.domain.Result;
import com.couplet.common.core.utils.StringUtils;
import com.couplet.vehicle.domain.Vehicle;
import com.couplet.vehicle.domain.VehicleType;
import com.couplet.vehicle.domain.req.VehicleEditParams;
import com.couplet.vehicle.domain.req.VehicleInsertParams;
import com.couplet.vehicle.domain.req.VehicleListParams;
-import com.couplet.vehicle.exception.VehicleException;
import com.couplet.vehicle.mapper.VehicleMapper;
import com.couplet.vehicle.service.VehicleAndLogoService;
import com.couplet.vehicle.service.VehicleService;
@@ -107,7 +107,7 @@ public class VehicleServiceImpl extends ServiceImpl impl
if (!update) {
result = "删除失败";
- throw new VehicleException(result);
+ Result.error(result);
}
result = "删除成功!";
@@ -126,10 +126,14 @@ public class VehicleServiceImpl extends ServiceImpl impl
public String editById(VehicleEditParams editParams) {
String result = "";
+ if ((editParams.getLogoIds() == null || editParams.getLogoIds().isEmpty())) {
+ result = "未选择电子围栏";
+ Result.error(result);
+ }
+
UpdateWrapper updateWrapper = new UpdateWrapper<>();
//编辑车辆类型
-
updateWrapper.set("vehicle_type", editParams.getVehicleType())
//编辑电机厂商
@@ -152,9 +156,15 @@ public class VehicleServiceImpl extends ServiceImpl impl
if (!update) {
result = "编辑失败";
- throw new VehicleException(result);
+ Result.error(result);
}
+ //删除掉车辆id为入参的车辆、标识的中间表数据
+ int delete = vehicleAndLogoService.deleteByVehicleId(editParams.getVehicleId());
+
+ //删除绑定之后,再添加新的绑定
+ vehicleAndLogoService.vehicleBindLogo(editParams.getVehicleId(), editParams.getLogoIds());
+
result = "编辑成功!";
return result;
@@ -171,6 +181,12 @@ public class VehicleServiceImpl extends ServiceImpl impl
public String insert(VehicleInsertParams insertParams) {
String result = "";
+ if ((insertParams.getLogoIds() == null || insertParams.getLogoIds().isEmpty())) {
+ result = "未选择电子围栏";
+ Result.error(result);
+ }
+
+
//雪花算法生成随机数
SnowflakeIdGenerator idGenerator = new SnowflakeIdGenerator(1, 1);
long randomId = idGenerator.nextId();
@@ -195,7 +211,7 @@ public class VehicleServiceImpl extends ServiceImpl impl
if (insert == 0) {
result = "新增失败";
- throw new VehicleException(result);
+ Result.error(result);
}
//获取新增的车辆id值
@@ -208,4 +224,19 @@ public class VehicleServiceImpl extends ServiceImpl impl
return result;
}
+
+ /*
+ * @Author: LiuYunHu
+ * @Date: 2024/3/31 21:34
+ * @Description: 获取绑定当前车辆的标识
+ * @Param: [vehicleId]
+ * @Return: java.util.List
+ **/
+ @Override
+ public List getBindLogoById(Long vehicleId) {
+ List logoIds = vehicleAndLogoService.getBindLogoById(vehicleId);
+
+ return logoIds;
+ }
+
}
diff --git a/couplet-modules/couplet-modules-vehicle/src/main/resources/bootstrap.yml b/couplet-modules/couplet-modules-vehicle/src/main/resources/bootstrap.yml
index 7676300..f985e0c 100644
--- a/couplet-modules/couplet-modules-vehicle/src/main/resources/bootstrap.yml
+++ b/couplet-modules/couplet-modules-vehicle/src/main/resources/bootstrap.yml
@@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
- namespace: a439ce3f-2c42-4b4c-9c4d-c8db49933c15
+ namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
- namespace: a439ce3f-2c42-4b4c-9c4d-c8db49933c15
+ namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置
diff --git a/couplet-modules/couplet-modules-vehicle/src/main/resources/mapper/vehicle/VehicleAndLogoMapper.xml b/couplet-modules/couplet-modules-vehicle/src/main/resources/mapper/vehicle/VehicleAndLogoMapper.xml
index ac6051c..854c18e 100644
--- a/couplet-modules/couplet-modules-vehicle/src/main/resources/mapper/vehicle/VehicleAndLogoMapper.xml
+++ b/couplet-modules/couplet-modules-vehicle/src/main/resources/mapper/vehicle/VehicleAndLogoMapper.xml
@@ -12,4 +12,16 @@
(#{vehicleId},#{logoId})
+
+
+ DELETE
+ FROM `couplet_vehicle_and_logo`
+ WHERE `vehicle_id` = #{vehicleId}
+
+
+
diff --git a/couplet-modules/couplet-system/src/main/resources/bootstrap.yml b/couplet-modules/couplet-system/src/main/resources/bootstrap.yml
index d9315bd..91453d0 100644
--- a/couplet-modules/couplet-system/src/main/resources/bootstrap.yml
+++ b/couplet-modules/couplet-system/src/main/resources/bootstrap.yml
@@ -15,9 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
+ namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
+ namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置
diff --git a/couplet-modules/couplet-trouble/src/main/resources/bootstrap.yml b/couplet-modules/couplet-trouble/src/main/resources/bootstrap.yml
index 0472d28..8dc0fff 100644
--- a/couplet-modules/couplet-trouble/src/main/resources/bootstrap.yml
+++ b/couplet-modules/couplet-trouble/src/main/resources/bootstrap.yml
@@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
- namespace: a439ce3f-2c42-4b4c-9c4d-c8db49933c15
+ namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
- namespace: a439ce3f-2c42-4b4c-9c4d-c8db49933c15
+ namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置
diff --git a/couplet-visual/couplet-monitor/src/main/resources/bootstrap.yml b/couplet-visual/couplet-monitor/src/main/resources/bootstrap.yml
index fe8cc0a..d219500 100644
--- a/couplet-visual/couplet-monitor/src/main/resources/bootstrap.yml
+++ b/couplet-visual/couplet-monitor/src/main/resources/bootstrap.yml
@@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
- namespace: 00004c44-c962-48f0-bc9a-7e589b2881e3
+ namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
- namespace: 00004c44-c962-48f0-bc9a-7e589b2881e3
+ namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置
diff --git a/pom.xml b/pom.xml
index 3152da5..5cbe281 100644
--- a/pom.xml
+++ b/pom.xml
@@ -250,14 +250,14 @@
com.couplet
couplet-modules-vehicle
- 3.6.3
+ ${couplet.version}
com.couplet
couplet-modules-mq
- 3.6.3
+ ${couplet.version}