Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
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
曲欣亮
sentinel
Commits
3720e9c3
Commit
3720e9c3
authored
Feb 18, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
cfcc8cbe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
ExportServiceImpl.java
...va/com/egolm/film/api/service/impl/ExportServiceImpl.java
+1
-1
AdminFirstController.java
...va/com/egolm/film/api/web/admin/AdminFirstController.java
+3
-4
No files found.
src/main/java/com/egolm/film/api/service/impl/ExportServiceImpl.java
View file @
3720e9c3
...
...
@@ -105,7 +105,7 @@ public class ExportServiceImpl implements ExportService {
+
"fc_member_film mf "
+
"where "
+
"state = 2"
;
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
limitAll
(
sql
,
new
Page
(
1L
,
1000L
,
new
String
[]
{
"film_no asc"
}));
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
limitAll
(
sql
,
new
Page
(
1L
,
1000L
,
new
String
[]
{
"film_no asc"
,
"id asc"
}));
for
(
Map
<
String
,
Object
>
map
:
list
)
{
map
.
put
(
"film_country_cn"
,
countryMap
.
get
(
map
.
get
(
"film_country"
)));
map
.
put
(
"co_production_country_cn"
,
countryMap
.
get
(
map
.
get
(
"co_production_country"
)));
...
...
src/main/java/com/egolm/film/api/web/admin/AdminFirstController.java
View file @
3720e9c3
...
...
@@ -15,6 +15,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
...
...
@@ -221,8 +222,7 @@ public class AdminFirstController {
return
Rjx
.
jsonOk
().
setData
(
exportService
.
getApplyListColumns
());
}
@ResponseBody
@PostMapping
(
"exportApplyList"
)
@GetMapping
(
"exportApplyList"
)
@ApiOperation
(
"导出报名列表"
)
public
void
exportApplyList
(
HttpServletResponse
response
,
String
[]
columns
)
throws
IOException
{
response
.
setContentType
(
"application/octet-stream"
);
...
...
@@ -237,8 +237,7 @@ public class AdminFirstController {
return
Rjx
.
jsonOk
().
setData
(
exportService
.
getApplyPassListColumns
());
}
@ResponseBody
@PostMapping
(
"exportApplyPassList"
)
@GetMapping
(
"exportApplyPassList"
)
@ApiOperation
(
"导出影片列表"
)
public
void
exportApplyPassList
(
HttpServletResponse
response
,
String
[]
columns
)
throws
IOException
{
response
.
setContentType
(
"application/octet-stream"
);
...
...
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