From 26023ae52415e379238464d9409d67442219f7db Mon Sep 17 00:00:00 2001
From: cjl <chenjl@deyt.cn>
Date: Sat, 08 Jul 2023 20:05:19 +0800
Subject: [PATCH] chore:数据提交
---
screen-manage/src/main/java/com/moral/api/controller/PubController.java | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/screen-manage/src/main/java/com/moral/api/controller/PubController.java b/screen-manage/src/main/java/com/moral/api/controller/PubController.java
index 76f4ded..128bf4a 100644
--- a/screen-manage/src/main/java/com/moral/api/controller/PubController.java
+++ b/screen-manage/src/main/java/com/moral/api/controller/PubController.java
@@ -6,6 +6,7 @@
import com.moral.api.pojo.form.user.UserQueryForm;
import com.moral.api.pojo.form.user.UserUpdateForm;
import com.moral.api.pojo.vo.user.UserQueryVO;
+import com.moral.api.service.DeviceAdjustValueService;
import com.moral.api.service.UserService;
import com.moral.api.util.CacheUtils;
import com.moral.constant.ResponseCodeEnum;
@@ -17,6 +18,9 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.Map;
/**
* @ClassName UserController
@@ -32,6 +36,8 @@
public class PubController {
@Autowired
private CacheUtils cacheUtils;
+ @Resource
+ private DeviceAdjustValueService deviceAdjustValueService;
@GetMapping("deviceAlarmInfo")
@ApiOperation(value = "������������", notes = "������������")
@@ -54,4 +60,14 @@
return new ResultMessage();
}
+ @GetMapping(value = "adjust")
+ @ApiOperation(value = "adjust������", notes = "adjust������")
+ @ApiImplicitParams(value = {
+ @ApiImplicitParam(name = "token", value = "token", required = true, paramType = "header", dataType = "String")
+ })
+ public ResultMessage adjust() {
+ Map<String,Object> resultMap = deviceAdjustValueService.refreshRedis();
+ return new ResultMessage();
+ }
+
}
--
Gitblit v1.8.0