浏览代码

代码修改

yeshijie 7 年之前
父节点
当前提交
586352a1de

+ 4 - 4
patient-co-manage/redis-cache/src/main/java/com/yihu/wlyy/controller/redis/RedisCacheStatisticsEndPoint.java

@ -16,9 +16,9 @@ import org.springframework.dao.DataAccessException;
import org.springframework.data.redis.connection.RedisConnection;
import org.springframework.data.redis.core.RedisCallback;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.ArrayList;
@ -32,7 +32,7 @@ import java.util.Map;
 * @author 张进军
 * @date 2017/11/30 17:07
 */
@Controller
@RestController
@RequestMapping(value = ApiVersion.Version1_0)
@Api(description = "缓存统计接口", tags = {"缓存服务管理--缓存统计接口"})
public class RedisCacheStatisticsEndPoint extends EnvelopRestEndPoint {
@ -45,7 +45,7 @@ public class RedisCacheStatisticsEndPoint extends EnvelopRestEndPoint {
    private RedisTemplate<String, Object> redisTemplate;
    @ApiOperation("统计缓存分类的缓存数量")
    @RequestMapping(value = ServiceApi.Redis.CacheStatistics.GetCategoryKeys, method = RequestMethod.GET)
    @RequestMapping(value = ServiceApi.Redis.CacheStatistics.GetCategoryKeys, method = RequestMethod.POST)
    public Envelop getCategoryKeys() {
        Envelop envelop = new Envelop();
        envelop.setSuccessFlg(false);
@ -73,7 +73,7 @@ public class RedisCacheStatisticsEndPoint extends EnvelopRestEndPoint {
    }
    @ApiOperation("统计缓存分类的缓存内存比率(近似值,比实际略小)")
    @RequestMapping(value = ServiceApi.Redis.CacheStatistics.GetCategoryMemory, method = RequestMethod.GET)
    @RequestMapping(value = ServiceApi.Redis.CacheStatistics.GetCategoryMemory, method = RequestMethod.POST)
    public Envelop getCategoryMemory() {
        Envelop envelop = new Envelop();
        envelop.setSuccessFlg(false);

+ 1 - 0
patient-co-manage/redis-cache/src/main/webapp/WEB-INF/views/head/page_foot.jsp

@ -78,6 +78,7 @@
<script src="${ctx}/static/js/until/global.js"></script>
<script src='${ctx}/static/jquery/jquery-ui.js' type='text/javascript'></script>
<script src="${ctx}/static/develop/lib/plugin/echarts/2.2.7/js/echarts-all.js"></script>
<script>
    (function ($, win) {

+ 12 - 2
patient-co-manage/redis-cache/src/main/webapp/WEB-INF/views/redis/cache/keyRule/detail.jsp

@ -1,5 +1,12 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <%@ include file="../../../head/page_head.jsp" %>
    <%@ include file="detailCss.jsp" %>
    <title>用户管理</title>
</head>
<body>
<div id="redisCacheKeyRuleForm" class="m-form-inline f-mt20" data-role-form>
    <input type="hidden" id="id" data-attr-scan="id">
@ -49,4 +56,7 @@
        </div>
    </div>
</div>
</body>
<%@ include file="../../../head/page_foot.jsp" %>
<%@ include file="detailJs.jsp" %>
</html>

+ 12 - 1
patient-co-manage/redis-cache/src/main/webapp/WEB-INF/views/redis/cache/keyRule/list.jsp

@ -1,6 +1,13 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <%@ include file="../../../head/page_head.jsp" %>
    <%@ include file="listCss.jsp" %>
    <title>用户管理</title>
</head>
<body>
<div>
    <div id="categoryMemoryRate" style="width: 600px;height: 300px; display: inline-block;"></div>
@ -33,3 +40,7 @@
    <div id="grid"></div>
</div>
</body>
<%@ include file="../../../head/page_foot.jsp" %>
<%@ include file="listJs.jsp" %>
</html>