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
b8abb319
Commit
b8abb319
authored
Apr 19, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
20c28efb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
WebApiController.java
src/main/java/com/egolm/film/api/web/WebApiController.java
+5
-2
No files found.
src/main/java/com/egolm/film/api/web/WebApiController.java
View file @
b8abb319
...
...
@@ -8,12 +8,14 @@ import java.util.Map;
import
javax.annotation.Resource
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.egolm.common.StringUtil
;
import
com.egolm.common.Util
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.film.api.service.CountryService
;
@RestController
(
"webapi"
)
...
...
@@ -29,11 +31,12 @@ public class WebApiController {
countryMap
=
countryService
.
queryCountryMapReverse
();
}
@PostMapping
(
"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
sql1
=
"select * from fc_member_film_ext"
;
List
<
Map
<
String
,
Object
>>
filmList
=
jdbcTemplate
.
queryForList
(
sql0
);
List
<
Map
<
String
,
Object
>>
playactorList
=
jdbcTemplate
.
queryForList
(
sql1
);
List
<
Map
<
String
,
Object
>>
filmList
=
jdbcTemplate
.
limitAll
(
sql0
,
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"
);
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<
Map
<
String
,
Object
>>();
for
(
Map
<
String
,
Object
>
filmMap
:
filmList
)
{
...
...
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