diff --git a/cloud-common/cloud-common-cache/src/main/java/com/muyu/common/cache/config/CacheAbsBasic.java b/cloud-common/cloud-common-cache/src/main/java/com/muyu/common/cache/config/CacheAbsBasic.java index d7b3575..165845e 100644 --- a/cloud-common/cloud-common-cache/src/main/java/com/muyu/common/cache/config/CacheAbsBasic.java +++ b/cloud-common/cloud-common-cache/src/main/java/com/muyu/common/cache/config/CacheAbsBasic.java @@ -9,6 +9,9 @@ package com.muyu.common.cache.config; import com.muyu.common.redis.service.RedisService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; public abstract class CacheAbsBasic implements CacheBasic { diff --git a/cloud-common/cloud-common-cache/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/cloud-common/cloud-common-cache/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports deleted file mode 100644 index 6bb15df..0000000 --- a/cloud-common/cloud-common-cache/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports +++ /dev/null @@ -1 +0,0 @@ -com.muyu.common.cache.config.SpringDocConfig diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/pom.xml b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/pom.xml index f4c2c48..4139ff8 100644 --- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/pom.xml +++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/pom.xml @@ -26,8 +26,9 @@ com.muyu cloud-common-cache - 3.6.3 + + com.muyu cloud-modules-enterprise-common diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports index 606fe14..74d44ab 100644 --- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports +++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-cache/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -1 +1,2 @@ com.muyu.enterprise.cache.CarManageCacheService + diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-common/src/main/java/com/muyu/enterprise/domain/dto/CarDTO.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-common/src/main/java/com/muyu/enterprise/domain/dto/CarDTO.java index 5a4f1ad..9692461 100644 --- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-common/src/main/java/com/muyu/enterprise/domain/dto/CarDTO.java +++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-common/src/main/java/com/muyu/enterprise/domain/dto/CarDTO.java @@ -24,33 +24,22 @@ public class CarDTO { */ private Long companyId; /** - * 能源类型 1.电动 2.纯油 3.混动 + * 车辆配置 */ - private Integer energyType; - /** - * 档的类型 1.手动 2.自动 - */ - private Integer gearType; + private Integer configId; - private Integer pageNum = 1; - private Integer pageSize = 3; - - /** 最后一次连线时间 */ - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date carLastJoinTime; - - /** 最后一次离线时间 */ - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date carLastOfflineTime; /** * 在线状态 1.无信号 2.行驶中 3.已停止 */ private Integer carStatus; - - /** - * 企业名称 + * 车辆品牌 */ - @TableField(exist = false) - private String companyName; + private String carModel; + /** + * 车辆型号 + */ + private String carBrand; + + } diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/pom.xml b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/pom.xml index 4b5e544..633496c 100644 --- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/pom.xml +++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/pom.xml @@ -77,11 +77,10 @@ cloud-common-api-doc - + com.muyu cloud-modules-enterprise-cache - 3.6.3 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 72bdf50..091f736 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 @@ -52,7 +52,11 @@ public class CarManageServiceImpl extends ServiceImpl list = lambdaQuery() .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()) + .eq(carManage.getCarStatus() > 0, CarManage::getCarStatus, carManage.getCarStatus()) .eq(carManage.getConfigId() > 0, CarManage::getConfigId, carManage.getConfigId()) + .eq(carManage.getCompanyId() > 0, CarManage::getCompanyId, carManage.getCompanyId()) .list(); // List list = list(); @@ -73,6 +77,8 @@ public class CarManageServiceImpl extends ServiceImpl CarListShow(CarDTO carDTO) { + // 获取 企业 + CarManage carManage = BeanUtil.copyProperties(carDTO, CarManage.class); return carManageMapper.selectJoinList(CarVO.class, new MPJLambdaWrapper() .selectAll(CarManage.class) // 查询所有车辆表 .select(CarCompany::getCompanyName) @@ -81,6 +87,12 @@ public class CarManageServiceImpl extends ServiceImpl 0, CarManage::getCarStatus, carManage.getCarStatus()) + .eq(carManage.getConfigId() > 0, CarManage::getConfigId, carManage.getConfigId()) + .eq(carManage.getCompanyId() > 0, CarManage::getCompanyId, carManage.getCompanyId()) ); } diff --git a/pom.xml b/pom.xml index d807259..473f6f4 100644 --- a/pom.xml +++ b/pom.xml @@ -281,6 +281,20 @@ ${muyu.version} + + + com.muyu + cloud-common-cache + ${muyu.version} + + + + + com.muyu + cloud-modules-enterprise-cache + ${muyu.version} + + com.muyu