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
78e767be
Commit
78e767be
authored
Jan 22, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
375b33dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
FilmGroupServiceImpl.java
...com/egolm/film/api/service/impl/FilmGroupServiceImpl.java
+24
-1
No files found.
src/main/java/com/egolm/film/api/service/impl/FilmGroupServiceImpl.java
View file @
78e767be
...
...
@@ -26,9 +26,32 @@ public class FilmGroupServiceImpl implements FilmGroupService {
@Override
public
List
<
Map
<
String
,
Object
>>
queryFilmListByGroupId
(
Integer
group_id
)
{
return
jdbcTemplate
.
queryForList
(
"select id, film_group_id, create_time, last_modify_time, film_no, en_name, cn_name from fc_member_film where film_group_id = ?"
,
group_id
);
String
sql
=
""
+
"select "
+
"mf.id, "
+
"mf.film_group_id, "
+
"mf.create_time, "
+
"mf.enroll_type_name, "
+
"mf.film_type_name, "
+
"mf.last_modify_time, "
+
"mf.film_no, "
+
"mf.en_name, "
+
"mf.cn_name, "
+
"r.review_state, "
+
"r.id review_id "
+
"from "
+
"fc_member_film mf "
+
"left join fc_review r on r.film_id = mf.id and r.opt_state = 3 "
+
"where "
+
"mf.film_group_id is not null and mf.film_group_id = ?"
;
System
.
out
.
println
(
sql
);
return
jdbcTemplate
.
queryForList
(
sql
,
group_id
);
}
public
static
void
main
(
String
[]
args
)
{
new
FilmGroupServiceImpl
().
queryFilmListByGroupId
(
null
);
}
@Override
public
void
updateFilmGroupId
(
Integer
[]
film_id
,
Integer
group_id
)
{
Integer
[][]
args
=
new
Integer
[
film_id
.
length
][];
...
...
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