diff --git a/cloud-common/cloud-common-saas/pom.xml b/cloud-common/cloud-common-saas/pom.xml
index 60b4041..0641cdb 100644
--- a/cloud-common/cloud-common-saas/pom.xml
+++ b/cloud-common/cloud-common-saas/pom.xml
@@ -29,6 +29,12 @@
com.muyu
cloud-common-security
+
+
+
+ com.muyu
+ cloud-common-core
+
diff --git a/cloud-common/cloud-common-system/src/main/java/com/muyu/common/system/remote/RemoteEntService.java b/cloud-common/cloud-common-system/src/main/java/com/muyu/common/system/remote/RemoteEntService.java
index 97ca0d2..5711e2e 100644
--- a/cloud-common/cloud-common-system/src/main/java/com/muyu/common/system/remote/RemoteEntService.java
+++ b/cloud-common/cloud-common-system/src/main/java/com/muyu/common/system/remote/RemoteEntService.java
@@ -30,7 +30,9 @@ public interface RemoteEntService {
* @param entId 企业ID
* @return 响应结果
*/
- @GetMapping(value = "/{entId}")
- public Result getById(@PathVariable(value = "entId") Long entId);
+ @GetMapping(value = "/getById/{entId}")
+ Result getById(@PathVariable(value = "entId") Long entId);
+// @GetMapping(value = "/{entId}")
+// Result getById(@PathVariable(value = "entId") Long entId);
}
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/java/com/muyu/enterprise/cache/CarFaultCacheService.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/java/com/muyu/enterprise/cache/CarFaultCacheService.java
index 862463f..66c31de 100644
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/java/com/muyu/enterprise/cache/CarFaultCacheService.java
+++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/java/com/muyu/enterprise/cache/CarFaultCacheService.java
@@ -1,8 +1,6 @@
package com.muyu.enterprise.cache;
import com.muyu.common.cache.config.CacheAbsBasic;
-import com.muyu.enterprise.domain.CarCompany;
-import com.muyu.enterprise.domain.FaultType;
import com.muyu.enterprise.domain.SysCarFault;
/**
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/java/com/muyu/enterprise/cache/CarTemplateCacheService.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/java/com/muyu/enterprise/cache/CarTemplateCacheService.java
index 9ffdb6a..d5ff9d8 100644
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/java/com/muyu/enterprise/cache/CarTemplateCacheService.java
+++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/java/com/muyu/enterprise/cache/CarTemplateCacheService.java
@@ -1,8 +1,6 @@
package com.muyu.enterprise.cache;
import com.muyu.common.cache.config.CacheAbsBasic;
-import com.muyu.enterprise.domain.CarCompany;
-import com.muyu.enterprise.domain.CarTemplate;
import com.muyu.enterprise.domain.vo.CarTemplateVO;
/**
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/java/com/muyu/enterprise/cache/ElectronicFenceCacheService.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/java/com/muyu/enterprise/cache/ElectronicFenceCacheService.java
index ef472f8..754ed7e 100644
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/java/com/muyu/enterprise/cache/ElectronicFenceCacheService.java
+++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/java/com/muyu/enterprise/cache/ElectronicFenceCacheService.java
@@ -1,7 +1,6 @@
package com.muyu.enterprise.cache;
import com.muyu.common.cache.config.CacheAbsBasic;
-import com.muyu.enterprise.domain.CarCompany;
import com.muyu.enterprise.domain.dateBase.ElectronicFence;
/**
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-common/src/main/java/com/muyu/enterprise/domain/CarCompany.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-common/src/main/java/com/muyu/enterprise/domain/CarCompany.java
deleted file mode 100644
index 6def21c..0000000
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-common/src/main/java/com/muyu/enterprise/domain/CarCompany.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package com.muyu.enterprise.domain;
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import io.swagger.v3.oas.annotations.tags.Tag;
-import lombok.AllArgsConstructor;
-import lombok.Builder;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-/**
- * 企业表--实体类
- * @ClassName CarCompany
- * @Description 企业表
- * @author MingWei.Zong(微醺)
- * @Date 2024/9/28 16:52
- */
-@Data
-@NoArgsConstructor
-@AllArgsConstructor
-@Builder
-@TableName(value = "car_company")
-@Tag(name = "企业表")
-public class CarCompany {
- /**
- * 企业表
- */
- @TableId(value = "enterprise_id",type = IdType.AUTO)
- private Long enterpriseId;
- /**
- * 企业名称
- */
- private String companyName;
-
-}
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/CarCompanyController.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/CarCompanyController.java
deleted file mode 100644
index ef630f6..0000000
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/CarCompanyController.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package com.muyu.enterprise.controller;
-
-import com.muyu.enterprise.domain.CarCompany;
-import com.muyu.enterprise.service.CarCompanyService;
-import com.muyu.common.core.domain.Result;
-import com.muyu.common.core.web.controller.BaseController;
-import io.swagger.v3.oas.annotations.tags.Tag;
-import lombok.RequiredArgsConstructor;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.List;
-
-/**
- * 车辆企业--控制层
- * @ClassName CarCompanyController
- * @Description 车辆企业 Controller 层
- * @author MingWei.Zong(微醺)
- * @Date 2024/9/28 16:52
- */
-@RestController
-@RequestMapping("/carCompany")
-/** 构造必备注解 只有用 final 修饰 才会被构造注入 */
-@RequiredArgsConstructor //制动构造注入 默认无参 Lombook包下
-@Tag(name = "CarCompanyController", description = "企业表")
-public class CarCompanyController extends BaseController {
-
- private final CarCompanyService sysCarCompanyService;
-
- /**
- * 查询企业表
- */
- @PostMapping("selectCompany")
- public Result> selectCompany(){
- startPage();
- List list = sysCarCompanyService.list();
- list.forEach(carCompany -> {
-
- });
- return Result.success(list);
- }
-
- /**
- * 通过ID查询企业
- */
- @PostMapping("selectCompanyByCompanyId")
- public Result selectCompanyByCompanyId(@RequestParam("enterpriseId") Long enterpriseId){
- return Result.success(sysCarCompanyService.selectCompanyByCompanyId(enterpriseId));
- }
-
-}
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/CarConfigController.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/CarConfigController.java
index 06efeec..1eff127 100644
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/CarConfigController.java
+++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/CarConfigController.java
@@ -2,19 +2,14 @@ package com.muyu.enterprise.controller;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.controller.BaseController;
-import com.muyu.enterprise.domain.CarCompany;
-import com.muyu.enterprise.service.CarCompanyService;
import com.muyu.enterprise.service.CarConfigService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
-import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
-import java.util.List;
-
/**
* 车辆配置--控制层
* @ClassName CarCompanyController
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/CarManageController.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/CarManageController.java
index 2953282..0de01d7 100644
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/CarManageController.java
+++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/CarManageController.java
@@ -5,7 +5,6 @@ import com.muyu.enterprise.cache.CarManageCacheService;
import com.muyu.enterprise.domain.CarManage;
import com.muyu.enterprise.domain.dto.CarDTO;
import com.muyu.enterprise.domain.vo.CarVO;
-import com.muyu.enterprise.service.CarCompanyService;
import com.muyu.enterprise.service.CarManageService;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.controller.BaseController;
@@ -32,8 +31,6 @@ public class CarManageController extends BaseController {
private final CarManageCacheService carManageCacheService;
- private final CarCompanyService sysCarCompanyService;
-
private final CarManageService carManageService;
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/mapper/CarCompanyMapper.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/mapper/CarCompanyMapper.java
deleted file mode 100644
index 8ad5cb2..0000000
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/mapper/CarCompanyMapper.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package com.muyu.enterprise.mapper;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.muyu.enterprise.domain.CarCompany;
-
-
-/**
- * 车辆企业--持久层
- * @ClassName CarCompanyMapper
- * @Description 车辆企业 Mapper 层
- * @author MingWei.Zong(微醺)
- * @Date 2024/9/28 16:52
- */
-public interface CarCompanyMapper extends BaseMapper {
-
-}
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/CarCompanyService.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/CarCompanyService.java
deleted file mode 100644
index 63f251c..0000000
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/CarCompanyService.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.muyu.enterprise.service;
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.muyu.enterprise.domain.CarCompany;
-
-/**
- * 车辆企业--业务层
- * @ClassName CarCompanyService
- * @Description 车辆企业 Service 层
- * @author MingWei.Zong(微醺)
- * @Date 2024/9/28 16:52
- */
-public interface CarCompanyService extends IService {
- /**
- * @param enterpriseId
- * @return
- */
- CarCompany selectCompanyByCompanyId(Long enterpriseId);
-
-
-
-}
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarCompanyServiceImpl.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarCompanyServiceImpl.java
deleted file mode 100644
index 21f840b..0000000
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarCompanyServiceImpl.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package com.muyu.enterprise.service.impl;
-
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.muyu.enterprise.domain.CarCompany;
-import com.muyu.enterprise.mapper.CarCompanyMapper;
-import com.muyu.enterprise.service.CarCompanyService;
-import com.muyu.common.redis.service.RedisService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-/**
- * 车辆企业--业务实现层
- * @ClassName CarCompanyServiceImpl
- * @Description 车辆企业 ServiceImpl 层
- * @author MingWei.Zong(微醺)
- * @Date 2024/9/28 16:52
- */
-/**
- * 车辆企业--业务层
- * @ClassName CarCompanyService
- * @Description 车辆企业 Service 层
- * @author MingWei.Zong(微醺)
- * @Date 2024/9/28 16:52
- */
-@Service
-public class CarCompanyServiceImpl extends ServiceImpl
- implements CarCompanyService {
-
- @Autowired
- private RedisService redisService;
- @Autowired
- private CarCompanyMapper carCompanyMapper;
-
- /**
- *
- * @param enterpriseId
- * @return
- */
- @Override
- public CarCompany selectCompanyByCompanyId(Long enterpriseId) {
- return carCompanyMapper.selectById(enterpriseId);
- }
-
-
-}
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarConfigServiceImpl.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarConfigServiceImpl.java
index c3b0be9..b08f58e 100644
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarConfigServiceImpl.java
+++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarConfigServiceImpl.java
@@ -1,24 +1,12 @@
package com.muyu.enterprise.service.impl;
-import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.github.yulichang.wrapper.MPJLambdaWrapper;
-import com.muyu.enterprise.domain.CarCompany;
import com.muyu.enterprise.domain.CarConfig;
-import com.muyu.enterprise.domain.CarManage;
-import com.muyu.enterprise.domain.dto.CarDTO;
-import com.muyu.enterprise.domain.vo.CarVO;
import com.muyu.enterprise.mapper.CarConfigMapper;
-import com.muyu.enterprise.mapper.CarManageMapper;
-import com.muyu.enterprise.service.CarCompanyService;
import com.muyu.enterprise.service.CarConfigService;
-import com.muyu.enterprise.service.CarManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
-import java.util.ArrayList;
-import java.util.List;
-
/**
* 车辆配置--业务实现层
* @ClassName CarConfigServiceImpl
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarManageServiceImpl.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarManageServiceImpl.java
index 44ba31b..ac84427 100644
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarManageServiceImpl.java
+++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarManageServiceImpl.java
@@ -3,16 +3,13 @@ package com.muyu.enterprise.service.impl;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
-import com.muyu.common.system.domain.SysEnt;
import com.muyu.common.system.remote.RemoteEntService;
import com.muyu.enterprise.cache.CarManageCacheService;
-import com.muyu.enterprise.domain.CarCompany;
import com.muyu.enterprise.domain.CarConfig;
import com.muyu.enterprise.domain.CarManage;
import com.muyu.enterprise.domain.dto.CarDTO;
import com.muyu.enterprise.domain.vo.CarVO;
import com.muyu.enterprise.mapper.CarManageMapper;
-import com.muyu.enterprise.service.CarCompanyService;
import com.muyu.enterprise.service.CarConfigService;
import com.muyu.enterprise.service.CarManageService;
import org.springframework.beans.factory.annotation.Autowired;
@@ -32,8 +29,6 @@ import java.util.List;
public class CarManageServiceImpl extends ServiceImpl
implements CarManageService {
- @Autowired
- private CarCompanyService carCompanyService;
@Autowired
private CarConfigService carConfigService;
@Autowired
@@ -71,8 +66,8 @@ public class CarManageServiceImpl extends ServiceImpl()
.selectAll(CarManage.class) // 查询所有车辆表
- .select(CarCompany::getCompanyName)
.select(CarConfig::getConfigName)
.select(CarConfig::getGearType)
.select(CarConfig::getEnergyType)
.leftJoin(CarConfig.class, CarConfig::getConfigId, CarManage::getConfigId)
- .leftJoin(CarCompany.class, CarCompany::getEnterpriseId, CarManage::getEnterpriseId)
.eq(carManage.getCarVin() != null && carManage.getCarVin() != "", CarManage::getCarVin, carManage.getCarVin())
.eq(carManage.getCarModel() != null && carManage.getCarModel() != "", CarManage::getCarModel, carManage.getCarModel())
.eq(carManage.getCarBrand() != null && carManage.getCarBrand() != "", CarManage::getCarBrand, carManage.getCarBrand())
diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarTemplateServiceImpl.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarTemplateServiceImpl.java
index e48a8d4..9dbe184 100644
--- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarTemplateServiceImpl.java
+++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/service/impl/CarTemplateServiceImpl.java
@@ -57,7 +57,7 @@ public class CarTemplateServiceImpl extends ServiceImpl