Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
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
吴迪
gs1-office-web-sit
Commits
1f1019fa
Commit
1f1019fa
authored
Dec 07, 2021
by
rongkailun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
3765fc9a
5ffe0955
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
EanUpcController.java
...io/office/modules/manage/controller/EanUpcController.java
+2
-2
UploadUtils.java
...main/java/io/office/modules/manage/utils/UploadUtils.java
+3
-2
No files found.
src/main/java/io/office/modules/manage/controller/EanUpcController.java
View file @
1f1019fa
...
@@ -118,9 +118,9 @@ public class EanUpcController {
...
@@ -118,9 +118,9 @@ public class EanUpcController {
*/
*/
@Login
@Login
@RequestMapping
(
"/api/getDetailById"
)
@RequestMapping
(
"/api/getDetailById"
)
public
EanUpcEntityDetailVo
getDetailById
(
@RequestBody
EanUpcEntity
eanUpcEntity
)
{
public
R
getDetailById
(
@RequestBody
EanUpcEntity
eanUpcEntity
)
{
return
eanUpcService
.
getDetailById
(
eanUpcEntity
);
return
R
.
ok
().
put
(
"data"
,
eanUpcService
.
getDetailById
(
eanUpcEntity
)
);
}
}
...
...
src/main/java/io/office/modules/manage/utils/UploadUtils.java
View file @
1f1019fa
...
@@ -47,9 +47,10 @@ public class UploadUtils {
...
@@ -47,9 +47,10 @@ public class UploadUtils {
if
(!
fileDir
.
exists
())
{
if
(!
fileDir
.
exists
())
{
fileDir
.
mkdirs
();
fileDir
.
mkdirs
();
}
}
String
uuid
=
IdWorkerUtils
.
getSEQByKey
(
IdKeysConstant
.
ID_SEQ_KEY
);
String
dateDirPath
=
DateUtils
.
formatDateToString
(
new
Date
(),
DateUtils
.
FORMAT4
);
String
dateDirPath
=
DateUtils
.
formatDateToString
(
new
Date
(),
DateUtils
.
FORMAT4
);
String
returnFilename
=
fileRequestPrefix
+
dateDirPath
+
"/"
+
filename
;
String
returnFilename
=
fileRequestPrefix
+
dateDirPath
+
"/"
+
uuid
+
"-"
+
filename
;
filename
=
fileSavePath
+
dateDirPath
+
"/"
+
filename
;
filename
=
fileSavePath
+
dateDirPath
+
"/"
+
uuid
+
"-"
+
filename
;
File
dest
=
new
File
(
filename
);
File
dest
=
new
File
(
filename
);
try
{
try
{
file
.
transferTo
(
dest
);
file
.
transferTo
(
dest
);
...
...
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