feat():修复缓存Redis-four
parent
c37e762dd6
commit
bfb3b98684
|
@ -30,6 +30,7 @@
|
|||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>enterpise-common</artifactId>
|
||||
<version>${muyu.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package com.muyu.common.cache;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* 主键基础
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
package com.muyu.controller;
|
||||
package com.muyu.enterpise.controller;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.domain.FenceGroup;
|
||||
import com.muyu.domain.req.CarFenceAdd;
|
||||
import com.muyu.domain.req.FenceGroupUpdateReq;
|
||||
import com.muyu.service.CarFenceServiceMybaits;
|
||||
import com.muyu.service.MiddleService;
|
||||
|
||||
import com.muyu.enterpise.service.CarFenceServiceMybaits;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
@ -42,18 +40,6 @@ public class MiddleController {
|
|||
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();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -29,18 +29,9 @@ public interface CarFenceServiceMybaits extends IService<CarMiddle> {
|
|||
boolean saveBatch(List<CarFenceAdd> carFences, Integer fenceGroupId);
|
||||
|
||||
|
||||
/**
|
||||
* 修改围栏状态
|
||||
* @param groupId
|
||||
* @return
|
||||
*/
|
||||
Object updateFenceGroupById(Integer groupId);
|
||||
|
||||
|
||||
/**
|
||||
* 启动围栏
|
||||
*/
|
||||
Object activate(Integer groupId);
|
||||
|
||||
|
||||
/**
|
||||
* 根据围栏组的id查询绑定的围栏的中间表
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
package com.muyu.service.impl;
|
||||
package com.muyu.enterpise.service.impl;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.muyu.domain.CarFence;
|
||||
import com.muyu.domain.CarMiddle;
|
||||
import com.muyu.domain.CarAndGroupMiddle;
|
||||
import com.muyu.domain.FenceGroup;
|
||||
import com.muyu.domain.req.CarFenceAdd;
|
||||
import com.muyu.mapper.CarFenceServiceMybaitsMapper;
|
||||
import com.muyu.service.CarFenceServiceMybaits;
|
||||
|
||||
import com.muyu.enterpise.mapper.CarFenceServiceMybaitsMapper;
|
||||
import com.muyu.enterpise.service.CarFenceServiceMybaits;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
|
@ -21,18 +21,19 @@
|
|||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>enterpise-common</artifactId>
|
||||
<version>${muyu.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-common-cache</artifactId>
|
||||
<version>3.6.3</version>
|
||||
<version>${muyu.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-modules-vehicle-gateway</artifactId>
|
||||
<version>3.6.3</version>
|
||||
<scope>compile</scope>
|
||||
<version>${muyu.version}</version>
|
||||
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
Loading…
Reference in New Issue