Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
dcc9ce68
Commit
dcc9ce68
authored
Oct 09, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预案记录查询sql优化
parent
5dd83d20
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
FireStationServiceImpl.java
...mos/fas/business/service/impl/FireStationServiceImpl.java
+11
-1
pom.xml
pom.xml
+1
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/FireStationServiceImpl.java
View file @
dcc9ce68
...
...
@@ -24,6 +24,8 @@ import org.springframework.web.multipart.MultipartFile;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.net.URLEncoder
;
import
java.util.*
;
@Service
(
"fireStationService"
)
...
...
@@ -196,7 +198,15 @@ public class FireStationServiceImpl implements IFireStationService {
}
catch
(
IOException
e
)
{
throw
new
YeeException
(
"上传图片失败"
);
}
String
photoFile
=
path
+
fileName
;
String
photoFile
=
""
;
try
{
photoFile
=
FasConstant
.
UPLOAD_ROOT_PATH
+
File
.
separator
+
FasConstant
.
UPLOAD_FIRESTATION_PATH
+
File
.
separator
+
URLEncoder
.
encode
(
fireStation
.
getName
(),
"utf-8"
)
+
fileName
;
}
catch
(
UnsupportedEncodingException
e
){
throw
new
YeeException
(
"字符转义失败 "
);
}
if
(
picture
!=
null
&&
picture
!=
""
)
{
picture
+=
","
+
photoFile
;
}
else
{
...
...
pom.xml
View file @
dcc9ce68
...
...
@@ -34,7 +34,7 @@
<dependency>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-component-rule
</artifactId>
<version>
1.
1
.0-SNAPSHOT
</version>
<version>
1.
2
.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
...
...
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