@@ -79,16 +86,33 @@
@@ -122,12 +146,18 @@
\ No newline at end of file
diff --git a/mq-cloud/src/main/resources/templates/user/topicTopology.html b/mq-cloud/src/main/resources/templates/user/topicTopology.html
index 353eb961..2910ca2e 100644
--- a/mq-cloud/src/main/resources/templates/user/topicTopology.html
+++ b/mq-cloud/src/main/resources/templates/user/topicTopology.html
@@ -8,7 +8,7 @@
topic信息
-
+
@@ -46,6 +46,21 @@ topic信息
#if>
+
+ 用途: |
+
+ ${response.result.topic.info!}
+ <#if response.result.own>
+
+ #if>
+ |
+
所属用户 |
生产者(producer group) |
@@ -637,7 +652,37 @@ 授权其他用户
-
+<#--修改topic描述-->
+
@@ -796,4 +841,26 @@
授权其他用户
$("#producerStatsChart").html(data);
});
}
+
+function updateTopicInfo(){
+ if(!$("#topicInfo").val()){
+ alert("请输入用途");
+ return;
+ }
+ disable("updateTopicInfoBtn");
+ $.post('${request.contextPath}/topic/update/info',
+ {
+ info: $("#topicInfo").val(),
+ tid: $("#currentTopicID").val()
+ },
+ function(data){
+ if(data.status == 200){
+ toastr.success("操作成功!即将刷新页面!");
+ reload(2000);
+ }else{
+ toastr.error("操作失败!"+data.message);
+ enable("updateTopicInfoBtn");
+ }
+ }, 'json');
+}
diff --git a/mq-cloud/src/test/java/com/sohu/tv/mq/cloud/dao/DelayMessageDaoTest.java b/mq-cloud/src/test/java/com/sohu/tv/mq/cloud/dao/DelayMessageDaoTest.java
new file mode 100644
index 00000000..4f5e249c
--- /dev/null
+++ b/mq-cloud/src/test/java/com/sohu/tv/mq/cloud/dao/DelayMessageDaoTest.java
@@ -0,0 +1,33 @@
+package com.sohu.tv.mq.cloud.dao;
+
+import java.util.List;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+import com.sohu.tv.mq.cloud.Application;
+import com.sohu.tv.mq.cloud.bo.TopicTraffic;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest(classes = Application.class)
+public class DelayMessageDaoTest {
+
+ @Autowired
+ private DelayMessageDao delayMessageDao;
+
+ @Test
+ public void testQuery() {
+ List
result = delayMessageDao.selectTopicTraffic(299, 20190423);
+ Assert.assertNotNull(result);
+ }
+
+ @Test
+ public void testQueryByIdList() {
+ TopicTraffic result = delayMessageDao.selectByIdListDateTime(1303L, 20190424, "0000");
+ Assert.assertNotNull(result);
+ }
+}
diff --git a/pom.xml b/pom.xml
index 6a45337d..a78e8633 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
mq
pom
mq
- 1.6
+ 1.7
mq-client-common-open