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
a39f3b50
Commit
a39f3b50
authored
Jun 06, 2018
by
zhuangzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6.6--修改图片上传的bug,修改仓库的返回值说明
parent
4e5958fe
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
137 additions
and
112 deletions
+137
-112
AliyunOSSClientUtil.java
src/main/java/com/example/tdl/util/AliyunOSSClientUtil.java
+2
-2
GatewayController.java
src/main/java/com/example/tdl/web/GatewayController.java
+2
-4
PicUploadController.java
src/main/java/com/example/tdl/web/PicUploadController.java
+4
-5
WarehouseController.java
src/main/java/com/example/tdl/web/WarehouseController.java
+99
-99
application.properties
src/main/resources/application.properties
+1
-1
messages_zh_CN.properties
src/main/resources/i18n/messages_zh_CN.properties
+28
-0
GatewayMapper.xml
src/main/resources/mapper/GatewayMapper.xml
+1
-1
No files found.
src/main/java/com/example/tdl/util/AliyunOSSClientUtil.java
View file @
a39f3b50
...
...
@@ -249,9 +249,9 @@ public class AliyunOSSClientUtil {
key
=
FOLDER1
+
key
;
}
else
if
(
"company"
.
equals
(
imageType
)){
key
=
FOLDER2
+
key
;
}
else
if
(
"
palte
"
.
equals
(
imageType
)){
}
else
if
(
"
truck
"
.
equals
(
imageType
)){
key
=
FOLDER3
+
key
;
}
else
if
(
"ware
H
ouse"
.
equals
(
imageType
)){
}
else
if
(
"ware
h
ouse"
.
equals
(
imageType
)){
key
=
FOLDER4
+
key
;
}
else
if
(
"circuit"
.
equals
(
imageType
)){
key
=
FOLDER4
+
key
;
...
...
src/main/java/com/example/tdl/web/GatewayController.java
View file @
a39f3b50
...
...
@@ -18,10 +18,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
...
...
@@ -460,4 +457,5 @@ public class GatewayController {
return
gson
.
toJson
(
fb
);
}
}
src/main/java/com/example/tdl/web/PicUploadController.java
View file @
a39f3b50
...
...
@@ -84,7 +84,7 @@ public class PicUploadController {
fb
.
setMessage
(
"https://tdlcloud.oss-cn-shanghai.aliyuncs.com/pic/userImage/"
+
url
);
}
else
if
(
"company"
.
equals
(
imageType
)){
fb
.
setMessage
(
"https://tdlcloud.oss-cn-shanghai.aliyuncs.com/pic/companyLog/"
+
url
);
}
else
if
(
"
palte
"
.
equals
(
imageType
)){
}
else
if
(
"
truck
"
.
equals
(
imageType
)){
fb
.
setMessage
(
"https://tdlcloud.oss-cn-shanghai.aliyuncs.com/pic/palteImage/"
+
url
);
}
else
if
(
"warehouse"
.
equals
(
imageType
)){
fb
.
setMessage
(
"https://tdlcloud.oss-cn-shanghai.aliyuncs.com/pic/wareHouseImage/"
+
url
);
...
...
@@ -148,13 +148,12 @@ public class PicUploadController {
// i = userService.updateImg(number,img);
img
=
img
+
"userImage/"
+
url
;
}
else
if
(
"company"
.
equals
(
imageType
)){
//
i = companyService.updateImg(number,img);
i
=
companyService
.
updateImg
(
number
,
img
);
img
=
img
+
"companyLog/"
+
url
;
fb
.
setMessage
(
"https://tdlcloud.oss-cn-shanghai.aliyuncs.com/pic/companyLog/"
+
url
);
}
else
if
(
"palte"
.
equals
(
imageType
)){
// i = carService.updateImg(number,img);
}
else
if
(
"truck"
.
equals
(
imageType
)){
img
=
img
+
"palteImage/"
+
url
;
i
=
carService
.
updateImg
(
img
,
number
);
}
else
if
(
"warehouse"
.
equals
(
imageType
))
{
img
=
img
+
"wareHouseImage/"
+
url
;
i
=
warehouseService
.
updateImg
(
number
,
img
,
System
.
currentTimeMillis
());
...
...
src/main/java/com/example/tdl/web/WarehouseController.java
View file @
a39f3b50
This diff is collapsed.
Click to expand it.
src/main/resources/application.properties
View file @
a39f3b50
...
...
@@ -7,7 +7,7 @@ spring.datasource.driver-class-name=com.mysql.jdbc.Driver
threadpool.corepoolsize
=
30
threadpool.maxpoolsize
=
50
server.port
=
809
2
server.port
=
809
9
management.security.enabled
=
false
...
...
src/main/resources/i18n/messages_zh_CN.properties
View file @
a39f3b50
...
...
@@ -217,6 +217,34 @@ deleteTDLSuccess=\u5220\u9664\u7F51\u5173\u6210\u529F
deleteTDLFailure
=
\u5220\u9664\u
7F51
\u5173\u5931\u
8D25
updateTDLCompanySuccess
=
\u
7F51
\u5173\u5206\u
914D
\u
516C
\u
53F8
\u6210\u
529F
updateTDLCompanyFailure
=
\u
7F51
\u5173\u5206\u
914D
\u
516C
\u
53F8
\u5931\u
8D25
#\u4ED3\u5E93
warehouseName
=
\u
4ED3
\u
5E93
\u
540D
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
property
=
\u
4ED3
\u
5E93
\u
5C5E
\u6027\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
wrongProperty
=
\u
8BF7
\u
8F93
\u5165\u
6B63
\u
786E
\u7684\u
5C5E
\u6027
warehouseType
=
\u
4ED3
\u
5E93
\u
7C7B
\u
578B
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
wrongWarehouseType
=
\u
8BF7
\u
8F93
\u5165\u
6B63
\u
786E
\u7684\u
4ED3
\u
5E93
\u
7C7B
\u
578B
hardwareLevel
=
\u
786C
\u
4EF6
\u
7B49
\u
7EA7
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
wrongHardwareLevel
=
\u
8BF7
\u9009\u
62E9
\u
6B63
\u
786E
\u7684\u
786C
\u
4EF6
\u
7B49
\u
7EA7
areaIndoor
=
\u
5BA4
\u5185\u
5E73
\u9762\u9762\u
79EF
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
areaRack
=
\u
8D27
\u
67B6
\u9762\u
79EF
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
areaOutdoor
=
\u
5BA4
\u5916\u9762\u
79EF
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
areaPlanIndoor
=
\u
5B9E
\u9645\u
5BA4
\u5185\u
603B
\u9762\u
79EF
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
office
=
\u
529E
\u
4E8B
\u5904\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
timeZone
=
\u
65F6
\u
533A
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
repeateWarehouseName
=
\u
4ED3
\u
5E93
\u
540D
\u
4E0D
\u
80FD
\u
91CD
\u
590D
addWarehouseSuccess
=
\u
6DFB
\u
52A0
\u
4ED3
\u
5E93
\u6210\u
529F
addWarehouseFailure
=
\u
6DFB
\u
52A0
\u
4ED3
\u
5E93
\u5931\u
8D25
warehouseNo
=
\u
4ED3
\u
5E93
\u
7F16
\u
53F7
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
modifiedWarehouseSuccess
=
\u
4FEE
\u6539\u
4ED3
\u
5E93
\u6210\u
529F
modifiedWarehouseFailure
=
\u
4FEE
\u6539\u
4ED3
\u
5E93
\u5931\u
8D25
Nonexistent
=
\u
8BE5
\u
4ED3
\u
5E93
\u
4E0D
\u
5B58
\u5728
deleteWarehouseSuccess
=
\u
4FEE
\u6539\u
4ED3
\u
5E93
\u6210\u
529F
deleteWarehouseFailure
=
\u
4FEE
\u6539\u
4ED3
\u
5E93
\u5931\u
8D25
bindingGatewaySuccess
=
\u
7ED1
\u
5B9A
\u
7F51
\u5173\u6210\u
529F
bindingGatewayFailure
=
\u
7ED1
\u
5B9A
\u
7F51
\u5173\u5931\u
8D25
addAlarmContactsSuccess
=
\u
6DFB
\u
52A0
\u
7D27
\u6025\u8054\u
7CFB
\u
4EBA
\u6210\u
529F
addAlarmContactsFailure
=
\u
6DFB
\u
52A0
\u
7D27
\u6025\u8054\u
7CFB
\u
4EBA
\u5931\u
8D25
NonexistentUser
=
\u7528\u6237\u
4E0D
\u
5B58
\u5728
#\u89D2\u8272
repeatedRole
=
\u
89D2
\u8272\u
5DF2
\u
5B58
\u5728
usedRole
=
\u
8BE5
\u
89D2
\u8272\u
6B63
\u5728\u
88AB
\u
4F7F
\u7528
...
...
src/main/resources/mapper/GatewayMapper.xml
View file @
a39f3b50
...
...
@@ -110,7 +110,7 @@
<!--根据仓库编号查询网关信息-->
<select
id=
"getByWarehouseNo"
parameterType=
"String"
resultType=
"com.example.tdl.domain.vo.GatewayOnLineVo"
>
SELECT gatewaySN SN, gatewayType type from tdl_gateway_log where warehouseNo=#{warehouseNo,jdbcType=VARCHAR}
SELECT
DISTINCT
gatewaySN SN, gatewayType type from tdl_gateway_log where warehouseNo=#{warehouseNo,jdbcType=VARCHAR}
</select>
...
...
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