1.feat(): 添加将pom文件版本号统一管理
2.fix(): 修复了项目运行时的报错: Error creating bean with name 'com.muyu.common.cache.config.CacheAbsBasic': Failed to instantiate [com.muyu.common.cache.config.CacheAbsBasic]: Is it an abstract class? 更新时间09301928dev.entOperation
parent
b9f3cac204
commit
a229006c89
|
@ -9,6 +9,9 @@ package com.muyu.common.cache.config;
|
||||||
|
|
||||||
import com.muyu.common.redis.service.RedisService;
|
import com.muyu.common.redis.service.RedisService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
|
||||||
public abstract class CacheAbsBasic<K,V> implements CacheBasic<K,V> {
|
public abstract class CacheAbsBasic<K,V> implements CacheBasic<K,V> {
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.muyu.common.cache.config.SpringDocConfig
|
|
|
@ -26,8 +26,9 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>cloud-common-cache</artifactId>
|
<artifactId>cloud-common-cache</artifactId>
|
||||||
<version>3.6.3</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>cloud-modules-enterprise-common</artifactId>
|
<artifactId>cloud-modules-enterprise-common</artifactId>
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
com.muyu.enterprise.cache.CarManageCacheService
|
com.muyu.enterprise.cache.CarManageCacheService
|
||||||
|
|
||||||
|
|
|
@ -24,33 +24,22 @@ public class CarDTO {
|
||||||
*/
|
*/
|
||||||
private Long companyId;
|
private Long companyId;
|
||||||
/**
|
/**
|
||||||
* 能源类型 1.电动 2.纯油 3.混动
|
* 车辆配置
|
||||||
*/
|
*/
|
||||||
private Integer energyType;
|
private Integer configId;
|
||||||
/**
|
|
||||||
* 档的类型 1.手动 2.自动
|
|
||||||
*/
|
|
||||||
private Integer gearType;
|
|
||||||
|
|
||||||
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.已停止
|
* 在线状态 1.无信号 2.行驶中 3.已停止
|
||||||
*/
|
*/
|
||||||
private Integer carStatus;
|
private Integer carStatus;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 企业名称
|
* 车辆品牌
|
||||||
*/
|
*/
|
||||||
@TableField(exist = false)
|
private String carModel;
|
||||||
private String companyName;
|
/**
|
||||||
|
* 车辆型号
|
||||||
|
*/
|
||||||
|
private String carBrand;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,11 +77,10 @@
|
||||||
<artifactId>cloud-common-api-doc</artifactId>
|
<artifactId>cloud-common-api-doc</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- redis 缓存 -->
|
<!-- 企业缓存 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>cloud-modules-enterprise-cache</artifactId>
|
<artifactId>cloud-modules-enterprise-cache</artifactId>
|
||||||
<version>3.6.3</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- 企业业务平台 - 公共依赖 -->
|
<!-- 企业业务平台 - 公共依赖 -->
|
||||||
|
|
|
@ -52,7 +52,11 @@ public class CarManageServiceImpl extends ServiceImpl<CarManageMapper, CarManage
|
||||||
CarManage carManage = BeanUtil.copyProperties(carDTO, CarManage.class);
|
CarManage carManage = BeanUtil.copyProperties(carDTO, CarManage.class);
|
||||||
List<CarManage> list = lambdaQuery()
|
List<CarManage> list = lambdaQuery()
|
||||||
.eq(carManage.getCarVin() != null && carManage.getCarVin() != "", CarManage::getCarVin, carManage.getCarVin())
|
.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.getConfigId() > 0, CarManage::getConfigId, carManage.getConfigId())
|
||||||
|
.eq(carManage.getCompanyId() > 0, CarManage::getCompanyId, carManage.getCompanyId())
|
||||||
.list();
|
.list();
|
||||||
// List<CarManage> list = list();
|
// List<CarManage> list = list();
|
||||||
|
|
||||||
|
@ -73,6 +77,8 @@ public class CarManageServiceImpl extends ServiceImpl<CarManageMapper, CarManage
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public List<CarVO> CarListShow(CarDTO carDTO) {
|
public List<CarVO> CarListShow(CarDTO carDTO) {
|
||||||
|
// 获取 企业
|
||||||
|
CarManage carManage = BeanUtil.copyProperties(carDTO, CarManage.class);
|
||||||
return carManageMapper.selectJoinList(CarVO.class, new MPJLambdaWrapper<CarManage>()
|
return carManageMapper.selectJoinList(CarVO.class, new MPJLambdaWrapper<CarManage>()
|
||||||
.selectAll(CarManage.class) // 查询所有车辆表
|
.selectAll(CarManage.class) // 查询所有车辆表
|
||||||
.select(CarCompany::getCompanyName)
|
.select(CarCompany::getCompanyName)
|
||||||
|
@ -81,6 +87,12 @@ public class CarManageServiceImpl extends ServiceImpl<CarManageMapper, CarManage
|
||||||
.select(CarConfig::getEnergyType)
|
.select(CarConfig::getEnergyType)
|
||||||
.leftJoin(CarConfig.class, CarConfig::getConfigId, CarManage::getConfigId)
|
.leftJoin(CarConfig.class, CarConfig::getConfigId, CarManage::getConfigId)
|
||||||
.leftJoin(CarCompany.class, CarCompany::getCompanyId, CarManage::getCompanyId)
|
.leftJoin(CarCompany.class, CarCompany::getCompanyId, CarManage::getCompanyId)
|
||||||
|
.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())
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
14
pom.xml
14
pom.xml
|
@ -281,6 +281,20 @@
|
||||||
<version>${muyu.version}</version>
|
<version>${muyu.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- 公共缓存模块 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.muyu</groupId>
|
||||||
|
<artifactId>cloud-common-cache</artifactId>
|
||||||
|
<version>${muyu.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- 企业缓存模块 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.muyu</groupId>
|
||||||
|
<artifactId>cloud-modules-enterprise-cache</artifactId>
|
||||||
|
<version>${muyu.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- 企业业务平台 - 公告模块 -->
|
<!-- 企业业务平台 - 公告模块 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
|
|
Loading…
Reference in New Issue