Commit b6702f7c052c25dd263a09d3765c798eb597e0c2

Authored by 648540858
1 parent 3f5e885e

修改mysql脚本

sql/mysql.sql
@@ -259,8 +259,8 @@ insert into user (username, password, roleId, createTime, updateTime) values ('a @@ -259,8 +259,8 @@ insert into user (username, password, roleId, createTime, updateTime) values ('a
259 create table role ( 259 create table role (
260 id int auto_increment 260 id int auto_increment
261 primary key, 261 primary key,
262 - name TEXT NOT NULL,  
263 - authority TEXT NOT NULL, 262 + name varchar(50) NOT NULL,
  263 + authority varchar(50) NOT NULL,
264 createTime varchar(50) not null, 264 createTime varchar(50) not null,
265 updateTime varchar(50) not null 265 updateTime varchar(50) not null
266 ); 266 );
src/main/java/com/genersoft/iot/vmp/storager/dao/StreamPushMapper.java
@@ -53,8 +53,8 @@ public interface StreamPushMapper { @@ -53,8 +53,8 @@ public interface StreamPushMapper {
53 "REPLACE INTO stream_push (app, stream, totalReaderCount, originType, originTypeStr, " + 53 "REPLACE INTO stream_push (app, stream, totalReaderCount, originType, originTypeStr, " +
54 "createStamp, aliveSecond, mediaServerId) " + 54 "createStamp, aliveSecond, mediaServerId) " +
55 "VALUES <foreach collection='streamPushItems' item='item' index='index' separator=','>" + 55 "VALUES <foreach collection='streamPushItems' item='item' index='index' separator=','>" +
56 - "( '${item.app}', '${item.stream}', '${item.totalReaderCount}', '${item.originType}', " +  
57 - "'${item.originTypeStr}','${item.createStamp}', '${item.aliveSecond}', '${item.mediaServerId}' )" + 56 + "( '${item.app}', '${item.stream}', '${item.totalReaderCount}', #{item.originType}, " +
  57 + "'${item.originTypeStr}',#{item.createStamp}, #{item.aliveSecond}, '${item.mediaServerId}' )" +
58 " </foreach>" + 58 " </foreach>" +
59 "</script>") 59 "</script>")
60 void addAll(List<StreamPushItem> streamPushItems); 60 void addAll(List<StreamPushItem> streamPushItems);
src/main/resources/all-application.yml
@@ -5,6 +5,11 @@ @@ -5,6 +5,11 @@
5 5
6 6
7 spring: 7 spring:
  8 + # [可选]上传文件大小限制
  9 + servlet:
  10 + multipart:
  11 + max-file-size: 10MB
  12 + max-request-size: 100MB
8 # REDIS数据库配置 13 # REDIS数据库配置
9 redis: 14 redis:
10 # [必须修改] Redis服务器IP, REDIS安装在本机的,使用127.0.0.1 15 # [必须修改] Redis服务器IP, REDIS安装在本机的,使用127.0.0.1
@@ -176,4 +181,4 @@ swagger-ui: @@ -176,4 +181,4 @@ swagger-ui:
176 version: 181 version:
177 version: "@project.version@" 182 version: "@project.version@"
178 description: "@project.description@" 183 description: "@project.description@"
179 - artifact-id: "@project.artifactId@"  
180 \ No newline at end of file 184 \ No newline at end of file
  185 + artifact-id: "@project.artifactId@"
src/main/resources/application-dev.yml
1 spring: 1 spring:
2 - # 上传文件大小限制 2 + # [可选]上传文件大小限制
3 servlet: 3 servlet:
4 multipart: 4 multipart:
5 max-file-size: 10MB 5 max-file-size: 10MB
web_src/src/components/dialog/chooseChannelForCatalog.vue
@@ -91,16 +91,6 @@ export default { @@ -91,16 +91,6 @@ export default {
91 if (typeof(callback) === 'function') { 91 if (typeof(callback) === 'function') {
92 callback(res.data.data) 92 callback(res.data.data)
93 } 93 }
94 - //  
95 -  
96 - // if (typeof (this.$refs.tree.setCurrentKey) == "undefined") {  
97 - // this.$refs.tree.setCurrentKey(this.defaultCatalogId)  
98 - // let data = this.$refs.tree.getCurrentNode()  
99 - // if (data != null && data.id === this.defaultCatalogId) {  
100 - // this.currentCatalogChange(data, this.$refs.tree.getNode(data.id))  
101 - // }  
102 - // }  
103 -  
104 } 94 }
105 }) 95 })
106 .catch(function (error) { 96 .catch(function (error) {
@@ -126,18 +116,6 @@ export default { @@ -126,18 +116,6 @@ export default {
126 let node = this.$refs.tree.getNode(id); 116 let node = this.$refs.tree.getNode(id);
127 this.refreshCatalog(node); 117 this.refreshCatalog(node);
128 } 118 }
129 - // if (nodeIds !== null) {  
130 - // let refreshNode = {}  
131 - // for (let i = 0; i < nodeIds.length; i++) {  
132 - // let node = this.$refs.tree.getNode(nodeIds[i]);  
133 - // refreshNode[node.parent.data.id] = node.parent  
134 - // }  
135 - // if (Object.values(refreshNode).length > 0) {  
136 - // for (let j = 0; j < Object.values(refreshNode).length; j++) {  
137 - // this.refreshCatalog(Object.values(refreshNode)[j]);  
138 - // }  
139 - // }  
140 - // }  
141 }, 119 },
142 editCatalog: function (data, node){ 120 editCatalog: function (data, node){
143 let that = this; 121 let that = this;