Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
TDLCloud
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WitCloud
TDLCloud
Commits
51ead1dc
Commit
51ead1dc
authored
Aug 31, 2018
by
chenying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2018.8.31
(1)修改网关接口
parent
563d88ca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
24 deletions
+23
-24
GatewayController.java
src/main/java/com/example/tdl/web/GatewayController.java
+22
-23
application.properties
src/main/resources/application.properties
+1
-1
No files found.
src/main/java/com/example/tdl/web/GatewayController.java
View file @
51ead1dc
...
@@ -196,16 +196,12 @@ public class GatewayController {
...
@@ -196,16 +196,12 @@ public class GatewayController {
fb
.
setMessage
(
i18n
.
getMessage
(
request
,
"existGateway"
));
fb
.
setMessage
(
i18n
.
getMessage
(
request
,
"existGateway"
));
return
gson
.
toJson
(
fb
);
return
gson
.
toJson
(
fb
);
}
}
if
(
StringUtils
.
isEmpty
(
updateGatewayVo
.
getModelName
())){
updateGatewayVo
.
setUpdateTime
(
System
.
currentTimeMillis
());
updateGatewayVo
.
setUpdateTime
(
System
.
currentTimeMillis
());
int
a
=
gatewayService
.
updateGateway
(
updateGatewayVo
);
int
a
=
gatewayService
.
updateGateway
(
updateGatewayVo
);
if
(
a
>
0
){
if
(
a
>
0
){
if
(
StringUtils
.
isEmpty
(
updateGatewayVo
.
getModelName
())){
fb
.
setCode
(
1
);
fb
.
setCode
(
1
);
fb
.
setMessage
(
i18n
.
getMessage
(
request
,
"updateGatewaySuccess"
));
fb
.
setMessage
(
i18n
.
getMessage
(
request
,
"updateGatewaySuccess"
));
}
else
{
fb
.
setCode
(
0
);
fb
.
setMessage
(
i18n
.
getMessage
(
request
,
"updateGatewayFailure"
));
}
}
else
{
}
else
{
Map
<
Object
,
Object
>
map
=
new
HashMap
<>();
Map
<
Object
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"SN"
,
updateGatewayVo
.
getSN
());
map
.
put
(
"SN"
,
updateGatewayVo
.
getSN
());
...
@@ -222,7 +218,10 @@ public class GatewayController {
...
@@ -222,7 +218,10 @@ public class GatewayController {
fb
.
setMessage
(
msg
.
get
(
"msg"
).
toString
());
fb
.
setMessage
(
msg
.
get
(
"msg"
).
toString
());
}
}
}
}
}
else
{
fb
.
setCode
(
0
);
fb
.
setMessage
(
i18n
.
getMessage
(
request
,
"updateGatewayFailure"
));
}
return
gson
.
toJson
(
fb
);
return
gson
.
toJson
(
fb
);
}
}
...
...
src/main/resources/application.properties
View file @
51ead1dc
spring.datasource.url
=
jdbc:mysql://
192.168.1.16
:3306/tdlcloud?useUnicode=true&characterEncoding=utf-8&useSSL=false
spring.datasource.url
=
jdbc:mysql://
47.97.184.225
:3306/tdlcloud?useUnicode=true&characterEncoding=utf-8&useSSL=false
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
37774020
spring.datasource.password
=
37774020
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment