Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
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
zhangkb
indicators
Commits
76fb2c53
Commit
76fb2c53
authored
Oct 09, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文件上传管理功能查看上传文件接口
parent
1f6258b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
+6
-12
UploadFileCtrl.java
...m/keymobile/indicators/api/uploadfile/UploadFileCtrl.java
+2
-2
UploadFileService.java
...bile/indicators/service/uploadfile/UploadFileService.java
+2
-2
UploadFileMapper.xml
src/main/resources/mybatis/mapping/UploadFileMapper.xml
+2
-8
No files found.
src/main/java/com/keymobile/indicators/api/uploadfile/UploadFileCtrl.java
View file @
76fb2c53
...
...
@@ -59,10 +59,10 @@ public class UploadFileCtrl {
@ApiOperation
(
value
=
"根据条件加载下载文件信息"
,
notes
=
"根据条件加载下载文件信息"
)
@PostMapping
(
value
=
"/getByPageAndKeywordAndCode"
)
public
Map
<
String
,
Object
>
getByPageAndKeywordAndCode
(
@RequestParam
List
<
String
>
codes
,
public
Map
<
String
,
Object
>
getByPageAndKeywordAndCode
(
@RequestParam
String
code
,
@RequestParam
(
required
=
false
)
String
keyword
,
@RequestParam
(
defaultValue
=
"0"
)
int
page
,
@RequestParam
(
defaultValue
=
"10"
)
int
rows
)
throws
Exception
{
return
uploadFileService
.
getByPageAndKeywordAndCodeIn
(
code
s
,
keyword
,
page
,
rows
);
return
uploadFileService
.
getByPageAndKeywordAndCodeIn
(
code
,
keyword
,
page
,
rows
);
}
@ApiOperation
(
value
=
"批量删除文件信息"
,
notes
=
"批量删除文件信息"
)
...
...
src/main/java/com/keymobile/indicators/service/uploadfile/UploadFileService.java
View file @
76fb2c53
...
...
@@ -77,11 +77,11 @@ public class UploadFileService {
}
//加载上传文件列表
public
Map
<
String
,
Object
>
getByPageAndKeywordAndCodeIn
(
List
<
String
>
codes
,
String
keyword
,
public
Map
<
String
,
Object
>
getByPageAndKeywordAndCodeIn
(
String
code
,
String
keyword
,
int
page
,
int
rows
)
throws
Exception
{
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"code
s"
,
codes
);
paramMap
.
put
(
"code
"
,
code
+
"%"
);
if
(
StringUtils
.
isBlank
(
keyword
))
{
paramMap
.
put
(
"keyword"
,
null
);
}
else
{
...
...
src/main/resources/mybatis/mapping/UploadFileMapper.xml
View file @
76fb2c53
...
...
@@ -6,10 +6,7 @@
from indi_upload_file
where
file_status="1" and
code in
<foreach
item=
"code"
collection=
"codes"
open=
"("
close=
")"
separator=
","
>
#{code}
</foreach>
code like #{code}
<if
test=
"keyword!=null"
>
and file_name like #{keyword}
</if>
...
...
@@ -22,10 +19,7 @@
from indi_upload_file
where
file_status="1" and
code in
<foreach
item=
"code"
collection=
"codes"
open=
"("
close=
")"
separator=
","
>
#{code}
</foreach>
code like #{code}
<if
test=
"keyword!=null"
>
and file_name like #{keyword}
</if>
...
...
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