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
01386529
Commit
01386529
authored
Jan 20, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
b712e461
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+5
-5
No files found.
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
01386529
...
...
@@ -549,7 +549,7 @@ public class FilmServiceImpl implements FilmService {
}
@Override
public
void
verifyFilmDuplicate
(
Long
member_film_i
d
)
{
public
void
verifyFilmDuplicate
(
Long
filmI
d
)
{
String
sql0
=
""
+
"select "
+
"f.* "
...
...
@@ -559,10 +559,10 @@ public class FilmServiceImpl implements FilmService {
+
"where "
+
"(f.apply_state = 2) "
// + "(f.apply_state = 2 or f.apply_state = 3) "
+
"and (f.en_name = f2.en_name
or
f.cn_name = f2.cn_name) "
+
"and (f.en_name = f2.en_name
and
f.cn_name = f2.cn_name) "
+
"and f2.id = ? "
+
"and f.id != ?"
;
List
<
Fc_member_film
>
list
=
jdbcTemplate
.
queryForBeans
(
sql0
,
Fc_member_film
.
class
,
member_film_id
,
member_film_i
d
);
List
<
Fc_member_film
>
list
=
jdbcTemplate
.
queryForBeans
(
sql0
,
Fc_member_film
.
class
,
filmId
,
filmI
d
);
if
(
list
.
size
()
>
0
)
{
String
sql
=
""
+
"select "
...
...
@@ -576,8 +576,8 @@ public class FilmServiceImpl implements FilmService {
+
"and fp.playactor_name = fp2.playactor_name "
+
"and fp2.film_id = ? "
+
"and fp.film_id != ?"
;
Integer
count
=
jdbcTemplate
.
queryForInt
(
sql
,
member_film_id
,
member_film_i
d
);
if
(
count
>
0
)
{
Integer
count
=
jdbcTemplate
.
queryForInt
(
sql
,
filmId
,
filmI
d
);
if
(
count
>
0
&&
count
==
jdbcTemplate
.
queryForInt
(
"select count(fp.id) from fc_member_film_playactor fp where fp.playactor_type = 'director' and fp.film_id = ?"
,
filmId
)
)
{
Fc_member_film
film
=
list
.
get
(
0
);
Long
passtime
=
film
.
getPass_time
();
if
(
passtime
==
null
)
{
...
...
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