Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
072543e4
Commit
072543e4
authored
Apr 19, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
736b2bca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
WebApiController.java
src/main/java/com/egolm/film/api/WebApiController.java
+3
-1
No files found.
src/main/java/com/egolm/film/api/WebApiController.java
View file @
072543e4
...
@@ -50,10 +50,12 @@ public class WebApiController {
...
@@ -50,10 +50,12 @@ public class WebApiController {
})
})
public
Object
getFilmList
()
{
public
Object
getFilmList
()
{
String
sql0
=
"select mf.id, mf.film_no, mf.cn_name, mf.en_name, mf.film_country, r.enroll_type_id, r.review_state, mf.film_type_name_short from fc_member_film mf left join fc_review r on r.film_id = mf.id, fc_film_group fg where mf.film_group_id = fg.id"
;
String
sql0
=
"select mf.id, mf.film_no, mf.cn_name, mf.en_name, mf.film_country, r.enroll_type_id, r.review_state, mf.film_type_name_short from fc_member_film mf left join fc_review r on r.film_id = mf.id, fc_film_group fg where mf.film_group_id = fg.id"
;
String
sql1
=
"select * from fc_member_film_ext"
;
List
<
Map
<
String
,
Object
>>
filmList
=
jdbcTemplate
.
limitAll
(
sql0
,
new
Page
(
1L
,
1000L
,
"id desc"
));
List
<
Map
<
String
,
Object
>>
filmList
=
jdbcTemplate
.
limitAll
(
sql0
,
new
Page
(
1L
,
1000L
,
"id desc"
));
String
sql1
=
"select * from fc_member_film_ext"
;
List
<
Map
<
String
,
Object
>>
playactorList
=
jdbcTemplate
.
limitAll
(
sql1
,
new
Page
(
1L
,
1000L
,
"id desc"
));
List
<
Map
<
String
,
Object
>>
playactorList
=
jdbcTemplate
.
limitAll
(
sql1
,
new
Page
(
1L
,
1000L
,
"id desc"
));
Map
<
String
,
Map
<
String
,
Object
>>
playactorMM
=
Util
.
listToMM
(
playactorList
,
"id"
);
Map
<
String
,
Map
<
String
,
Object
>>
playactorMM
=
Util
.
listToMM
(
playactorList
,
"id"
);
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<
Map
<
String
,
Object
>>();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<
Map
<
String
,
Object
>>();
for
(
Map
<
String
,
Object
>
filmMap
:
filmList
)
{
for
(
Map
<
String
,
Object
>
filmMap
:
filmList
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
...
...
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