Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
78b4ac17
Commit
78b4ac17
authored
Sep 19, 2023
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ios端上传bug
parent
09830dc0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/main/java/cn/timer/api/controller/disk/DiskFilesController.java
+3
-1
src/main/resources/application-pro.yml
+2
-2
No files found.
src/main/java/cn/timer/api/controller/disk/DiskFilesController.java
View file @
78b4ac17
...
@@ -80,11 +80,13 @@ public class DiskFilesController {
...
@@ -80,11 +80,13 @@ public class DiskFilesController {
@ApiOperation
(
value
=
"上传普通文件"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"上传普通文件"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
upload
(
@CurrentUser
UserBean
userBean
,
@RequestParam
(
required
=
true
)
MultipartFile
[]
file
,
public
Result
<
Object
>
upload
(
@CurrentUser
UserBean
userBean
,
@RequestParam
(
required
=
true
)
MultipartFile
[]
file
,
@ApiParam
(
"文件文件夹或共享空间ID"
)
@RequestParam
(
required
=
false
)
Integer
catalogueId
,
HttpServletRequest
request
)
{
@ApiParam
(
"文件文件夹或共享空间ID"
)
@RequestParam
(
required
=
false
)
Integer
catalogueId
,
HttpServletRequest
request
)
{
//如果不指定文件夹将选择该用户最近创建的第一级目录,ios端上传并没有指定文件夹
if
(
catalogueId
<=
0
){
if
(
catalogueId
<=
0
){
DiskCatalogue
diskCatalogue
=
DiskCatalogue
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
DiskCatalogue
>().
select
(
"id"
)
DiskCatalogue
diskCatalogue
=
DiskCatalogue
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
DiskCatalogue
>().
select
(
"id"
)
.
eq
(
"org_id"
,
userBean
.
getOrgCode
())
.
eq
(
"org_id"
,
userBean
.
getOrgCode
())
.
eq
(
"parent_id"
,
0
)
.
eq
(
"delete_flag"
,
0
)
.
eq
(
"delete_flag"
,
0
)
.
eq
(
"create_user_id"
,
userBean
.
getEmpNum
()).
orderBy
A
sc
(
"create_time"
)
.
eq
(
"create_user_id"
,
userBean
.
getEmpNum
()).
orderBy
De
sc
(
"create_time"
)
);
);
if
(
StringUtils
.
isEmpty
(
diskCatalogue
)){
if
(
StringUtils
.
isEmpty
(
diskCatalogue
)){
diskCatalogue
=
new
DiskCatalogue
();
diskCatalogue
=
new
DiskCatalogue
();
...
...
src/main/resources/application-pro.yml
View file @
78b4ac17
...
@@ -212,8 +212,8 @@ config-8timer:
...
@@ -212,8 +212,8 @@ config-8timer:
# 文件存储地址类型:aliyun-oss(阿里云OSS),physics-oss(物理机器OSS)
# 文件存储地址类型:aliyun-oss(阿里云OSS),physics-oss(物理机器OSS)
# 默认存储物理机器OSS
# 默认存储物理机器OSS
file-address
:
file-address
:
#
type: physics-oss
type
:
physics-oss
type
:
aliyun-oss
#
type: aliyun-oss
#导出zip临时地址
#导出zip临时地址
zip
:
zip
:
...
...
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