Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # cloud-common/cloud-common-saas/pom.xml # cloud-modules/cloud-modules-enterprise/enterpise-cache/pom.xml # cloud-modules/cloud-modules-enterprise/enterpise-service/src/main/java/com/muyu/enterpise/controller/MiddleController.java # cloud-modules/cloud-modules-enterprise/enterpise-service/src/main/java/com/muyu/enterpise/service/impl/CarFenceServiceMybaitsImpl.java # cloud-modules/cloud-modules-enterprise/enterprise-cache/src/main/java/com/muyu/enterpise/cache/VehicleCacheService.javadev.gateway
commit
dfdcbdbd86
|
@ -30,6 +30,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>enterpise-common</artifactId>
|
<artifactId>enterpise-common</artifactId>
|
||||||
|
<version>${muyu.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.muyu.common.cache;
|
package com.muyu.common.cache;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主键基础
|
* 主键基础
|
||||||
* * @className: PrimaryKeyBasic ️✈️
|
* * @className: PrimaryKeyBasic ️✈️
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>cloud-common</artifactId>
|
<artifactId>cloud-modules-enterprise</artifactId>
|
||||||
<version>3.6.3</version>
|
<version>3.6.3</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>cloud-common-saas</artifactId>
|
<artifactId>enterprise-cache</artifactId>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>17</maven.compiler.source>
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
|
@ -18,16 +18,22 @@
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- 多数据源依赖 -->
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>cloud-common-datasource</artifactId>
|
<artifactId>enterpise-common</artifactId>
|
||||||
|
<version>${muyu.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- 鉴权依赖 -->
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>cloud-common-security</artifactId>
|
<artifactId>cloud-common-cache</artifactId>
|
||||||
|
<version>${muyu.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.muyu</groupId>
|
||||||
|
<artifactId>cloud-modules-vehicle-gateway</artifactId>
|
||||||
|
<version>${muyu.version}</version>
|
||||||
|
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<parent>
|
|
||||||
<groupId>com.muyu</groupId>
|
|
||||||
<artifactId>cloud-modules-enterprise</artifactId>
|
|
||||||
<version>3.6.3</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<artifactId>enterpise-cache</artifactId>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<maven.compiler.source>17</maven.compiler.source>
|
|
||||||
<maven.compiler.target>17</maven.compiler.target>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.muyu</groupId>
|
|
||||||
<artifactId>cloud-common-cache</artifactId>
|
|
||||||
<version>${muyu.version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.muyu</groupId>
|
|
||||||
<artifactId>enterpise-common</artifactId>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
</project>
|
|
|
@ -1,28 +0,0 @@
|
||||||
package com.muyu.enterpise.cache;
|
|
||||||
|
|
||||||
import com.muyu.common.cache.CacheAbsBasic;
|
|
||||||
import com.muyu.domain.CarInformation;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 车辆缓存服务
|
|
||||||
* @className: VehicleCacheService ️✈️
|
|
||||||
* @author: Yang 鹏 🦅
|
|
||||||
* @date: 2024/9/30 00:36 ⏰
|
|
||||||
* @Version: 1.0
|
|
||||||
* @description:
|
|
||||||
*/
|
|
||||||
public class VehicleCacheService extends CacheAbsBasic<String, CarInformation> {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String keyPre() {
|
|
||||||
return "vehicle:info:";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String decode(String key){
|
|
||||||
return key.replace("vehicle:info:","");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
com.muyu.enterpise.cache.MessageValueCacheService
|
|
||||||
com.muyu.enterpise.cache.SysCarCacheService
|
|
|
@ -88,7 +88,6 @@ public class SysCar extends BaseEntity{
|
||||||
.append("createTime", getCreateTime())
|
.append("createTime", getCreateTime())
|
||||||
.append("updateBy", getUpdateBy())
|
.append("updateBy", getUpdateBy())
|
||||||
.append("updateTime", getUpdateTime())
|
.append("updateTime", getUpdateTime())
|
||||||
.append("remark", getRemark())
|
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>enterpise-common</artifactId>
|
<artifactId>enterpise-common</artifactId>
|
||||||
|
<version>${muyu.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>enterpise-common</artifactId>
|
<artifactId>enterpise-common</artifactId>
|
||||||
|
<version>${muyu.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- SpringCloud Alibaba Nacos -->
|
<!-- SpringCloud Alibaba Nacos -->
|
||||||
|
@ -92,7 +93,7 @@
|
||||||
<!-- cache缓存框架 -->
|
<!-- cache缓存框架 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>enterpise-cache</artifactId>
|
<artifactId>enterprise-cache</artifactId>
|
||||||
<version>${muyu.version}</version>
|
<version>${muyu.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.muyu.enterpise.controller;
|
||||||
|
|
||||||
import com.muyu.common.core.domain.Result;
|
import com.muyu.common.core.domain.Result;
|
||||||
import com.muyu.domain.req.CarFenceAdd;
|
import com.muyu.domain.req.CarFenceAdd;
|
||||||
|
|
||||||
import com.muyu.enterpise.service.CarFenceServiceMybaits;
|
import com.muyu.enterpise.service.CarFenceServiceMybaits;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
@ -39,18 +40,6 @@ public class MiddleController {
|
||||||
return i?Result.success("添加成功"):Result.error("失败");
|
return i?Result.success("添加成功"):Result.error("失败");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改围栏状态
|
|
||||||
* @param groupId
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@GetMapping("/updateFenceGroupById")
|
|
||||||
@Operation(summary = "修改围栏状态",description = "修改围栏状态")
|
|
||||||
public Result updateFenceGroupById(@RequestParam("groupId") Integer groupId){
|
|
||||||
carFenceServiceMybaits.updateFenceGroupById(groupId);
|
|
||||||
|
|
||||||
return Result.success();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,6 @@ import com.muyu.common.core.domain.Result;
|
||||||
import com.muyu.common.core.web.controller.BaseController;
|
import com.muyu.common.core.web.controller.BaseController;
|
||||||
import com.muyu.common.core.web.page.TableDataInfo;
|
import com.muyu.common.core.web.page.TableDataInfo;
|
||||||
import com.muyu.domain.SysCarType;
|
import com.muyu.domain.SysCarType;
|
||||||
import com.muyu.enterpise.cache.SysCarCacheService;
|
|
||||||
import com.muyu.enterpise.cache.SysCarTypeCacheService;
|
import com.muyu.enterpise.cache.SysCarTypeCacheService;
|
||||||
import com.muyu.enterpise.service.SysTypeService;
|
import com.muyu.enterpise.service.SysTypeService;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
|
|
@ -15,5 +15,5 @@ import java.util.List;
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface SysCarMapper extends BaseMapper<SysCar>{
|
public interface SysCarMapper extends BaseMapper<SysCar>{
|
||||||
|
|
||||||
List<SysCarResp> selectSysCarList(SysCar sysCar);
|
// List<SysCarResp> selectSysCarList(SysCar sysCar);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,6 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
public interface SysTypeMapper extends BaseMapper<SysCarType> {
|
public interface SysTypeMapper extends BaseMapper<SysCarType> {
|
||||||
|
|
||||||
List<SysCarType> selectSysList();
|
// List<SysCarType> selectSysList();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,18 +29,9 @@ public interface CarFenceServiceMybaits extends IService<CarMiddle> {
|
||||||
boolean saveBatch(List<CarFenceAdd> carFences, Integer fenceGroupId);
|
boolean saveBatch(List<CarFenceAdd> carFences, Integer fenceGroupId);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改围栏状态
|
|
||||||
* @param groupId
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
Object updateFenceGroupById(Integer groupId);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 启动围栏
|
|
||||||
*/
|
|
||||||
Object activate(Integer groupId);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据围栏组的id查询绑定的围栏的中间表
|
* 根据围栏组的id查询绑定的围栏的中间表
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
package com.muyu.enterpise.service.impl;
|
package com.muyu.enterpise.service.impl;
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.muyu.domain.CarAndGroupMiddle;
|
|
||||||
import com.muyu.domain.CarFence;
|
import com.muyu.domain.CarFence;
|
||||||
import com.muyu.domain.CarMiddle;
|
import com.muyu.domain.CarMiddle;
|
||||||
|
import com.muyu.domain.CarAndGroupMiddle;
|
||||||
import com.muyu.domain.FenceGroup;
|
import com.muyu.domain.FenceGroup;
|
||||||
import com.muyu.domain.req.CarFenceAdd;
|
import com.muyu.domain.req.CarFenceAdd;
|
||||||
|
|
||||||
import com.muyu.enterpise.mapper.CarFenceServiceMybaitsMapper;
|
import com.muyu.enterpise.mapper.CarFenceServiceMybaitsMapper;
|
||||||
import com.muyu.enterpise.service.CarFenceServiceMybaits;
|
import com.muyu.enterpise.service.CarFenceServiceMybaits;
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
||||||
|
@ -17,19 +19,21 @@ import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 围栏组服务实现类
|
* 围栏组服务实现类
|
||||||
* * @Author:yan
|
* * @Author:yan
|
||||||
* * @Package:com.muyu.car.service.impl
|
* * @Package:com.muyu.car.service.impl
|
||||||
* * @Project:plues
|
* * @Project:plues
|
||||||
* * @name:CarFenceServiceMybaitsImpl
|
* * @name:CarFenceServiceMybaitsImpl
|
||||||
* * @Date:2024/9/22 19:24
|
* * @Date:2024/9/22 19:24
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
@Log4j2
|
@Log4j2
|
||||||
public class CarFenceServiceMybaitsImpl extends ServiceImpl<CarFenceServiceMybaitsMapper, CarMiddle> implements CarFenceServiceMybaits {
|
public class CarFenceServiceMybaitsImpl extends ServiceImpl<CarFenceServiceMybaitsMapper,CarMiddle> implements CarFenceServiceMybaits {
|
||||||
@Autowired
|
@Autowired
|
||||||
private CarFenceServiceMybaitsMapper carFenceServiceMybaitsMapper;
|
private CarFenceServiceMybaitsMapper carFenceServiceMybaitsMapper;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加多对多围栏组
|
* 添加多对多围栏组
|
||||||
*
|
*
|
||||||
|
@ -49,26 +53,8 @@ public class CarFenceServiceMybaitsImpl extends ServiceImpl<CarFenceServiceMybai
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改围栏状态
|
|
||||||
* @param groupId
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public Object updateFenceGroupById(Integer groupId) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 启动围栏
|
|
||||||
*
|
|
||||||
* @param groupId
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public Object activate(Integer groupId) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -89,15 +75,17 @@ public class CarFenceServiceMybaitsImpl extends ServiceImpl<CarFenceServiceMybai
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取绑定的围栏组
|
* 获取绑定的围栏组
|
||||||
*
|
|
||||||
* @param carId
|
* @param carId
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<FenceGroup> selectBoundGFenceGroup(Integer carId) {
|
public List<FenceGroup> selectBoundGFenceGroup(Integer carId) {
|
||||||
/*根据id查询围栏组的id*/
|
/*根据id查询围栏组的id*/
|
||||||
List<CarAndGroupMiddle> list = carFenceServiceMybaitsMapper.selectBoundGFenceGroup(carId);
|
List<CarAndGroupMiddle> list = carFenceServiceMybaitsMapper.selectBoundGFenceGroup(carId);
|
||||||
ArrayList<FenceGroup> fenceGroups = new ArrayList<>();
|
ArrayList<FenceGroup> fenceGroups = new ArrayList<>();
|
||||||
|
|
||||||
/*循环*/
|
/*循环*/
|
||||||
|
@ -113,4 +101,6 @@ public class CarFenceServiceMybaitsImpl extends ServiceImpl<CarFenceServiceMybai
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,6 @@ import com.muyu.domain.resp.MessageValueListResp;
|
||||||
import com.muyu.enterpise.cache.MessageValueCacheService;
|
import com.muyu.enterpise.cache.MessageValueCacheService;
|
||||||
import com.muyu.enterpise.mapper.MessageValueMapper;
|
import com.muyu.enterpise.mapper.MessageValueMapper;
|
||||||
import com.muyu.enterpise.service.MessageValueService;
|
import com.muyu.enterpise.service.MessageValueService;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
|
@ -40,8 +40,6 @@ public class SysCarServiceImpl
|
||||||
LambdaQueryWrapper<SysCar> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<SysCar> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
Assert.notNull(id, "id不可为空");
|
Assert.notNull(id, "id不可为空");
|
||||||
queryWrapper.eq(SysCar::getId, id);
|
queryWrapper.eq(SysCar::getId, id);
|
||||||
|
|
||||||
|
|
||||||
return this.getOne(queryWrapper);
|
return this.getOne(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class SysTypeServiceImpl
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<SysCarType> selectSysTypeList() {
|
public List<SysCarType> selectSysTypeList() {
|
||||||
return sysTypeMapper.selectSysList();
|
return this.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -99,11 +99,12 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>enterpise-common</artifactId>
|
<artifactId>enterpise-common</artifactId>
|
||||||
|
<version>${muyu.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- 缓存框架 -->
|
<!-- 缓存框架 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>enterpise-cache</artifactId>
|
<artifactId>enterprise-cache</artifactId>
|
||||||
<version>${muyu.version}</version>
|
<version>${muyu.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
10
pom.xml
10
pom.xml
|
@ -283,11 +283,11 @@
|
||||||
<version>${muyu.version}</version>
|
<version>${muyu.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<!-- <dependency>-->
|
||||||
<groupId>com.muyu</groupId>
|
<!-- <groupId>com.muyu</groupId>-->
|
||||||
<artifactId>enterpise-common</artifactId>
|
<!-- <artifactId>enterpise-common</artifactId>-->
|
||||||
<version>${muyu.version}</version>
|
<!-- <version>${muyu.version}</version>-->
|
||||||
</dependency>
|
<!-- </dependency>-->
|
||||||
|
|
||||||
<!-- <dependency>-->
|
<!-- <dependency>-->
|
||||||
<!-- <groupId>com.muyu</groupId>-->
|
<!-- <groupId>com.muyu</groupId>-->
|
||||||
|
|
Loading…
Reference in New Issue